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
Stefan Siegl
32d8dd8dec
conditionally call DisposePlatform or ShutdownPlatform
2022-06-24 22:24:52 +02:00
Stefan Siegl
23cc21c5b8
call InitializeSandbox
2022-06-24 21:54:08 +02:00
Stefan Siegl
883c9000c3
accessor signature checks are no longer supported
2022-06-24 21:47:28 +02:00
Stefan Siegl
19111d6514
ShutdownPlatform is DisposePlatform() now
2022-06-24 21:35:58 +02:00
Stefan Siegl
225c8cde63
test compiler for c++17 support
2022-06-24 21:27:33 +02:00
Stefan Siegl
dcb583267a
document how to uninstall a filter
2022-06-24 13:17:10 +02:00
Stefan Siegl
bf51bf52a9
document (re-)throwing behaviour from exception filter
2022-06-24 13:15:40 +02:00
Stefan Siegl
b635a16789
add test on uninstallation of exception filter
2022-06-24 12:55:08 +02:00
Stefan Siegl
4bfe2ef3ce
rename to setExceptionFilter
2022-06-24 12:04:11 +02:00
Stefan Siegl
712f54113b
Merge branch 'php7' of github.com:phpv8/v8js into php8
2022-06-01 08:10:27 +02:00
Stefan Siegl
0754d73775
Merge pull request #486 from stesie/script-origin-with-isolate
...
Use Isolate-version of ScriptOrigin constructor
2022-06-01 08:10:04 +02:00
Stefan Siegl
7247e9fee0
change minimum v8 version to 9.0
2022-06-01 08:07:49 +02:00
Stefan Siegl
4c026f3fb2
use isolate version of v8::ScriptOrigin
2022-06-01 08:07:48 +02:00
Stefan Siegl
abb8b6df14
Mention setExceptionProxyFactory in README
2022-06-01 08:04:41 +02:00
Stefan Siegl
ca38f724c8
handle exceptions thrown in proxy factory
2022-06-01 08:04:41 +02:00
Stefan Siegl
7422ef2383
run exceptions thrown in require() through proxy factory as well
2022-06-01 08:04:41 +02:00
Stefan Siegl
456814703c
add Throwable to string conversion testcase
2022-06-01 08:04:41 +02:00