Skip to content

Commit c6af378

Browse files
committed
Fixed test (now string data allocated together with zend_string structure)
1 parent affc7ab commit c6af378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/tests/strings/str_pad_variation5.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo "*** Testing str_pad() function: with large value for for 'pad_length' argu
2424

2525
//defining '$input' argument
2626
$input = "Test string";
27-
$pad_length = PHP_INT_MAX;
27+
$pad_length = PHP_INT_MAX - 20 + 1; /* sizeof(zend_string) is 20, 1 character is included in zend_string structure itself */
2828
var_dump( str_pad($input, $pad_length) );
2929

3030
?>

0 commit comments

Comments
 (0)