mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
12 lines
189 B
Plaintext
12 lines
189 B
Plaintext
|
--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
|