helly           Sat Aug  9 10:34:44 2003 EDT

  Modified files:              
    /php-src/tests/classes      factory_and_singleton_002.phpt 
  Log:
  Reenable, works as expected
  
Index: php-src/tests/classes/factory_and_singleton_002.phpt
diff -u php-src/tests/classes/factory_and_singleton_002.phpt:1.4 
php-src/tests/classes/factory_and_singleton_002.phpt:1.5
--- php-src/tests/classes/factory_and_singleton_002.phpt:1.4    Tue Aug  5 04:49:56 
2003
+++ php-src/tests/classes/factory_and_singleton_002.phpt        Sat Aug  9 10:34:44 
2003
@@ -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 @@
     }
   }
 
-  function __construct($x) {
+  protected function __construct($x) {
     test::$cnt++;
     $this->x = $x;
   }
@@ -28,7 +28,7 @@
     test::$test = NULL;
   }
 
-  function __destruct() {
+  protected function __destruct() {
        test::$cnt--;
   }
 
@@ -96,3 +96,5 @@
 int(1)
 int(1)
 Done
+
+Warning: Call to protected test::__destruct from context '' during shutdown ignored 
in Unknown on line 0



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to