mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-08 14:48:40 +00:00
Merge pull request #508 from chrisbckr/php82-AllowDynamicProperties
PHP 8.2 compatibility
This commit is contained in:
commit
293a201d64
@ -6,6 +6,7 @@ Test V8::executeString() : Use ArrayAccess with JavaScript native push method
|
||||
v8js.use_array_access = 1
|
||||
--FILE--
|
||||
<?php
|
||||
#[AllowDynamicProperties]
|
||||
class MyArray implements ArrayAccess, Countable {
|
||||
private $data = Array('one', 'two', 'three');
|
||||
|
||||
|
@ -52,7 +52,7 @@ object(V8JsScriptException)#%d (13) {
|
||||
["file":protected]=>
|
||||
string(%d) "%s"
|
||||
["line":protected]=>
|
||||
int(29)
|
||||
int(%d)
|
||||
["trace":"Exception":private]=>
|
||||
array(1) {
|
||||
[0]=>
|
||||
@ -60,7 +60,7 @@ object(V8JsScriptException)#%d (13) {
|
||||
["file"]=>
|
||||
string(%d) "%s"
|
||||
["line"]=>
|
||||
int(29)
|
||||
int(%d)
|
||||
["function"]=>
|
||||
string(13) "executeString"
|
||||
["class"]=>
|
||||
|
@ -395,7 +395,9 @@ static void v8js_named_property_enumerator(const v8::PropertyCallbackInfo<v8::Ar
|
||||
IS_MAGIC_FUNC(ZEND_UNSET_FUNC_NAME) ||
|
||||
IS_MAGIC_FUNC(ZEND_CALL_FUNC_NAME) ||
|
||||
IS_MAGIC_FUNC(ZEND_INVOKE_FUNC_NAME) ||
|
||||
IS_MAGIC_FUNC(ZEND_ISSET_FUNC_NAME)) {
|
||||
IS_MAGIC_FUNC(ZEND_ISSET_FUNC_NAME) ||
|
||||
IS_MAGIC_FUNC("__serialize") ||
|
||||
IS_MAGIC_FUNC("__unserialize")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user