# here we go again, sorry for the mess and thanks to edin for reverting it
{
zend_function *function;
- if (!ce->parent || ce->constructor) {
+ if (!ce->parent) {
+ return;
+ }
+ if (!ce->__get) {
+ ce->__get = ce->parent->__get;
+ }
+ if (!ce->__set) {
+ ce->__set = ce->parent->__set;
+ }
+ if (!ce->__call) {
+ ce->__call = ce->parent->__call;
+ }
+ ce->create_object = ce->parent->create_object;
+ if (ce->constructor) {
return;
}
}
}
ce->constructor = ce->parent->constructor;
- if (!ce->__get) {
- ce->__get = ce->parent->__get;
- }
- if (!ce->__set) {
- ce->__set = ce->parent->__set;
- }
- if (!ce->__call) {
- ce->__call = ce->parent->__call;
- }
- ce->create_object = ce->parent->create_object;
}