Remove leftover restore_error_handler
Move decoding the attribute string to the place it belongs
Fix phpdoc