mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
- Fix constructors
- This fixes exceptions in spl
This commit is contained in:
1 parent
cb16f5e815
commit
118d5a7d5b
1 file changed
+5
-1
@@ -75,7 +75,11 @@ void spl_register_sub_class(zend_class_entry ** ppce, zend_class_entry * parent_
|
||||
*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;
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in new issue
Block a user