Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: XDEBUG_1_3_0rc2
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.411 kB
--TEST--
Test for crash with a destructor
--SKIPIF--
<?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?>
--INI--
xdebug.enable=1
xdebug.auto_trace=0
xdebug.collect_params=1
xdebug.auto_profile=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.