summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_044.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/errmsg_044.phpt')
-rw-r--r--Zend/tests/errmsg_044.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_044.phpt b/Zend/tests/errmsg_044.phpt
new file mode 100644
index 0000000..e908845
--- /dev/null
+++ b/Zend/tests/errmsg_044.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Trying use object of type stdClass as array
+--FILE--
+<?php
+
+$a[0] = new stdclass;
+$a[0][0] = new stdclass;
+
+?>
+--EXPECTF--
+Fatal error: Cannot use object of type stdClass as array in %s on line %d