Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: XDEBUG_2_2_1
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.326 kB
--TEST--
Test for crash with a destructor
--INI--
xdebug.enable=1
xdebug.auto_trace=0
xdebug.collect_params=1
xdebug.auto_profile=0
xdebug.profiler_enable=0
--FILE--
<?php
class A {
public function __destruct() {
echo "destructor!\n";
}
}
$obj = new A();
echo "I'm alive!\n";
?>
--EXPECT--
I'm alive!
destructor!
Jump to Line
Something went wrong with that request. Please try again.