Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.8.2
-
Fix Version/s: 1.10.7
-
Component/s: Zend_Console_Getopt
-
Labels:None
Description
In Zend/Console/Getopt.php line 611 :
$lines[] = $linepart;
$lines has not been initialized as an empty array before the foreach loop.
So, if $this->_rules is empty, the foreach never loops, $lines remain undefined, and a warning is sent at line 613 :
foreach ($lines as $linepart) {
I guess a simple :
$lines = array();
at line 585 should resolve the issue.
Issue Links
| This issue is duplicated by: | ||||
| ZF-9756 | "Undefined variable: lines" Zend_Console_Getopt getUsageMessage() line 623 |
|
|
|
Merged to branch release-1.10 r22495.