PHP 4.0 Bug #7863: str_pad only taking 3 params, not 4
| From: | rickey at lefteris dot cix dot co dot uk | Date: | Fri, 17 Nov 2000 11:44:03 +0000 |
| Subject: | PHP 4.0 Bug #7863: str_pad only taking 3 params, not 4 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38405@lists.php.net to get a copy of this message | ||
From: rickey@lefteris.cix.co.uk
Operating system: SunOS 5.6
PHP version: 4.0.3pl1
PHP Bug Type: Strings related
Bug description: str_pad only taking 3 params, not 4
the str_pad function generates
"Warning: Wrong parameter count for str_pad() plus file and line number stuff."
from a line of code like
str_pad( 12, 4, "0", STR_PAD_LEFT);
docs say str_pad should take 4 parameters, but only works with 3. Looks like you cant specify
PAD_TYPE so function only does right padding.
--
Edit Bug report at: http://bugs.php.net/?id=7863&edit=1