… runkit_method_rename, was fixed
…s fixed. New test was added. Some coding style issues were fixed.
…nstants. Fixes of issues with importing functions or methods having static variables inside them. Some new tests were added.
…level const "RUNKIT_IMPORT_CLASS_STATIC_PROPS" was introduced. The issue with ZVAL_ADDREF on importing class constants and properties in PHP 5.3+ was fixed. An ability to import functions and methods having closures inside them in PHP 5.3+ was added (the issue with "Inconsistency cleaning up import environment" was fixed). The behaviour that old methods had been always overridden by new ones independently from the RUNKIT_IMPORT_OVERRIDE flag was corrected. An ability to apply a closure to a sandbox in PHP 5.3+ by calling the call_user_func method was added using a dirty hack. Please, use it cautiously. Some new tests were added.
…case names, tests were extended; Applied patch by David Sklar to add static method constant, and static
…tic variables in itself and copied by runkit crashes afterwards on calling if the original method or function was removed. This change corrects copying of static variables and adds the test for the described behaviour.
…ter restoring modified internal functions. This problem was fully described here http://pecl.php.net/bugs/bug.php?id=11632 but I see this bug occurs only after the second request to the test-page through fascgi (on the same worker process) or results in crash in cli mode for the each test execution. The solution is to remove all user-defined functions out of the executor's global function table in a request shutdown function.
…t least it was an ugly and dangerous solution. It worked in cli mode but crashed in fastcgi mode. Here is the undo.
…dified internal functions (5.2.6 x86_64). As the crash occured when the PHP have executed the global-functions table destructor for each function again, the destructor pointer nulling cures the problem.
…g after revertion
…dot com (see the second comment from http://pecl.php.net/bugs/bug.php?id=14086)