xref: /PHP-7.3/Zend/tests/bug67858.phpt (revision c61daf41)
1--TEST--
2Bug #67858: Leak when $php_errormsg already set
3--INI--
4track_errors=1
5error_reporting=E_ALL
6--FILE--
7<?php
8
9function f() {
10    $php_errormsg = [1, 2, 3];
11    echo $var;
12    var_dump($php_errormsg);
13}
14f();
15
16?>
17--EXPECTF--
18Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
19
20Notice: Undefined variable: var in %s on line %d
21string(23) "Undefined variable: var"
22