ID: 46938 User updated by: kristof dot coomans at telenet dot be Reported By: kristof dot coomans at telenet dot be Status: Bogus Bug Type: Feature/Change Request Operating System: Irrelevant PHP Version: 5.3CVS-2008-12-24 (snap) New Comment:
I didn't report this as a bug, but under the category "Feature/Change RequestFeature". I think this is a good enhancement and do not understand why it gets closed with a standard reply of "Please double-check the documentation". Previous Comments: ------------------------------------------------------------------------ [2009-01-02 13:03:06] [email protected] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Expected behavior. ------------------------------------------------------------------------ [2008-12-24 10:13:45] kristof dot coomans at telenet dot be 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 this bug report at http://bugs.php.net/?id=46938&edit=1
