ID: 36091
Updated by: [EMAIL PROTECTED]
Reported By: oli at isnic dot is
-Status: Open
+Status: Assigned
Bug Type: CGI related
Operating System: FreeBSD 5.4
PHP Version: 5.1.2, 4.4.2
-Assigned To:
+Assigned To: tony2001
New Comment:
Deleted irrelevant comments..Tony, can you just commit that patch of
yours and ignore the whining? :)
Previous Comments:
------------------------------------------------------------------------
[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] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[2006-01-24 01:15:43] [EMAIL PROTECTED]
Reassigned to myself.
I'll commit the patch as soon as I figure out if it works on Solaris
and AIX.
------------------------------------------------------------------------
[2006-01-20 13:30:34] [EMAIL PROTECTED]
Changing optind re-initalization to optind = 1; fixes it for me on
FreeBSD (and works on Linux).
Though it still makes we wonder why FreeBSD prefers to have its own
implementation of everything: for some reasons they also have `extern
int optreset;`, but it doesn't make any difference whether you change
it or not.
------------------------------------------------------------------------
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