arnaud-lb / php-memory-profiler

Memory profiler for PHP. Helps finding memory leaks in PHP scripts.
MIT License
873 stars 52 forks source link

add stub and auto-generated arginfo #56

Closed remicollet closed 3 years ago

remicollet commented 3 years ago

Here is an implementation of generated arginfo from stub.php

Notice: *arginfo.h are auto-generated when stud.php is altered, but only if using PHP 8+

I have no real idea of what can be done for alias

arnaud-lb commented 3 years ago

Thanks @remicollet. I've made a small fix in #57 and merged it there.

For the aliases, the generator supports an @alias tag, however it was not appropriate in this case (I didn't want the aliases to end up in the general zend_function_entry[]), so I left them untouched.