This commit is contained in:
Dmitry Stogov 2007-07-09 08:53:14 +00:00
parent aeaf26b86d
commit 9f62beabfd
2 changed files with 5 additions and 2 deletions

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

View file

@ -1234,6 +1234,10 @@ 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");
}
container = *container_ptr;
if (container == EG(error_zval_ptr)) {
if (result) {