Using APC with runkit's runkit_method_redefine makes the script execution crash (silently stop).
I'm happy to provide any more information, just tell me what, 'cause I'm not quite sure.
Similar issue here - runkit_method_rename works twice, but the third call kills things, unless we disable APC. Would love to be able to use both at once.
Sorry, I can reproduce none of these issues using the runkit from the master branch. Could you please provide a code sample, which results in crash.
This issue was reopened by accident.
Using php-fpm with zend opcache leads to the problem as well that after two times the method renaming does no longer work until the php process is restarted. (Reason here is that the target function is already present. A work-around is to first remove the target function if it already exists. This seems to be unrelated to opcode caching but to the stateful usage with php-fpm)
@everflux, could you please provide me with your php's version, your zend opcache's version, your zend opcache's configuration, and a test example. Unfortunately, I can't reproduce the issue without this info.