mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
d0860f67ca
ASSIGN_OBJ_OP stores the cache slot in OP_DATA, so this ended up overwriting the binop opcode instread.
15 lines
210 B
PHP
15 lines
210 B
PHP
--TEST--
|
|
The ASSIGN_OBJ_OP cache slot is on the OP_DATA opcode
|
|
--FILE--
|
|
<?php
|
|
function test($a) {
|
|
$b = "x";
|
|
$a->$b = 1;
|
|
$a->$b &= 1;
|
|
var_dump($a->$b);
|
|
}
|
|
test(new stdClass);
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|