1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/tests/classes/factory_and_singleton_006.phpt
2015-05-17 17:31:43 -05:00

24 lines
479 B
PHP

--TEST--
ZE2 factory and singleton, test 6
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
class test {
private function __destruct() {
}
}
$obj = new test;
$obj = NULL;
echo "Done\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to private test::__destruct() from context '' in %sfactory_and_singleton_006.php:%d
Stack trace:
#0 {main}
thrown in %sfactory_and_singleton_006.php on line %d