mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
15 lines
245 B
PHP
15 lines
245 B
PHP
--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
|