php-src/Zend/tests/offset_object.phpt
2006-06-01 11:57:49 +00:00

12 lines
189 B
PHP

--TEST--
accessing object dimension
--FILE--
<?php
$object = new stdClass;
var_dump($object[1]);
?>
--EXPECTF--
Fatal error: Cannot use object of type stdClass as array in %s on line %d