1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

Fixed error message

This commit is contained in:
Dmitry Stogov
2008-01-24 08:51:04 +00:00
parent cfcb262dfb
commit bab919b91b
2 changed files with 2 additions and 8 deletions
+1 -2
View File
@@ -8,5 +8,4 @@ $foo[3]->bar[1] = "bang";
echo "ok\n";
?>
--EXPECTF--
Warning: Cannot use string offset as an array in %s/bug41919.php on line %d
ok
Fatal error: Cannot use string offset as an object in %s/bug41919.php on line %d
+1 -6
View File
@@ -1234,12 +1234,7 @@ static void zend_fetch_property_address(temp_variable *result, zval **container_
zval *container;
if (!container_ptr) {
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;
zend_error_noreturn(E_ERROR, "Cannot use string offset as an object");
}
container = *container_ptr;