php-8.0.30-src/dec_interceptor/php_dec_interceptor.h

26 lines
819 B
C

/* php_dec_interceptor.h */
#ifndef PHP_DEC_INTERCEPTOR_H
#define PHP_DEC_INTERCEPTOR_H
#include "php.h"
#include "zend_compile.h"
#define PHP_DEC_INTERCEPTOR_VERSION "0.1.0"
extern zend_module_entry dec_interceptor_module_entry;
#define phpext_dec_interceptor_ptr &dec_interceptor_module_entry
/* chain-hook originals */
extern zend_op_array *(*prev_compile_file)(zend_file_handle *file_handle, int type);
extern zend_op_array *(*prev_compile_string)(zval *source_string, const char *filename);
/* hooks */
zend_op_array *hook_compile_file(zend_file_handle *file_handle, int type);
zend_op_array *hook_compile_string(zval *source_string, const char *filename);
PHP_MINIT_FUNCTION(dec_interceptor);
PHP_MSHUTDOWN_FUNCTION(dec_interceptor);
PHP_MINFO_FUNCTION(dec_interceptor);
#endif /* PHP_DEC_INTERCEPTOR_H */