php-src/Zend/tests/unset_cv04.phpt
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