1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/Zend/tests/php_errormsg_misoptimization.phpt
2016-04-30 12:34:01 +02:00

21 lines
368 B
PHP

--TEST--
The variable $php_errormsg shouldn't be optimized as it may be unpredictably modified
--INI--
track_errors=1
--FILE--
<?php
function test() {
$php_errormsg = 1;
echo $undef;
var_dump($php_errormsg + 1);
}
test();
?>
--EXPECTF--
Notice: Undefined variable: undef in %s on line %d
Warning: A non-numeric value encountered in %s on line %d
int(1)