summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-18 14:10:45 +0000
committerFelipe Pena <felipe@php.net>2008-03-18 14:10:45 +0000
commit2b10c53ae16bb79c5f6dd0da61d6b3c451251802 (patch)
tree97ff7a379e380d56f87547587fafb8540761ad25 /Zend/zend_API.c
parent8b01532f64cfeb88270b1a8b13c52dd76aa3d999 (diff)
downloadphp-git-2b10c53ae16bb79c5f6dd0da61d6b3c451251802.tar.gz
MFH: Dropped zend.ze1_compatibility_mode
[DOC]
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index cfa354a8d5..9cc9b7d023 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -153,34 +153,6 @@ ZEND_API int _zend_get_parameters_array_ex(int param_count, zval ***argument_arr
while (param_count-->0) {
zval **value = (zval**)(p-arg_count);
- if (EG(ze1_compatibility_mode) &&
- Z_TYPE_PP(value) == IS_OBJECT &&
- !Z_ISREF_PP(value)
- ) {
- zval *value_ptr;
- char *class_name;
- zend_uint class_name_len;
- int dup;
-
- dup = zend_get_object_classname(*value, &class_name, &class_name_len TSRMLS_CC);
-
- ALLOC_ZVAL(value_ptr);
- *value_ptr = **value;
- INIT_PZVAL(value_ptr);
- zend_error(E_STRICT, "Implicit cloning object of class '%s' because of 'zend.ze1_compatibility_mode'", class_name);
-
- if (Z_OBJ_HANDLER_PP(value, clone_obj) == NULL) {
- zend_error(E_CORE_ERROR, "Trying to clone uncloneable object of class %s", class_name);
- }
-
- if(!dup) {
- efree(class_name);
- }
-
- value_ptr->value.obj = Z_OBJ_HANDLER_PP(value, clone_obj)(*value TSRMLS_CC);
- zval_ptr_dtor(value);
- *value = value_ptr;
- }
*(argument_array++) = value;
arg_count--;
}