xref: /PHP-7.1/Zend/tests/offset_object.phpt (revision 7af945e2)
1--TEST--
2accessing object dimension
3--FILE--
4<?php
5
6$object = new stdClass;
7var_dump($object[1]);
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