[limb-svn] r5798 - 3.x/trunk/limb/tests_runner/src

svn at limb-project.com svn at limb-project.com
Fri May 4 11:34:31 MSD 2007


Author: tony
Date: 2007-05-04 11:34:31 +0400 (Fri, 04 May 2007)
New Revision: 5798
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5798

Modified:
   3.x/trunk/limb/tests_runner/src/lmbTestGetopt.class.php
Log:
-- minor fixes for remove notice at options parsing

Modified: 3.x/trunk/limb/tests_runner/src/lmbTestGetopt.class.php
===================================================================
--- 3.x/trunk/limb/tests_runner/src/lmbTestGetopt.class.php	2007-05-03 22:28:03 UTC (rev 5797)
+++ 3.x/trunk/limb/tests_runner/src/lmbTestGetopt.class.php	2007-05-04 07:34:31 UTC (rev 5798)
@@ -229,7 +229,11 @@
 
             /* Check that the options uniquely matches one of the allowed
                options. */
-            $next_option_rest = substr($long_options[$i + 1], $opt_len);
+            $next_option_rest = '';
+
+            if(isset($long_options[$i + 1]))
+              $next_option_rest = substr($long_options[$i + 1], $opt_len);
+
             if ($opt_rest != '' && $opt{0} != '=' &&
                 $i + 1 < count($long_options) &&
                 $opt == substr($long_options[$i+1], 0, $opt_len) &&



More information about the limb-svn mailing list