bfrance         Thu Feb 23 03:51:46 2006 UTC

  Modified files:              (Branch: PHP_5_1)
    /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.725.2.23&r2=1.725.2.24&diff_format=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.725.2.23 
php-src/ext/standard/basic_functions.c:1.725.2.24
--- php-src/ext/standard/basic_functions.c:1.725.2.23   Tue Feb 21 15:32:06 2006
+++ php-src/ext/standard/basic_functions.c      Thu Feb 23 03:51:46 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: basic_functions.c,v 1.725.2.23 2006/02/21 15:32:06 iliaa Exp $ */
+/* $Id: basic_functions.c,v 1.725.2.24 2006/02/23 03:51:46 bfrance Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -1667,7 +1667,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

Reply via email to