Add missing TSRMLS and remove unused error macros