mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
15 lines
263 B
PHP
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
|