mirror of
https://github.com/php/php-src.git
synced 2024-10-04 16:26:13 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
13 lines
228 B
PHP
13 lines
228 B
PHP
--TEST--
|
|
Bug #41813 (segmentation fault when using string offset as an object)
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = "50";
|
|
$foo[0]->bar = "xyz";
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use string offset as an array in %s on line %d
|