diff options
Diffstat (limited to 'Zend/tests/offset_object.phpt')
-rw-r--r-- | Zend/tests/offset_object.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/offset_object.phpt b/Zend/tests/offset_object.phpt new file mode 100644 index 0000000..b570fd2 --- /dev/null +++ b/Zend/tests/offset_object.phpt @@ -0,0 +1,11 @@ +--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 |