summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-11-06 20:33:47 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-11-06 20:33:47 +0000
commitc258f9c8a29262d95dfa6da753ed0bc2b00d0c01 (patch)
treeadde3599c92c61be793fd0d48e6328364b9b63bd /Zend/zend_operators.c
parentf68114414b735d8ba78d1348ac690bd45826dffc (diff)
downloadphp-git-c258f9c8a29262d95dfa6da753ed0bc2b00d0c01.tar.gz
Fixed bug #26148 (Print the notice before modifying variable on type
mismatch). # This only crashes in ZE1, however logic dictates that it may also crash # in ZE2 because variable does not have a correct type. Patch by: morten-bugs dot php dot net at afdelingp dot dk
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r--Zend/zend_operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 60ac369320..f95a6f6aeb 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -485,10 +485,10 @@ ZEND_API void _convert_to_string(zval *op ZEND_FILE_LINE_DC)
break;
}
case IS_ARRAY:
+ zend_error(E_NOTICE, "Array to string conversion");
zval_dtor(op);
op->value.str.val = estrndup_rel("Array", sizeof("Array")-1);
op->value.str.len = sizeof("Array")-1;
- zend_error(E_NOTICE, "Array to string conversion");
break;
case IS_OBJECT:
if (op->value.obj.handlers->cast_object) {