|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17705 str_pad optional parameters not optional
Submitted: 2002-06-11 12:13 UTC Modified: 2002-07-07 13:46 UTC
From: dvernet at kingstonsf dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.0CVS-2002-06-11 OS: Win2000
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: dvernet at kingstonsf dot com
New email:
PHP Version: OS:


 [2002-06-11 12:13 UTC] dvernet at kingstonsf dot com
Win2K, PHP4.06, Apache

Omitting the optional [pad_string] and [pad_type] params for str_pad() will not produce default behaviour ie, rather nothing is done to the string at all.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-11 19:21 UTC]
Can't reproduce. Please add a short but complete script here
which can be used in reproducing this bug.

 [2002-07-07 13:06 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2002-07-07 13:46 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately your are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 08:01:28 2024 UTC