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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to