#30380 [Asn]: getopt_long doesn't work unless HARTMUT_0 is defined
| From: | per at computer dot org | Date: | Mon, 11 Oct 2004 12:15:46 +0000 |
| Subject: | #30380 [Asn]: getopt_long doesn't work unless HARTMUT_0 is defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67410@lists.php.net to get a copy of this message | ||
ID: 30380
User updated by: per at computer dot org
Reported By: per at computer dot org
Status: Assigned
Bug Type: PHP options/info functions
Operating System: linux 2.4.27
PHP Version: 4.3.9
Assigned To: hholzgra
New Comment:
Just a quick comment - as far as I can tell using getopt() with long
options works fine. Obviously I haven't exactly done exhaustive tests,
but still.
Previous Comments:
------------------------------------------------------------------------
[2004-10-11 11:08:28] hholzgra@php.net
ok, looks like bug #20063 was the reason for this ...
------------------------------------------------------------------------
[2004-10-11 10:59:42] hholzgra@php.net
the commit message says
getopt with long options reverted to configure problems
(may find the wrong getopt.h so needed structures are not defined
:(
)
have to dig through the archives to see what that really was about ...
------------------------------------------------------------------------
[2004-10-11 07:58:41] derick@php.net
Hartmut,
what was the reason why you disabled this again?
Derick
------------------------------------------------------------------------
[2004-10-10 11:04:06] per at computer dot org
I tried configuring and building 4.3.8 with CFLAGS=-DHARTMUT_0 - just
in case I'd missed something. The build went fine, now I'll check if
the long options are also working.
------------------------------------------------------------------------
[2004-10-10 10:53:12] per at computer dot org
Description:
------------
According to the manual, getopt() supports long options. However, in a
standard build I receive the following:
Warning: getopt(): No support for long options in this build in <file>
Some investigation shows that getopt_long is only used when HARTMUT_0
is defined in the source.
Reproduce code:
---------------
$options=array("aa","bb","cc");
$opt=getopt("",$options);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30380&edit=1