0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 16:28:41 +00:00

Don't initialize ICU on V8 < 5.3.178

This commit is contained in:
Stefan Siegl 2017-04-14 19:36:21 +02:00
parent c957be8b2a
commit 5f08db8a49
No known key found for this signature in database
GPG Key ID: 51575950154839CD

View File

@ -76,8 +76,8 @@ void v8js_v8_init() /* {{{ */
}
}
#ifdef PHP_V8_EXEC_PATH
/* Initialize ICU */
#if defined(PHP_V8_EXEC_PATH) && PHP_V8_API_VERSION >= 5003178
/* Initialize ICU, call introduced in V8 5.3.178 */
v8::V8::InitializeICUDefaultLocation(PHP_V8_EXEC_PATH, nullptr);
#endif