php-src/Zend/tests/errmsg_044.phpt

15 lines
263 B
PHP

--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