com php-src: Fixed test (now string data allocated together with zend_string structure): ext/standard/tests/strings/st r_pad_variation5.phpt

From: Date: Fri, 11 Apr 2014 19:25:50 +0000
Subject: com php-src: Fixed test (now string data allocated together with zend_string structure): ext/standard/tests/strings/st r_pad_variation5.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77422@lists.php.net to get a copy of this message
Commit: c6af3781eeafb7bd7f64f08e5eb6c94ca5af7803 Author: Dmitry Stogov <dmitry@zend.com> Fri, 11 Apr 2014 23:25:50 +0400 Parents: affc7ab6c5b899d787e9de85e8bdfab25c8cca85 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c6af3781eeafb7bd7f64f08e5eb6c94ca5af7803 Log: Fixed test (now string data allocated together with zend_string structure) Changed paths: M ext/standard/tests/strings/str_pad_variation5.phpt Diff: diff --git a/ext/standard/tests/strings/str_pad_variation5.phpt b/ext/standard/tests/strings/str_pad_variation5.phpt index cd979a1..0dee148 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) ); ?>

« previous php.cvs (#77422) next »