1--TEST--
2The variable $php_errormsg shouldn't be optimized as it may be unpredictably modified
3--INI--
4track_errors=1
5--FILE--
6<?php
7
8function test() {
9    $php_errormsg = 1;
10    echo $undef;
11    var_dump($php_errormsg + 1);
12}
13test();
14
15?>
16--EXPECTF--
17Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
18
19Notice: Undefined variable: undef in %s on line %d
20
21Warning: A non-numeric value encountered in %s on line %d
22int(1)
23