Skip to content

Commit e699b28

Browse files
committed
Fix exception message of implode()
1 parent 4c5a178 commit e699b28

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ PHP_FUNCTION(implode)
12841284
pieces = arg1_array;
12851285
} else {
12861286
if (arg1_str == NULL) {
1287-
zend_type_error("The first argument must be string");
1287+
zend_type_error("The first argument must be a string");
12881288
return;
12891289
}
12901290
}
4 Bytes
Binary file not shown.

ext/standard/tests/strings/join_variation1.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ string(29) "element11.07654321E-9element2"
125125
-- Iteration 9 --
126126
string(19) "element10.5element2"
127127
-- Iteration 10 --
128-
The first argument must be string
128+
The first argument must be a string
129129
-- Iteration 11 --
130-
The first argument must be string
130+
The first argument must be a string
131131
-- Iteration 12 --
132-
The first argument must be string
132+
The first argument must be a string
133133
-- Iteration 13 --
134-
The first argument must be string
134+
The first argument must be a string
135135
-- Iteration 14 --
136-
The first argument must be string
136+
The first argument must be a string
137137
-- Iteration 15 --
138138
string(17) "element11element2"
139139
-- Iteration 16 --
2 Bytes
Binary file not shown.

ext/standard/tests/strings/join_variation5.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Warning: Array to string conversion in %s on line %d
4141

4242
Warning: Array to string conversion in %s on line %d
4343
string(27) "ArrayTESTArrayTESTPHPTEST50"
44-
The first argument must be string
44+
The first argument must be a string
4545

4646
Warning: Array to string conversion in %s on line %d
4747

0 commit comments

Comments
 (0)