cvs: php-src /ext/standard basic_functions.c
| From: | Brian France | Date: | Thu, 23 Feb 2006 03:48:30 +0000 |
| Subject: | cvs: php-src /ext/standard basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36993@lists.php.net to get a copy of this message | ||
bfrance Thu Feb 23 03:48:30 2006 UTC
Modified files:
/php-src/ext/standard basic_functions.c
Log:
fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but
"optind = 1" seems to work on all systems (bug #36091)
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/basic_functions.c?r1=1.757&r2=1.758&diff_format=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.757 php-src/ext/standard/basic_functions.c:1.758
--- php-src/ext/standard/basic_functions.c:1.757 Wed Feb 22 13:10:32 2006
+++ php-src/ext/standard/basic_functions.c Thu Feb 23 03:48:30 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.757 2006/02/22 13:10:32 dmitry Exp $ */
+/* $Id: basic_functions.c,v 1.758 2006/02/23 03:48:30 bfrance Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -1597,7 +1597,7 @@
opterr = 0;
/* Force reinitialization of getopt() (via optind reset) on every call. */
- optind = 0;
+ optind = 1;
/* Invoke getopt(3) on the argument array. */
#ifdef HARTMUT_0