1--TEST--
2oss-fuzz #60709: Unsetting variable after undefined variable warning in ++/--
3--FILE--
4<?php
5set_error_handler(function($_, $m) {
6    echo "$m\n";
7    unset($GLOBALS['x']);
8});
9
10echo "POST DEC\n";
11var_dump($x--);
12unset($x);
13echo "POST INC\n";
14var_dump($x++);
15unset($x);
16echo "PRE DEC\n";
17var_dump(--$x);
18unset($x);
19echo "PRE INC\n";
20var_dump(++$x);
21?>
22--EXPECT--
23POST DEC
24Undefined variable $x
25Decrement on type null has no effect, this will change in the next major version of PHP
26NULL
27POST INC
28Undefined variable $x
29NULL
30PRE DEC
31Undefined variable $x
32Decrement on type null has no effect, this will change in the next major version of PHP
33NULL
34PRE INC
35Undefined variable $x
36int(1)
37