summaryrefslogtreecommitdiff
path: root/Zend/tests/add_003.phpt
blob: 4223af3f19ba49d9fee6e067ed8cfc9526c2eac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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