php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50235 pad_length in str_pad() less than OR EQUAL
Submitted: 2009-11-19 16:36 UTC Modified: 2009-11-19 17:08 UTC
From: shelby at coolpage dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2009-11-19 16:36 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-19 17:08 UTC] 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 17:08 UTC] danbrown@php.net
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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 06:00:01 2026 UTC