helly           Mon Nov  8 08:42:55 2004 EDT

  Modified files:              
    /php-src/ext/spl    spl_functions.c 
  Log:
  - Fix constructors
  - This fixes exceptions in spl
  
  
http://cvs.php.net/diff.php/php-src/ext/spl/spl_functions.c?r1=1.26&r2=1.27&ty=u
Index: php-src/ext/spl/spl_functions.c
diff -u php-src/ext/spl/spl_functions.c:1.26 
php-src/ext/spl/spl_functions.c:1.27
--- php-src/ext/spl/spl_functions.c:1.26        Sun Oct 31 15:59:37 2004
+++ php-src/ext/spl/spl_functions.c     Mon Nov  8 08:42:53 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: spl_functions.c,v 1.26 2004/10/31 20:59:37 helly Exp $ */
+/* $Id: spl_functions.c,v 1.27 2004/11/08 13:42:53 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
        #include "config.h"
@@ -75,7 +75,11 @@
        *ppce = zend_register_internal_class_ex(&ce, parent_ce, NULL TSRMLS_CC);
 
        /* entries changed by initialize */
-       (*ppce)->create_object = obj_ctor;
+       if (obj_ctor) {
+               (*ppce)->create_object = obj_ctor;
+       } else {
+               (*ppce)->create_object = parent_ce->create_object;
+       }
 }
 /* }}} */
 

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

Reply via email to