#50235 [Opn->Csd]: pad_length in str_pad() less than OR EQUAL
ID: 50235
Updated by: danbrown@php.net
Reported By: shelby at coolpage dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2009-11-19 17:08:16] svn@php.net
Automatic comment from SVN on behalf of danbrown
Revision: http://svn.php.net/viewvc/?view=revision&revision=291014
Log: Incorporates suggested text from Bug #50235.
------------------------------------------------------------------------
[2009-11-19 16:36:55] shelby at coolpage dot com
Description:
------------
The official manual documentation of str_pad(), states:
http://www.php.net/manual/en/function.str-pad.php
"If the value of pad_length is negative or less than the length of the
input string, no padding takes place."
Should be changed to:
If the value of pad_length is negative, equal, or less than the length
of the input string, no padding takes place.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50235&edit=1
Thread (2 messages)