Patch php-5.3.28-backport-bug-64503.patch for Compile Failure Bug #66329
Patch version 2013-12-20 13:44 UTC
Return to Bug #66329 |
Download this patch
Patch Revisions:
Developer: giamteckchoon@gmail.com
From: Giam Teck Choon <giamteckchoon@gmail.com>
Date: Fri, 20 Dec 2013 21:17:51 +0800
Subject: [PATCH] backport-bug-64503
Signed-off-by: Giam Teck Choon <choon@choon.net>
---
Zend/zend_language_parser.y | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y
index d24fc9c..1375512 100644
--- a/Zend/zend_language_parser.y
+++ b/Zend/zend_language_parser.y
@@ -38,17 +38,19 @@
#define YYERROR_VERBOSE
#define YYSTYPE znode
-#ifdef ZTS
-# define YYPARSE_PARAM tsrm_ls
-# define YYLEX_PARAM tsrm_ls
-#endif
-
%}
%pure_parser
%expect 2
+%code requires {
+#ifdef ZTS
+# define YYPARSE_PARAM tsrm_ls
+# define YYLEX_PARAM tsrm_ls
+#endif
+}
+
%left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE
%left ','
%left T_LOGICAL_OR
--
1.7.1
|