summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_044.phpt
blob: 4feecb308c4be56ca2ba26b0cbaaf750e50bc3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Trying use object of type stdClass as array
--FILE--
<?php

$a[0] = new stdclass;
$a[0][0] = new stdclass;

?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d