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 affc7ab commit c6af378Copy full SHA for c6af378
ext/standard/tests/strings/str_pad_variation5.phpt
@@ -24,7 +24,7 @@ echo "*** Testing str_pad() function: with large value for for 'pad_length' argu
24
25
//defining '$input' argument
26
$input = "Test string";
27
-$pad_length = PHP_INT_MAX;
+$pad_length = PHP_INT_MAX - 20 + 1; /* sizeof(zend_string) is 20, 1 character is included in zend_string structure itself */
28
var_dump( str_pad($input, $pad_length) );
29
30
?>
0 commit comments