cvs: php-src(PHP_4_3) /tests/lang bug24573.phpt
| From: | Jani Taskinen | Date: | Fri, 18 Jul 2003 12:25:09 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /tests/lang bug24573.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22644@lists.php.net to get a copy of this message | ||
sniper Fri Jul 18 08:25:09 2003 EDT
Added files: (Branch: PHP_4_3)
/php-src/tests/lang bug24573.phpt
Log:
MFH: test case for bug #24573
Index: php-src/tests/lang/bug24573.phpt
+++ php-src/tests/lang/bug24573.phpt
--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