xref: /PHP-5.3/Zend/tests/add_003.phpt (revision c3b9d939)
1--TEST--
2adding arrays to objects
3--FILE--
4<?php
5
6$a = array(1,2,3);
7
8$o = new stdclass;
9$o->prop = "value";
10
11$c = $o + $a;
12var_dump($c);
13
14echo "Done\n";
15?>
16--EXPECTF--
17Notice: Object of class stdClass could not be converted to int in %s on line %d
18
19Fatal error: Unsupported operand types in %s on line %d
20