mirror of
https://github.com/php/php-src.git
synced 2024-12-17 05:50:14 +08:00
26 lines
366 B
Plaintext
26 lines
366 B
Plaintext
|
--TEST--
|
||
|
Inc/dec undef var with error handler
|
||
|
--FILE--
|
||
|
<?php
|
||
|
set_error_handler(function($_, $m) {
|
||
|
echo "$m\n";
|
||
|
unset($GLOBALS['x']);
|
||
|
});
|
||
|
var_dump($x--);
|
||
|
unset($x);
|
||
|
var_dump($x++);
|
||
|
unset($x);
|
||
|
var_dump(--$x);
|
||
|
unset($x);
|
||
|
var_dump(++$x);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Undefined variable $x
|
||
|
NULL
|
||
|
Undefined variable $x
|
||
|
NULL
|
||
|
Undefined variable $x
|
||
|
NULL
|
||
|
Undefined variable $x
|
||
|
int(1)
|