mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
beb002a867
First throw the undefined variable warning, and then set the variable to null. Otherwise we're not guaranteed that it's actually null afterwards.
13 lines
201 B
PHP
13 lines
201 B
PHP
--TEST--
|
|
Bug #79791: Assertion failure when unsetting variable during binary op
|
|
--FILE--
|
|
<?php
|
|
set_error_handler(function() {
|
|
unset($GLOBALS['c']);
|
|
});
|
|
$c -= 1;
|
|
var_dump($c);
|
|
?>
|
|
--EXPECT--
|
|
int(-1)
|