ID: 46938 Updated by: d...@php.net Reported By: kristof dot coomans at telenet dot be -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Irrelevant PHP Version: 5.3CVS-2008-12-24 (snap) New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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