1
0
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:
Sterling Hughes
2003-07-03 07:18:41 +00:00
parent 14f70bb1b7
commit 62ea4ebd92
4 changed files with 6 additions and 6 deletions
-2
View File
@@ -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 {
+2 -2
View File
@@ -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--;
}
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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