Here is my code:
<?php
namespace joe;
function shutdown()
{
if(is_null($e = error_get_last()) === false)
{
mail('bili@web.de', 'Error from auto_prepend', print_r($e, true));
}
};
register_shutdown_function('shutdown');
...
With this lines I will get the error:
Warning: register_shutdown_function(): Invalid shutdown callback 'shutdown' passed in /www/...
If I delete my namespace it works like a charm. Whats wrong??