1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/Zend/tests/unset_cv04.phpt
T
Máté Kocsis 36935e42ea Improve undefined variable error messages
Closes GH-5312
2020-03-31 13:02:32 +02:00

17 lines
228 B
PHP

--TEST--
unset() CV 4 (unset() local variable in included file)
--FILE--
<?php
function f() {
$x = "ok\n";
echo $x;
include "unset.inc";
echo $x;
}
f();
?>
--EXPECTF--
ok
Warning: Undefined variable $x in %s on line %d