mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 16:51:52 +00:00
declare v8_initialized flag as bool
This commit is contained in:
parent
cd28b5c320
commit
b6d47ac7a8
@ -102,7 +102,7 @@ struct v8js_timer_ctx;
|
|||||||
/* Module globals */
|
/* Module globals */
|
||||||
ZEND_BEGIN_MODULE_GLOBALS(v8js)
|
ZEND_BEGIN_MODULE_GLOBALS(v8js)
|
||||||
// Thread-local cache whether V8 has been initialized so far
|
// Thread-local cache whether V8 has been initialized so far
|
||||||
int v8_initialized;
|
bool v8_initialized;
|
||||||
|
|
||||||
/* Ini globals */
|
/* Ini globals */
|
||||||
bool use_date; /* Generate JS Date objects instead of PHP DateTime */
|
bool use_date; /* Generate JS Date objects instead of PHP DateTime */
|
||||||
@ -141,7 +141,7 @@ ZEND_EXTERN_MODULE_GLOBALS(v8js)
|
|||||||
*/
|
*/
|
||||||
struct _v8js_process_globals {
|
struct _v8js_process_globals {
|
||||||
#ifdef ZTS
|
#ifdef ZTS
|
||||||
int v8_initialized;
|
bool v8_initialized;
|
||||||
std::mutex lock;
|
std::mutex lock;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user