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)    
Subscription  


 [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.

Comments

 [2006-10-03 18:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!