mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
12 lines
189 B
PHP
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
|