Making non-string callables work for error callbacks under PHP 5.3