xref: /PHP-8.1/Zend/tests/bug79791.phpt (revision beb002a8)
1--TEST--
2Bug #79791: Assertion failure when unsetting variable during binary op
3--FILE--
4<?php
5set_error_handler(function() {
6    unset($GLOBALS['c']);
7});
8$c -= 1;
9var_dump($c);
10?>
11--EXPECT--
12int(-1)
13