From: Ilia Alshanetsky Date: Thu, 12 Jul 2007 23:33:50 +0000 (+0000) Subject: Commit previously missing patch for bug #41919 X-Git-Tag: php-5.2.4RC1~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e68effc2e6cc29aa47bcf6915d310f449bc8fd2;p=php Commit previously missing patch for bug #41919 --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 5ff01f510a..c69dcd72b6 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1235,7 +1235,12 @@ static void zend_fetch_property_address(temp_variable *result, zval **container_ zval *container; if (!container_ptr) { - zend_error_noreturn(E_ERROR, "Cannot use string offset as an object"); + zend_error(E_WARNING, "Cannot use string offset as an array"); + if (result) { + result->var.ptr_ptr = &EG(error_zval_ptr); + PZVAL_LOCK(*result->var.ptr_ptr); + } + return; } container = *container_ptr;