master branch removes all TSRMLS_* macros, add compat layer to support that

This commit is contained in:
Stanislav Malyshev
2019-04-01 11:06:15 -07:00
parent 48d6a8b40d
commit 5d1913acdc
3 changed files with 8 additions and 0 deletions

6
compat.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef TSRMLS_C
#define TSRMLS_C
#define TSRMLS_CC
#define TSRMLS_DC
#define TSRMLS_FETCH()
#endif

View File

@@ -30,6 +30,7 @@
#include "fuzzer.h"
#include "fuzzer-sapi.h"
#include "compat.h"
int fuzzer_do_parse(zend_file_handle *file_handle, char *filename)
{

View File

@@ -29,6 +29,7 @@
#include "fuzzer.h"
#include "fuzzer-sapi.h"
#include "compat.h"
const char HARDCODED_INI[] =
"html_errors=0\n"