A less ideal solution, I thought I would mention the offspring here. The original idea is here .
You can capture the E_PARSE error you would get with a bad βrequestβ and pass it to the shutdown function. The idea is to suppress parsing errors ...
register_shutdown_function('post_plugin_include'); @require 'bad_include.php';
Then do your main implementation after the fact.
function post_plugin_include() { if(is_null($e = error_get_last()) === false) {
As I said, less ideal, but interesting nonetheless.
allnightgrocery
source share