summaryrefslogtreecommitdiff
path: root/Zend/tests/bug67858.phpt
blob: f0cfc74b0a9efcfb594960d8caab3bf017426b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #67858: Leak when $php_errormsg already set
--INI--
track_errors=1
error_reporting=E_ALL
--FILE--
<?php

function f() {
    $php_errormsg = [1, 2, 3];
    echo $var;
    var_dump($php_errormsg);
}
f();

?>
--EXPECTF--
Notice: Undefined variable: var in %s on line %d
string(23) "Undefined variable: var"