xref: /PHP-5.6/Zend/tests/offset_object.phpt (revision ff593514)
1--TEST--
2accessing object dimension
3--FILE--
4<?php
5
6$object = new stdClass;
7var_dump($object[1]);
8
9?>
10--EXPECTF--
11Fatal error: Cannot use object of type stdClass as array in %s on line %d
12