summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend-parser.y3
-rw-r--r--Zend/zend_globals_macros.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend-parser.y b/Zend/zend-parser.y
index 56f855ebb2..c58c4733ae 100644
--- a/Zend/zend-parser.y
+++ b/Zend/zend-parser.y
@@ -30,7 +30,8 @@
#define YYERROR_VERBOSE
#define YYSTYPE znode
#ifdef ZTS
-#define YYPARSE_PARAM compiler_globals
+# define YYPARSE_PARAM compiler_globals
+# define YYLEX_PARAM compiler_globals
#endif
#include "zend_compile.h"
diff --git a/Zend/zend_globals_macros.h b/Zend/zend_globals_macros.h
index df739fd62b..75be8f27e2 100644
--- a/Zend/zend_globals_macros.h
+++ b/Zend/zend_globals_macros.h
@@ -33,7 +33,6 @@ typedef struct _zend_alloc_globals zend_alloc_globals;
# define CLS_CC , CLS_C
# define CG(v) (((zend_compiler_globals *) compiler_globals)->v)
# define CLS_FETCH() zend_compiler_globals *compiler_globals = (zend_compiler_globals *) ts_resource(compiler_globals_id)
-# define YYLEX_PARAM compiler_globals
BEGIN_EXTERN_C()
int zendparse(void *compiler_globals);
END_EXTERN_C()