cvs: pear /PHPUnit2/Util Getopt.php
| From: | Sebastian Bergmann | Date: | Mon, 23 Jan 2006 07:48:11 +0000 |
| Subject: | cvs: pear /PHPUnit2/Util Getopt.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-37709@lists.php.net to get a copy of this message | ||
sebastian Mon Jan 23 07:48:11 2006 UTC
Modified files:
/pear/PHPUnit2/Util Getopt.php
Log:
Bugfix.
http://cvs.php.net/viewcvs.cgi/pear/PHPUnit2/Util/Getopt.php?r1=1.2&r2=1.3&diff_format=u
Index: pear/PHPUnit2/Util/Getopt.php
diff -u pear/PHPUnit2/Util/Getopt.php:1.2 pear/PHPUnit2/Util/Getopt.php:1.3
--- pear/PHPUnit2/Util/Getopt.php:1.2 Mon Jan 16 19:47:10 2006
+++ pear/PHPUnit2/Util/Getopt.php Mon Jan 23 07:48:11 2006
@@ -41,7 +41,7 @@
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* @copyright 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>
* @license http://www.opensource.org/licenses/bsd-license.php
BSD License
- * @version CVS: $Id: Getopt.php,v 1.2 2006/01/16 19:47:10 sebastian Exp $
+ * @version CVS: $Id: Getopt.php,v 1.3 2006/01/23 07:48:11 sebastian Exp $
* @link http://pear.php.net/package/PHPUnit2
* @since File available since Release 3.0.0
*/
@@ -82,7 +82,9 @@
array_shift($args);
}
- foreach ($args as $i => $arg) {
+ reset($args);
+
+ while (list($i, $arg) = each($args)) {
if ($arg == '--') {
$non_opts = array_merge($non_opts, array_slice($args, $i + 1));
break;