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:
@@ -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
|
||||
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user