mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Added test case for bug #24573
This commit is contained in:
parent
94756ffb8b
commit
a00e3f6f1e
23
tests/lang/bug24573.phpt
Normal file
23
tests/lang/bug24573.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user