Added test case for bug #24573

This commit is contained in:
foobar 2003-07-18 12:24:49 +00:00
parent 94756ffb8b
commit a00e3f6f1e

23
tests/lang/bug24573.phpt Normal file
View File

@ -0,0 +1,23 @@
--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