|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-03-26 11:39 UTC] emiel at alternet dot nl
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 " PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 14:00:01 2025 UTC |
XML source files are OK. Here is the patch for website presentation layer: Index: layout.inc =================================================================== RCS file: /repository/phpweb/include/layout.inc,v retrieving revision 1.261 diff -u -r1.261 layout.inc --- layout.inc 19 Feb 2007 23:53:02 -0000 1.261 +++ layout.inc 26 Mar 2007 13:12:03 -0000 @@ -35,6 +35,7 @@ '<span style="color: ', // from PHP 5.0.0RC1 '</font>', "\n ", + ' ', ' ' ), array( @@ -44,6 +45,7 @@ '<span class="', '</span>', "\n ", + ' ', ' ' ), $highlighted