0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 08:11:52 +00:00
Commit Graph

1146 Commits

Author SHA1 Message Date
Stefan Siegl
d0c4a3614d adapt V8 12.8 interceptor signatures 2024-09-28 00:48:30 +02:00
Stefan Siegl
888684b483 use v8::Global instead of v8::Persistent 2024-09-27 23:27:59 +02:00
Stefan Siegl
73e684f4a8 fix zend_string access issues & user after free in error handling code 2024-09-27 23:06:17 +02:00
Stefan Siegl
cba24df614 adapt v8 api change, closes #528 2024-09-27 23:06:17 +02:00
Stefan Siegl
aac40cd72e
Merge pull request #534 from stesie/bugfix/pr-532-more-robust-scanning
More robust scanning, override SEARCH_PATH by explicitly given dir
2024-09-24 20:56:27 +02:00
Stefan Siegl
d1af93e544 update build instructions 2024-09-21 00:15:10 +02:00
Stefan Siegl
ff1b080d2c also check for c++20 standard (and drop c++1y which is too old anyways) 2024-09-20 23:27:35 +02:00
Stefan Siegl
303ab95a90 More robust scanning, override SEARCH_PATH by explicitly given dir 2024-09-20 23:23:04 +02:00
Stefan Siegl
8edc8b65d8 Add missing include 2024-09-20 21:32:27 +02:00
Stefan Siegl
b4471849c8
Merge pull request #532 from JoshuaBehrens/feature/hassle-free-installation
Improve configureless installation on debian and redhat machines
2024-09-20 21:25:35 +02:00
Joshua Behrens
32aa91305d
Allow manual path assignments still match a {lib,include} pattern 2024-09-08 01:11:00 +02:00
Joshua Behrens
66d155679b
Restructure code so an always false condition is moved to skimming loop 2024-09-07 23:43:20 +02:00
Joshua Behrens
be6e1a809a
Add opinionated checks for installations on debian 12 and different architectures 2024-09-07 16:43:30 +02:00
Joshua Behrens
c01f24f5e4
Split include and lib directory variables
Solves #522
Solves #529
2024-09-07 16:09:53 +02:00
Stefan Siegl
ccf94d83b4
Merge pull request #531 from jkrzefski/patch-1
Update link to V8 version overview in README
2024-08-29 08:04:18 +02:00
Julian Krzefski
7aa2ffb979 Update link to V8 version overview in README 2024-08-25 16:14:20 +02:00
Stefan Siegl
1b521b3d58
Merge pull request #524 from redbullmarky/php8
Fixed compile issue against V8 12
2024-02-18 21:10:43 +01:00
Mark Grainger
7dcff4f3c9 Fixed compile issue against V8 12 2024-02-15 08:50:27 +00:00
Stefan Siegl
133bf61e05
Merge pull request #512 from chrisbckr/php8-v8js_to_zval_check_arraybuffer
Since ArrayBuffer has InternalFieldCount set to 2 by default, added !…
2023-02-27 12:09:49 +01:00
Christiano Becker
752cbdb8ac Since ArrayBuffer has InternalFieldCount set to 2 by default, added !isArrayBuffer() and !isArrayBufferView() to ensure that is PHP object 2023-02-27 08:03:22 -03:00
Stefan Siegl
21ed0f8ba9
Merge pull request #510 from chrisbckr/php8-tojson
Implements toJSON function that redirects to jsonSerialize
2023-02-22 20:26:04 +01:00
Christiano Becker
f696867dc2 Fixed tab-based indentation 2023-02-22 16:16:22 -03:00
Christiano Becker
34d944a9f5 toJSON: use zend_hash_find_ptr_lc instead of ZEND_HASH_FOREACH_STR_KEY_PTR 2023-02-22 16:13:13 -03:00
Christiano Becker
9cb0400f90 Added tests/tojson_001.phpt 2023-02-21 09:02:39 -03:00
Christiano Becker
c59982f129 Added toJSON Symbol that calls jsonSerialize if the php class exported implements JsonSerializable interface 2023-02-21 09:02:39 -03:00
Stefan Siegl
752cfa1d50
Merge pull request #509 from chrisbckr/php8-propagate_exception_magic_methods
Php8 propagate exception magic methods
2023-02-20 20:20:26 +01:00
Christiano Becker
35b5bff977 * Added test tests/php_exceptions_007.phpt 2023-02-20 14:59:41 -03:00
Christiano Becker
cfa5e722fb * Propagate exception when zend_read_property reads __get and throws an exception 2023-02-20 14:51:40 -03:00
Stefan Siegl
293a201d64
Merge pull request #508 from chrisbckr/php82-AllowDynamicProperties
PHP 8.2 compatibility
2023-02-20 12:15:37 +01:00
Christiano Becker
fab7a68717 PHP 8.2 compatibility
* tests/array_access_002.phpt - added #[AllowDynamicProperties] to the class MyArray
* tests/js-construct-protected-ctor.phpt - some change on how pph8.2 Exepctions references the line that caused the exception, when some call have multiple lines (eg: the executeString in this test), now references the line where the command started (first line) instead of the last line.
* V8Js Object Export: added to not enumerate magic methods __serialize and __unserialize - this two methods was added to DateTime objects and was causing tests/var_dump.phpt failing.
2023-02-20 08:09:13 -03:00
Stefan Siegl
7515dde3b1
Merge pull request #507 from chrisbckr/php8-test_timezone_lc
* tests/timezones.phpt - added LC_ALL=C to prevent test failing when …
2023-02-20 11:26:24 +01:00
Christiano Becker
f24a8af0f5 * tests/timezones.phpt - added LC_ALL=C to prevent test failing when another locale is set as default 2023-02-20 07:13:41 -03:00
Stefan Siegl
eb61c4ddcf
Merge pull request #506 from redbullmarky/php8
Segfault fix when using empty()
2023-02-19 18:58:14 +01:00
Stefan Siegl
eb66c66cff
Merge pull request #505 from chrisbckr/php82-AllowDynamicProperties
* Added AllowDynamicPropertis on V8Js, V8Object and V8Function
2023-02-19 18:54:17 +01:00
Mark Grainger
79a46804dc empty() test 2023-02-18 15:12:29 +00:00
Mark Grainger
1e25cc8788 segfault fix when checking with empty 2023-02-18 14:58:43 +00:00
Christiano Becker
83431fbd52 * Added AllowDynamicPropertis on V8Js, V8Object and V8Function
* Added #[AllowDynamicProperties] on test classes that uses Dynamic Properties
2023-02-18 10:18:36 -03:00
Stefan Siegl
7c40690ec0
Merge pull request #503 from marekskopal/php8_0-build-fix
Fixed build on PHP 8.0.x
2023-02-08 20:42:37 +01:00
Marek Skopal
e06b382bd0
Fixed build on PHP 8.0.x 2023-02-08 14:04:03 +01:00
Stefan Siegl
37cdb6f9cf fix build with php <8.2, refs #493 2023-02-03 19:38:20 +01:00
Stefan Siegl
1175617492 Merge branch 'rbro-patch-1' of https://github.com/rbro/v8js into php8 2023-02-03 19:33:43 +01:00
Stefan Siegl
8aa6bc2357 Merge branch 'php8-exit_segfault' of https://github.com/chrisbckr/v8js into php8
Conflicts:
	v8js_object_export.cc
