blob: 972a901756ff1e22a48ae8812a3905673dc0b71c (
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
|