We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75016a commit dd9627bCopy full SHA for dd9627b
ext/standard/array.c
@@ -4349,7 +4349,7 @@ PHP_FUNCTION(array_pad)
4349
input_size = zend_hash_num_elements(Z_ARRVAL_P(input));
4350
pad_size_abs = ZEND_ABS(pad_size);
4351
if (pad_size_abs < 0 || pad_size_abs - input_size > Z_L(1048576)) {
4352
- zend_throw_error(NULL, "Only 1048576 elements may be pad up at a time.");
+ zend_throw_error(NULL, "You may only pad up to 1048576 elements at a time");
4353
return;
4354
}
4355
ext/standard/tests/array/array_pad.phpt
@@ -86,6 +86,6 @@ array(4) {
86
[3]=>
87
float(2)
88
89
-Only 1048576 elements may be pad up at a time.
+You may only pad up to 1048576 elements at a time
90
91
DONE
0 commit comments