xref: /PHP-8.0/Zend/tests/unset_cv04.phpt (revision 36935e42)
1--TEST--
2unset() CV 4 (unset() local variable in included file)
3--FILE--
4<?php
5function f() {
6  $x = "ok\n";
7  echo $x;
8  include "unset.inc";
9  echo $x;
10}
11f();
12?>
13--EXPECTF--
14ok
15
16Warning: Undefined variable $x in %s on line %d
17