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

Bug #8643 Providing strings as min/max values gives weird results
Submitted: 2006-09-06 12:12 UTC
From: hering at luck-n-load dot de Assigned: scottmattocks
Status: Closed Package: Console_Getargs (version 1.3.1)
PHP Version: 5.1.4 OS: Linux/Debian 3.1
Roadmaps: (Not assigned)    

 [2006-09-06 12:12 UTC] hering at luck-n-load dot de (Benjamin Bittner)
Description: ------------ If you define any of the values for min/max as strings like this 'max' => '1' instead of 'max' => 1 you get strange results, especially when using switches with no min definition and a max definition of 0 (or in this case '0'). I know you should provide them as integers, but i think this is something what could be solved by casting to an integer, or mentioning it in the documentation.


 [2006-10-03 18:30 UTC] scottmattocks (Scott Mattocks)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.