diff options
author | Antony Dovgal <tony2001@php.net> | 2007-04-28 11:59:08 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-04-28 11:59:08 +0000 |
commit | c3b9d939e045e77095c4f4f69e12e0c6f9e5cb1f (patch) | |
tree | 14b9eb7d201e58ce0189d03a76402a35430d08d6 /Zend/tests/add_003.phpt | |
parent | 70e6d3d042538cac68f17539bdc337244e92edee (diff) | |
download | php-git-c3b9d939e045e77095c4f4f69e12e0c6f9e5cb1f.tar.gz |
add new tests
Diffstat (limited to 'Zend/tests/add_003.phpt')
-rw-r--r-- | Zend/tests/add_003.phpt | 19 |
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 |