fix TSRMLS_CC
feature exit and die function