1--TEST-- 2oss-fuzz #62294: Unsetting variable after ++/-- on string variable warning 3--FILE-- 4<?php 5set_error_handler(function($_, $m) { 6 echo "$m\n"; 7 unset($GLOBALS['x']); 8}); 9 10$x=" "; 11echo "POST DEC\n"; 12var_dump($x--); 13 14$x=" "; 15echo "PRE DEC\n"; 16var_dump(--$x); 17 18$x=" "; 19echo "POST INC\n"; 20var_dump($x++); 21 22$x=" "; 23echo "PRE INC\n"; 24var_dump(++$x); 25?> 26--EXPECT-- 27POST DEC 28Decrement on non-numeric string has no effect and is deprecated 29string(1) " " 30PRE DEC 31Decrement on non-numeric string has no effect and is deprecated 32string(1) " " 33POST INC 34Increment on non-alphanumeric string is deprecated 35string(1) " " 36PRE INC 37Increment on non-alphanumeric string is deprecated 38string(1) " " 39