Test: /ext/standard/tests/strings/implode1.phpt - Version 5.4.7-dev    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
045- [0]=>
046- string(1) "a"
047- [1]=>
048- string(4) "aaaa"
049- [2]=>
050- string(1) "b"
051- [3]=>
052- string(4) "bbbb"
053- [4]=>
054- string(1) "c"
055- [5]=>
056- string(21) "ccccccccccccccccccccc"
057- }
058-
059- *** Testing implode() with variations of glue ***
060- -- Iteration 1 --
061- string(63) "2TRUE0TRUE-639TRUE1TRUEPHPTRUETRUETRUETRUE TRUEstring[0x0]with[0x0]...[0x0]"
062- -- Iteration 2 --
063- string(36) "2101-639111PHP1111 1string[0x0]with[0x0]...[0x0]"
064- -- Iteration 3 --
065- string(27) "20-6391PHP string[0x0]with[0x0]...[0x0]"
066- -- Iteration 4 --
067-
068- Notice: Array to string conversion in %s on line %d
069- string(13) "key1Arraykey2"
070- -- Iteration 5 --
071- string(27) "20-6391PHP string[0x0]with[0x0]...[0x0]"
072- -- Iteration 6 --
073- string(36) "2 0 -639 1 PHP string[0x0]with[0x0]...[0x0]"
074- -- Iteration 7 --
075- string(153) "2string[0x0]between0string[0x0]between-639string[0x0]between1string[0x0]betweenPHPstring[0x0]betweenstring[0x0]betweenstring[0x0]betweenstring[0x0]between string[0x0]betweenstring[0x0]with[0x0]...[0x0]"
076- -- Iteration 8 --
077- string(27) "20-6391PHP string[0x0]with[0x0]...[0x0]"
078- -- Iteration 9 --
079- string(36) "2000-639010PHP0000 0string[0x0]with[0x0]...[0x0]"
080- -- Iteration 10 --
081- string(45) "2\00\0-639\01\0PHP\0\0\0\0 \0string[0x0]with[0x0]...[0x0]"
082-
083- *** Testing implode() on empty string ***
084-
085- Warning: implode(): Argument must be an array in %s on line %d
086- NULL
087-
088- *** Testing implode() on sub-arrays ***
089-
090- Notice: Array to string conversion in %s on line %d
091-
092- Notice: Array to string conversion in %s on line %d
093- string(27) "ArrayTESTArrayTESTPHPTEST50"
094-
095- Notice: Array to string conversion in %s on line %d
096- string(19) "1Array2Array3Array4"
097-
098- Notice: Array to string conversion in %s on line %d
099-
100- Notice: Array to string conversion in %s on line %d
101- string(18) "Array2Array2PHP250"
102-
103- *** Testing implode() on objects ***
104- string(13) "Object,Object"
105- array(2) {
106- [0]=>
107- &object(foo)#1 (0) {
108- }
109- [1]=>
110- &object(foo)#1 (0) {
111- }
112- }
113-
114- *** Testing end() on resource type ***
115- string(%d) "Resource id #5::Resource id #6"
116-
117- *** Testing error conditions ***
118-
119- Warning: implode() expects at least 1 parameter, 0 given in %s on line %d
120- NULL
121-
122- Warning: implode(): Argument must be an array in %s on line %d
123- NULL
124-
125- Warning: implode(): Invalid arguments passed in %s on line %d
126- NULL
127-
128- Warning: implode(): Invalid arguments passed in %s on line %d
129- NULL
130- string(0) ""
131-
132- Warning: implode(): Invalid arguments passed in %s on line %d
133- NULL
134-
135- Warning: implode(): Invalid arguments passed in %s on line %d
136- NULL
137-
138- Warning: implode() expects at most 2 parameters, 3 given in %s on line %d
139- NULL
140- Done