mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
fix these tests
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
Bug #24399: is_subclass_of() crashes when parent class doesn't exist.
|
||||
--SKIPIF--
|
||||
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
class dooh {
|
||||
|
||||
@@ -19,7 +19,7 @@ class test {
|
||||
}
|
||||
}
|
||||
|
||||
protected function __construct($x) {
|
||||
function __construct($x) {
|
||||
test::$cnt++;
|
||||
$this->x = $x;
|
||||
}
|
||||
@@ -28,7 +28,7 @@ class test {
|
||||
test::$test = NULL;
|
||||
}
|
||||
|
||||
protected function __destruct() {
|
||||
function __destruct() {
|
||||
test::$cnt--;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,4 +16,5 @@ $obj = NULL;
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Call to protected destructor from context '' %sfactory_and_singleton_005.php on line %d
|
||||
Warning: Call to protected destructor from context '' in %sfactory_and_singleton_005.php on line %d
|
||||
Done
|
||||
|
||||
@@ -16,4 +16,5 @@ $obj = NULL;
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Call to private destructor from context '' %sfactory_and_singleton_006.php on line %d
|
||||
Warning: Call to private destructor from context '' in %sfactory_and_singleton_006.php on line %d
|
||||
Done
|
||||
|
||||
Reference in New Issue
Block a user