From: Dmitry Stogov Date: Fri, 11 Apr 2014 19:25:50 +0000 (+0400) Subject: Fixed test (now string data allocated together with zend_string structure) X-Git-Tag: POST_PHPNG_MERGE~412^2~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6af3781eeafb7bd7f64f08e5eb6c94ca5af7803;p=php Fixed test (now string data allocated together with zend_string structure) --- diff --git a/ext/standard/tests/strings/str_pad_variation5.phpt b/ext/standard/tests/strings/str_pad_variation5.phpt index cd979a1c8b..0dee148650 100644 --- a/ext/standard/tests/strings/str_pad_variation5.phpt +++ b/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 //defining '$input' argument $input = "Test string"; -$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 */ var_dump( str_pad($input, $pad_length) ); ?>