bfrance Thu Feb 23 03:53:00 2006 UTC Modified files: (Branch: PHP_4_4) /php-src/ext/standard basic_functions.c Log: MFH: 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.543.2.51.2.7&r2=1.543.2.51.2.8&diff_format=u Index: php-src/ext/standard/basic_functions.c diff -u php-src/ext/standard/basic_functions.c:1.543.2.51.2.7 php-src/ext/standard/basic_functions.c:1.543.2.51.2.8 --- php-src/ext/standard/basic_functions.c:1.543.2.51.2.7 Tue Feb 21 15:35:01 2006 +++ php-src/ext/standard/basic_functions.c Thu Feb 23 03:53:00 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.543.2.51.2.7 2006/02/21 15:35:01 iliaa Exp $ */ +/* $Id: basic_functions.c,v 1.543.2.51.2.8 2006/02/23 03:53:00 bfrance Exp $ */ #include "php.h" #include "php_streams.h" @@ -1596,7 +1596,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
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php