summaryrefslogtreecommitdiff
path: root/Zend/tests/add_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/add_002.phpt')
-rw-r--r--Zend/tests/add_002.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/add_002.phpt b/Zend/tests/add_002.phpt
new file mode 100644
index 0000000..437ac91
--- /dev/null
+++ b/Zend/tests/add_002.phpt
@@ -0,0 +1,19 @@
+--TEST--
+adding objects to arrays
+--FILE--
+<?php
+
+$a = array(1,2,3);
+
+$o = new stdclass;
+$o->prop = "value";
+
+$c = $a + $o;
+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