For compiled extensions, you will need a stub file that contains the name of the functions. Since the latest versions of PHP include reflection capabilities for extensions [you can get extensions, certain classes and functions, and then mirror them to get their parameters], they should be able to generate them.
I give https://github.com/schmittjoh/php-stubs a try, but the PHP svn server is not working at the moment, so it will not work ... Let's try checking here later and update if it works.
source share