Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: jetbrains-prof…
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (21 sloc) 0.326 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
--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!
Something went wrong with that request. Please try again.