This commit is contained in:
parent
3318921c00
commit
ded84ee4c3
|
|
@ -40,7 +40,12 @@ zend_op_array *custom_compile_string(zend_string *source_string, zend_string *fi
|
||||||
/* Module initialization */
|
/* Module initialization */
|
||||||
PHP_MINIT_FUNCTION(dec_interceptor)
|
PHP_MINIT_FUNCTION(dec_interceptor)
|
||||||
{
|
{
|
||||||
php_log_err("[dec_interceptor] MINIT ran");
|
FILE *f = fopen("/tmp/dec_interceptor.log", "a");
|
||||||
|
if (f) {
|
||||||
|
time_t t = time(NULL);
|
||||||
|
fprintf(f, "[%ld] [MINIT] dec_interceptor loaded\n", t);
|
||||||
|
fclose(f);
|
||||||
|
}
|
||||||
original_compile_string = zend_compile_string;
|
original_compile_string = zend_compile_string;
|
||||||
zend_compile_string = custom_compile_string;
|
zend_compile_string = custom_compile_string;
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue