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 Warning: Undefined variable $x in %s on line %d