blob: 7ab636b6a89c7ac748a913bc5f2a7e480930e8eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--TEST--
accessing object dimension
--FILE--
<?php
$object = new stdClass;
var_dump($object[1]);
?>
--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
|