#36091 [Opn->Csd]: getopt() returns false on every call
| From: | bfrance@php.net | Date: | Thu, 23 Feb 2006 03:56:37 +0000 |
| Subject: | #36091 [Opn->Csd]: getopt() returns false on every call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93550@lists.php.net to get a copy of this message | ||
ID: 36091
Updated by: bfrance@php.net
Reported By: oli at isnic dot is
-Status: Open
+Status: Closed
Bug Type: CGI related
Operating System: FreeBSD 5.4
PHP Version: 5.1.2, 4.4.2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Closing this bug as I have commited the change into cvs for all
branches.
Previous Comments:
------------------------------------------------------------------------
[2006-02-12 11:02:38] tony2001@php.net
It's oneliner - commit it yourself if you care about BSD, I'm not going
to touch it again.
------------------------------------------------------------------------
[2006-02-12 09:28:24] sniper@php.net
Deleted irrelevant comments..Tony, can you just commit that patch of
yours and ignore the whining? :)
------------------------------------------------------------------------
[2006-01-30 12:13:24] oli at isnic dot is
optreset works for me on FreeBSD just as optind does when set
to 1 and not 0 as it is done now in php.
------------------------------------------------------------------------
[2006-01-30 11:04:28] tony2001@php.net
Changing both optind & optreset to 1 does the same as changing only
optind to 1. I.e. multiple calls to getopt() return expected result
after this change.
This code apparently doesn't exist in any branches, because I had no
chance to test it on Solaris and AIX yet.
------------------------------------------------------------------------
[2006-01-30 10:56:37] oli at isnic dot is
I don't see any reference to optreset in the php4 code I have
so I assume that you are testing something locally, are you
trying to set optreset to 0 or 1, since 1 should be the
correct value.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36091
--
Edit this bug report at http://bugs.php.net/?id=36091&edit=1