summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2003-12-02 21:09:24 +0000
committerAndi Gutmans <andi@php.net>2003-12-02 21:09:24 +0000
commit23b231d0eb86c3f1ce835f5df3946b1ab35763d9 (patch)
treeb27d6571564374a0fb658f9321aa3d6085624dd5 /Zend/zend_operators.c
parentdacb3a68fe043073fcacead1c60c094d5b0264f0 (diff)
downloadphp-git-23b231d0eb86c3f1ce835f5df3946b1ab35763d9.tar.gz
- Revert the revert of these patches. This overloading can only be used
- by C extensions such as SimpleXML and *NOT* PHP code. Reasons given - on the mailing list and problem with reentrancy inside the opcodes.
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r--Zend/zend_operators.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index d26bee861e..8a6f78e645 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -492,7 +492,6 @@ ZEND_API void _convert_to_string(zval *op ZEND_FILE_LINE_DC)
op->value.str.len = sizeof("Array")-1;
break;
case IS_OBJECT: {
-#if ANDI_0
TSRMLS_FETCH();
if (op->value.obj.handlers->cast_object) {
if (op->value.obj.handlers->cast_object(op, op, IS_STRING, 1 TSRMLS_CC) == SUCCESS) {
@@ -502,7 +501,6 @@ ZEND_API void _convert_to_string(zval *op ZEND_FILE_LINE_DC)
} else {
zend_error(E_NOTICE, "Object of class %s to string conversion", Z_OBJCE_P(op)->name);
}
-#endif
zval_dtor(op);
op->value.str.val = estrndup_rel("Object", sizeof("Object")-1);
op->value.str.len = sizeof("Object")-1;