Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a191144584
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (24 sloc) 0.475 kb
--TEST--
Test for bug #389: Destructors called on fatal error
--INI--
log_errors=0
xdebug.default_enable=1
xdebug.dump.GET=
xdebug.dump.SERVER=
--FILE--
<?php
class Food {
public function __destruct() {
echo "__destruct called\n";
}
}
$f = new Food();
echo "forcing fatal error:\n";
Abc::def();
?>
DONE
--EXPECTF--
forcing fatal error:
Fatal error: Class 'Abc' not found in %sbug00389.php on line 10
Call Stack:
%w%f%w%d 1. {main}() %sbug00389.php:0
Jump to Line
Something went wrong with that request. Please try again.