|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6020 str_pad with the fourth param got a warning
Submitted: 2000-08-08 09:17 UTC Modified: 2000-08-08 19:26 UTC
From: ccjeagle at ms6 dot hinet dot net Assigned:
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: FreeBSD4.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ccjeagle at ms6 dot hinet dot net
New email:
PHP Version: OS:


 [2000-08-08 09:17 UTC] ccjeagle at ms6 dot hinet dot net
With the script:
$str = "xyz" ;
echo str_pad($str,9,"abcd",STR_PAD_BOTH) ;
I got a warning message:
"Wrong parameter count for str_pad()"

But without STR_PAD_BOTH 
she works fine.

My php.ini is the same as php.ini-optimized.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-08 09:36 UTC]
Seems to work for me, outputs:

 [2000-08-08 09:40 UTC]
works for me (win2k/b08-02) too
 [2000-08-08 10:12 UTC]
works for me too, so I'll suspend it until at least one evidence of what happens arrives.
 [2000-08-08 19:26 UTC]
the optional 4th parameter was introduced immedeatly
_after_ the 4.0.1* releases (release tag is on strings.c 1.132,
additional parameter patch is 1.133), so it can't worl in 4.0.1pl2
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 13:01:31 2024 UTC