mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Fixed bug #41919
This commit is contained in:
parent
aeaf26b86d
commit
9f62beabfd
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue