Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.0

Bug #2486 Notice Error in parseArgs function
Submitted: 2004-10-09 10:35 UTC
From: farell Assigned: scottmattocks
Status: Closed Package: Console_Getargs
PHP Version: 4.3.9 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-09 10:35 UTC] farell
Description: ------------ In my search of best implementation of command line tools for my new development, i've begun to learn and practice the two packages: Console_Getargs and also Console_Getopt. i've just noticed a little error (E_NOTICE) with Console_Getargs_Options::parseArgs function. Good package, keep up ! Laurent Reproduce code: --------------- With your example script, try with error_reporting = E_ALL php -q example.php and also php -q example.php -- Expected result: ---------------- I'm not sure, but perharps the help screen arguments output ! Actual result: -------------- Notice: Undefined variable: err in [..]\Console\Getargs.php on line 498

Comments

 [2004-10-14 20:54 UTC] scottmattocks
Added a check for $err before trying to compare it. Thank you. Scott Mattocks