getopt and longopts in PHP 5.3+
In the upcoming PHP 5.3+, the getopt() function will finally be available on Windows systems. Furthermore getopt() will support longopts on every system. To support this feature we moved the generic getopt function used by the PHP cli/cgi interpreter itself to main/ and recode getopt() to use this function.
Thanks for Jani to review and commit my patch.