Test: /ext/spl/tests/arrayObject_exchangeArray_basic3.phpt - Version 5.3.20-dev    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
024+ ["
024- ["pub1"]=>
025- string(7) "public1"
026- ["addedToCopy"]=>
027- string(13) "added To Copy"
028- }
029-
030-
031- --> exchangeArray() with no arg:
032-
033- Warning: ArrayObject::exchangeArray() expects exactly 1 parameter, 0 given in %s on line 27
034- object(ArrayObject)#2 (1) {
035- ["storage":"ArrayObject":private]=>
036- object(C)#3 (2) {
037- ["pub1"]=>
038- string(7) "public1"
039- ["addedToOriginal"]=>
040- string(17) "added To Original"
041- }
042- }
043- object(C)#3 (2) {
044- ["pub1"]=>
045- string(7) "public1"
046- ["addedToOriginal"]=>
047- string(17) "added To Original"
048- }
049- array(2) {
050- ["pub1"]=>
051- string(7) "public1"
052- ["addedToCopy"]=>
053- string(13) "added To Copy"
054- }
055-
056-
057- --> exchangeArray() with bad arg type:
058- Exception:Passed variable is not an array or object, using empty array instead
059-
060- Notice: Undefined variable: copy in %s on line 46
061- object(ArrayObject)#3 (1) {
062- ["storage":"ArrayObject":private]=>
063- object(C)#2 (2) {
064- ["pub1"]=>
065- string(7) "public1"
066- ["addedToOriginal"]=>
067- string(17) "added To Original"
068- }
069- }
070- object(C)#2 (2) {
071- ["pub1"]=>
072- string(7) "public1"
073- ["addedToOriginal"]=>
074- string(17) "added To Original"
075- }
076- NULL