mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 19:51:51 +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 */
|
||||
ZEND_BEGIN_MODULE_GLOBALS(v8js)
|
||||
// Thread-local cache whether V8 has been initialized so far
|
||||
int v8_initialized;
|
||||
bool v8_initialized;
|
||||
|
||||
/* Ini globals */
|
||||
bool use_date; /* Generate JS Date objects instead of PHP DateTime */
|
||||
@ -141,7 +141,7 @@ ZEND_EXTERN_MODULE_GLOBALS(v8js)
|
||||
*/
|
||||
struct _v8js_process_globals {
|
||||
#ifdef ZTS
|
||||
int v8_initialized;
|
||||
bool v8_initialized;
|
||||
std::mutex lock;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user