diff options
author | Tomas V.V.Cox <cox@php.net> | 2003-06-30 10:09:44 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2003-06-30 10:09:44 +0000 |
commit | 1ca5fc5f0aa5f7a436deaf58e2c7a3464c485210 (patch) | |
tree | b8ba2c5f2643ca58e473f1ba7a4d5886248e3410 | |
parent | 0422e0d475e07d390cfbdd4d9c2413f2f57f90f8 (diff) | |
download | php-git-1ca5fc5f0aa5f7a436deaf58e2c7a3464c485210.tar.gz |
Fix for http://bugs.php.net/bug.php?id=21994
-rw-r--r-- | pear/Console/Getopt.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php index 1f98a1c083..9bc48c1480 100644 --- a/pear/Console/Getopt.php +++ b/pear/Console/Getopt.php @@ -183,7 +183,7 @@ class Console_Getopt { if (substr($long_opt, -2) != '==') { /* Long option requires an argument. Take the next argument if one wasn't specified. */; - if (!$opt_arg && !(list(, $opt_arg) = each($args))) { + if (!strlen($opt_arg) && !(list(, $opt_arg) = each($args))) { return PEAR::raiseError("Console_Getopt: option --$opt requires an argument"); } } |