Author |
Message |
horf
Joined: 27 Nov 2015 Posts: 4
|
Posted: Fri Nov 27, 2015 1:28 pm Post subject: Obfus. functions breaks register_shutdown_function |
|
|
I would like to obfuscate the functions in our project, but in register_shutdown_function('earlyFatalErrorHandler'), the function name is not replaced by the obfuscated name.
Example test_errorHandler.php:
Code: | <?php
function earlyFatalErrorHandler()
{
die('Succeeded: Error catcher');
}
register_shutdown_function('earlyFatalErrorHandler');
spl_autoload_register('foo'); // test: throw a fatal error
|
Expected result:
Quote: | Succeeded: Error catcher |
Result (the fatal PHP error may not be caught):
Quote: | ( ! ) Warning: [obfuscated](): Invalid shutdown callback 'earlyFatalErrorHandler' passed in test_errorHandler.php on line 0
( ! ) Fatal error: Uncaught exception 'LogicException' with message 'Function 'foo' not found (function 'foo' not found or invalid function name)' in test_errorHandler.php on line 0
( ! ) LogicException: Function 'foo' not found (function 'foo' not found or invalid function name) in test_errorHandler.php on line 0 |
Do you plan to support this case? |
|
Back to top |
|
 |
horf
Joined: 27 Nov 2015 Posts: 4
|
Posted: Fri Nov 27, 2015 3:24 pm Post subject: 106 |
|
|
I've made a workaround by creating the following exclusion list:
Quote: | [functions]
earlyFatalErrorHandler |
|
|
Back to top |
|
 |
liaison ionCube Support
Joined: 16 Dec 2004 Posts: 2788
|
Posted: Fri Nov 27, 2015 9:34 pm Post subject: |
|
|
Thanks for posting, and that's actually the solution and not a workaround  _________________ Community Admin |
|
Back to top |
|
 |
|