debugging - Renaming Functions during runtime in PHP -


PHP 5.3 has a way to rename a function or a function is "hook".

There is rename_function () within "APD" which has broken out since 2004. If you try on PHP 5 and create it, then you get this error:

The name of 'struct _zend_compiler_globals' is not a member named 'extended_info'

This is a very easy error to fix, just change this line:

GC (extended_info) = 1;

to

CG (compiler_uppen) | = ZEND_COMPILE_EXTENDED_INFO;

I modified my php.ini and the APD looks in my phpinfo () as it should. However, when I call rename_function () then the PHP page does not load and I get a segmentation fault in my code.

What is the need to fix the APD to work with the modern version of PHP? Or is there any other way to rename the function? Why is not a major feature on the earth php? !?!? !! (Gotta love Python :)

can be found on the up-to-date runkey extension It releases all contemporary versions of PHP (up to 4.4 to 5.4+) This runkit is official and supported.

Honestly, Dmitry Zenovich


Comments