Skip to content

Commit 5f08db8

Browse files
committed
Don't initialize ICU on V8 < 5.3.178
1 parent c957be8 commit 5f08db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v8js_v8.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ void v8js_v8_init() /* {{{ */
7676
}
7777
}
7878

79-
#ifdef PHP_V8_EXEC_PATH
80-
/* Initialize ICU */
79+
#if defined(PHP_V8_EXEC_PATH) && PHP_V8_API_VERSION >= 5003178
80+
/* Initialize ICU, call introduced in V8 5.3.178 */
8181
v8::V8::InitializeICUDefaultLocation(PHP_V8_EXEC_PATH, nullptr);
8282
#endif
8383

0 commit comments

Comments
 (0)