]> granicus.if.org Git - php/commitdiff
Reenable, works as expected
authorMarcus Boerger <helly@php.net>
Sat, 9 Aug 2003 14:34:44 +0000 (14:34 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 9 Aug 2003 14:34:44 +0000 (14:34 +0000)
tests/classes/factory_and_singleton_002.phpt

index 199db2902826a2de3d51d6ed1f3ec9a3b31e9ccb..2cb9a892f046496b210224a9b2a3f75ab46d9760 100755 (executable)
@@ -1,7 +1,7 @@
 --TEST--
 ZE2 factory and singleton, test 2
 --SKIPIF--
-<?php die('skip currently stucks due to destructor corruption'); if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
+<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
 --FILE--
 <?php
 class test {
@@ -19,7 +19,7 @@ class test {
     }
   }
 
-  function __construct($x) {
+  protected function __construct($x) {
     test::$cnt++;
     $this->x = $x;
   }
@@ -28,7 +28,7 @@ class test {
     test::$test = NULL;
   }
 
-  function __destruct() {
+  protected function __destruct() {
        test::$cnt--;
   }
 
@@ -96,3 +96,5 @@ Destruct y
 int(1)
 int(1)
 Done
+
+Warning: Call to protected test::__destruct from context '' during shutdown ignored in Unknown on line 0