1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00
Files
archived-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