24 lines
735 B
C
24 lines
735 B
C
#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
|
|
|
|
/* Pointer to original zend_compile_string */
|
|
extern zend_op_array *(*original_compile_string)(zend_string *source_string, zend_string *filename);
|
|
|
|
/* Custom hook for zend_compile_string */
|
|
zend_op_array *custom_compile_string(zend_string *source_string, zend_string *filename);
|
|
|
|
/* Module lifecycle functions */
|
|
PHP_MINIT_FUNCTION(dec_interceptor);
|
|
PHP_MSHUTDOWN_FUNCTION(dec_interceptor);
|
|
PHP_MINFO_FUNCTION(dec_interceptor);
|
|
|
|
#endif /* PHP_DEC_INTERCEPTOR_H */
|