summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41813.phpt
blob: 9a609d09c8d99a3faa18dff0394e3b7425c8c07f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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: Uncaught Error: Cannot use string offset as an object in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d