#40919 [NEW]: Error in example code for str_pad
| From: | emiel at alternet dot nl | Date: | Mon, 26 Mar 2007 11:39:03 +0000 |
| Subject: | #40919 [NEW]: Error in example code for str_pad | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969375906@lists.php.net to get a copy of this message | ||
From: emiel at alternet dot nl
Operating system: n/a
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Error in example code for str_pad
Description:
------------
The comments in the example code for str_pad contains an error.
On the 3rd line of the code, the function returns a 10 character string,
however the comment for the code says it should return a 9 character
string.
Reproduce code:
---------------
echo str_pad($input, 10);
Expected result:
----------------
// produces "Alien "
Actual result:
--------------
// produces "Alien "
--
Edit bug report at http://bugs.php.net/?id=40919&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40919&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40919&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40919&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40919&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40919&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40919&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40919&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40919&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40919&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40919&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40919&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40919&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40919&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40919&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40919&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40919&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40919&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40919&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40919&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40919&r=mysqlcfg