diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-04-11 23:25:50 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-11 23:25:50 +0400 |
commit | c6af3781eeafb7bd7f64f08e5eb6c94ca5af7803 (patch) | |
tree | 1478ec8fcae436c41a66357eb6588112e4a0735c | |
parent | affc7ab6c5b899d787e9de85e8bdfab25c8cca85 (diff) | |
download | php-git-c6af3781eeafb7bd7f64f08e5eb6c94ca5af7803.tar.gz |
Fixed test (now string data allocated together with zend_string structure)
-rw-r--r-- | ext/standard/tests/strings/str_pad_variation5.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
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) ); ?> |