php-src/tests/lang/bug24573.phpt
2003-07-18 12:24:49 +00:00

24 lines
268 B
PHP

--TEST--
Bug #24573 (debug_backtrace() crashes if $this is set to null)
--FILE--
<?php
class Foo {
function Bar() {
$__this = $this;
$this = null;
debug_backtrace();
$this = $__this;
}
}
$f = new Foo;
$f->Bar();
echo "OK\n";
?>
--EXPECT--
OK