xref: /PHP-7.2/Zend/tests/errmsg_044.phpt (revision e97d5fab)
1--TEST--
2Trying use object of type stdClass as array
3--FILE--
4<?php
5
6$a[0] = new stdclass;
7$a[0][0] = new stdclass;
8
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: Cannot use object of type stdClass as array in %s:%d
12Stack trace:
13#0 {main}
14  thrown in %s on line %d
15