1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  Add test
  ws
This commit is contained in:
Dmitry Stogov
2021-12-03 13:40:27 +03:00
2 changed files with 28 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
--TEST--
Array object clobbering by user error handler
--FILE--
<?php
class A {
}
set_error_handler(function () {
$GLOBALS['a'] = null;
});
$a = new A;
$a[$c] = 'x' ;
var_dump($a);
$a = new A;
$a[$c] .= 'x' ;
var_dump($a);
$a = new A;
$a[$c][$c] = 'x' ;
var_dump($a);
?>
--EXPECT--
NULL
NULL
NULL
+1 -1
View File
@@ -1310,7 +1310,7 @@ static void ZEND_FASTCALL zend_jit_assign_dim_op_helper(zval *container, zval *d
return;
}
}
z = obj->handlers->read_dimension(obj, dim, BP_VAR_R, &rv);
if (z != NULL) {