From 93d3f9591f8803254c766bda402c9b2602f6313b Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 28 Feb 2016 20:17:56 +0100 Subject: [PATCH] Add CreateParams fields in v8js_ctx only if needed --- v8js_class.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/v8js_class.h b/v8js_class.h index 1c29b70..35db5e9 100644 --- a/v8js_class.h +++ b/v8js_class.h @@ -2,12 +2,13 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2013 The PHP Group | + | Copyright (c) 1997-2016 The PHP Group | +----------------------------------------------------------------------+ | http://www.opensource.org/licenses/mit-license.php MIT License | +----------------------------------------------------------------------+ | Author: Jani Taskinen | | Author: Patrick Reilly | + | Author: Stefan Siegl | +----------------------------------------------------------------------+ */ @@ -68,8 +69,13 @@ struct v8js_ctx { std::vector script_objects; char *tz; +#if PHP_V8_API_VERSION >= 4004044 v8::Isolate::CreateParams create_params; +#ifdef PHP_V8_USE_EXTERNAL_STARTUP_DATA v8::StartupData snapshot_blob; +#endif +#endif + #ifdef ZTS void ***zts_ctx; #endif