#46937 [Opn->NoF]: Make getopt() usable with non-option arguments
| From: | dsp@php.net | Date: | Fri, 02 Jan 2009 12:54:59 +0000 |
| Subject: | #46937 [Opn->NoF]: Make getopt() usable with non-option arguments | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132504@lists.php.net to get a copy of this message | ||
ID: 46937
Updated by: dsp@php.net
Reported By: kristof dot coomans at telenet dot be
-Status: Open
+Status: No Feedback
Bug Type: Feature/Change Request
Operating System: Doesn't matter
PHP Version: 5.3CVS-2008-12-24 (snap)
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-12-24 10:03:30] kristof dot coomans at telenet dot be
Description:
------------
Now that PHP 5.3 will have getopt() available on all platforms, I think
it's important to also make it as usable as possible.
Currently, getopt() is not usable for command line scripts that have
both option and non-option arguments, because it doesn't modify argv, as
pointed out already in 2003 in this comment:
http://www.php.net/getopt#34163. Stripping away the
option arguments
from argv when a call to getopt() is made would be a great improvement.
User land code can handle the remaining non-option arguments from argv
then.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46937&edit=1