summaryrefslogtreecommitdiff
path: root/Zend/tests/unset_cv04.phpt
blob: 5044cb1c8d73b760c36721fe8e7d87f0e5c4b900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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

Notice: Undefined variable: x in %sunset_cv04.php on line %d