From:             kristof dot coomans at telenet dot be
Operating system: Irrelevant
PHP version:      5.3CVS-2008-12-24 (snap)
PHP Bug Type:     Feature/Change Request
Bug description:  Make getopt() report wrong options

Description:
------------
Now that PHP 5.3 will have getopt() available on all platforms, I think
it's important to also make it as usable as possible.

Currently, getopt() does not report in any way if there were any wrong
options provided on the command line. It would be nice to be able to give
the end user feedback on non-existing options he/she provided, or about
options he/she provided that require a value but for which no value was
supplied.

The ability to retrieve a list of option errors should be provided, either
by:
- throwing an exception
or
- a 3rd by-reference array argument to getopt()


-- 
Edit bug report at http://bugs.php.net/?id=46938&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46938&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46938&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46938&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46938&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46938&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46938&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46938&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46938&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46938&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46938&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46938&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46938&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46938&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46938&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46938&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46938&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46938&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46938&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46938&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46938&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46938&r=mysqlcfg

Reply via email to