mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
20 lines
317 B
PHP
20 lines
317 B
PHP
--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"
|