2023-02-03 19:31:07 +01:00
Stefan Siegl
7887ec6475 Merge branch 'php7' into php8 2023-02-03 19:25:54 +01:00
Stefan Siegl
fa264c9ec5 define V8_ENABLE_SANDBOX if needed 2023-02-03 19:04:56 +01:00
Christiano Becker
5a10dec698 When FLAG_PROPAGATE_PHP_EXCEPTIONS is set, check for unwind or graceful exit before propagate 2023-01-16 17:35:07 -03:00
rbro
15ed4943ad
php 8.2 compatibility 2022-12-17 17:03:01 -05:00
Stefan Siegl
9afd1a941e
Merge pull request #490 from stesie/issue-489
Support V8 10.5
2022-06-30 15:21:03 +02:00
Stefan Siegl
461230be27
Merge pull request #484 from stesie/remove-deprecated-stuff
Remove supprt for V8 extensions, uncaught exceptions & V8Js::checkString method
2022-06-27 18:04:34 +02:00
Stefan Siegl
dd536bc5ce
Merge pull request #487 from stesie/exception-proxy-class
introduce V8Js::setExceptionProxyFactory
2022-06-27 18:04:14 +02:00
Stefan Siegl
26de750e8e auto-detect V8 sandbox and call InitializeSandbox if needed 2022-06-27 18:00:49 +02:00