summaryrefslogtreecommitdiff
path: root/Zend/tests/add_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/add_003.phpt')
-rw-r--r--Zend/tests/add_003.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/add_003.phpt b/Zend/tests/add_003.phpt
new file mode 100644
index 0000000000..4223af3f19
--- /dev/null
+++ b/Zend/tests/add_003.phpt
@@ -0,0 +1,19 @@
+--TEST--
+adding arrays to objects
+--FILE--
+<?php
+
+$a = array(1,2,3);
+
+$o = new stdclass;
+$o->prop = "value";
+
+$c = $o + $a;
+var_dump($c);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Notice: Object of class stdClass could not be converted to int in %s on line %d
+
+Fatal error: Unsupported operand types in %s on line %d