File tree 3 files changed +19
-1
lines changed
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ ninja -C out.gn/x64.release/
62
62
63
63
# Install to /opt/v8/
64
64
sudo mkdir -p /opt/v8/{lib,include}
65
- sudo cp out.gn/x64.release/lib*.so out.gn/x64.release/*_blob.bin /opt/v8/lib/
65
+ sudo cp out.gn/x64.release/lib*.so out.gn/x64.release/*_blob.bin \
66
+ out.gn/x64.release/icudtl.dat /opt/v8/lib/
66
67
sudo cp -R include/* /opt/v8/include/
67
68
```
68
69
@@ -137,3 +138,9 @@ sudo make install
137
138
```
138
139
139
140
Then add ` extension=v8js.so ` to your php.ini file. If you have a separate configuration for CLI, add it there also.
141
+
142
+ V8Js' build system assumes that the ` icudtl.dat ` file is located next to the ` libv8.so `
143
+ library file and compiles the path into the library itself. If for whatever reason the
144
+ ` icudtl.dat ` file is stored at a different place during runtime, you need to set the
145
+ php.ini variable ` v8js.icudtl_dat_path ` to point to the file. Otherwise locale-aware
146
+ features of V8 will not work as expected.
Original file line number Diff line number Diff line change 80
80
make test
81
81
make install
82
82
```
83
+
84
+ V8Js' build system assumes that the ` icudtl.dat ` file is located next to the ` libv8.dylib `
85
+ library file and compiles the path into the library itself. If for whatever reason the
86
+ ` icudtl.dat ` file is stored at a different place during runtime, you need to set the
87
+ php.ini variable ` v8js.icudtl_dat_path ` to point to the file. Otherwise locale-aware
88
+ features of V8 will not work as expected.
Original file line number Diff line number Diff line change @@ -168,3 +168,8 @@ Release_TS\php.exe -d extension=php_v8js.dll -d extension_dir=Release_TS\
168
168
```
169
169
170
170
Alternatively copy all stuff to c:\php\ (including the DLL files from v8 build).
171
+
172
+ V8 library itself needs to load the ` icudtl.dat ` file at runtime. Make sure php.ini
173
+ variable ` v8js.icudtl_dat_path ` points to this file; or as an alternative set
174
+ ` PHP_V8_EXEC_PATH ` in config.w32 to point to the directory where the dll and data file
175
+ are located.
You can’t perform that action at this time.
0 commit comments