zend_error(E_STRICT, "Implicit cloning object of class '%s' because of 'zend.ze1_compatibility_mode'", class_name);
- if(dup) {
+ if(!dup) {
efree(class_name);
}
}
}
- if(dup)
- {
+ if(!dup) {
efree(class_name);
}
zend_error(E_STRICT, "Implicit cloning object of class '%s' because of 'zend.ze1_compatibility_mode'", class_name);
(*EG(return_value_ptr_ptr))->value.obj = Z_OBJ_HT_P(retval_ptr)->clone_obj(retval_ptr TSRMLS_CC);
- if(dup == SUCCESS) {
+ if(!dup) {
efree(class_name);
}
} else if (!EG(free_op1)) { /* Not a temp var */