1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/tests/lang/bug24573.phpt
2004-02-04 17:55:44 +00:00

24 lines
318 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";
?>
--EXPECTF--
Fatal error: Cannot re-assign $this in %s on line %d