1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/Zend/tests/bug79791.phpt
Nikita Popov beb002a867 Fixed bug #79791
First throw the undefined variable warning, and then set the
variable to null. Otherwise we're not guaranteed that it's
actually null afterwards.
2020-07-07 16:00:50 +02:00

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)