xref: /PHP-7.1/Zend/tests/bug67858.phpt (revision 26a9dc3e)
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--
18Notice: Undefined variable: var in %s on line %d
19string(23) "Undefined variable: var"
20