]> granicus.if.org Git - php/commitdiff
Fixed bug #64503 (Compilation fails with error: conflicting types for 'zendparse').
authorXinchen Hui <laruence@php.net>
Mon, 25 Mar 2013 15:48:21 +0000 (23:48 +0800)
committerXinchen Hui <laruence@php.net>
Mon, 25 Mar 2013 15:48:21 +0000 (23:48 +0800)
NEWS
Zend/zend_language_parser.y

diff --git a/NEWS b/NEWS
index 92e9c2bfe84d670542ff2fa706906fc04349fef6..09ce1d1382594d3eb000ea22230756ac142856d3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ PHP                                                                        NEWS
 ?? ??? 20??, PHP 5.5.0 Beta 2
 
 - Core:
+  . Fixed bug #64503 (Compilation fails with error: conflicting types for
+    'zendparse'). (Laruence)
   . Fixed bug #64239 (Debug backtrace changed behavior since 5.4.10 or 5.4.11).
     (Dmitry, Laruence)
 
index ccbc9b174c9d4fa499436293a2c6bfdd3805de86..6a9a24a87ea72ec65d4f55b5784bafcb8d862d85 100644 (file)
@@ -41,17 +41,19 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
 
 #define YYERROR_VERBOSE
 #define YYSTYPE znode
-#ifdef ZTS
-# define YYPARSE_PARAM tsrm_ls
-# define YYLEX_PARAM tsrm_ls
-#endif
-
 
 %}
 
 %pure_parser
 %expect 3
 
+%code requires {
+#ifdef ZTS
+# define YYPARSE_PARAM tsrm_ls
+# define YYLEX_PARAM tsrm_ls
+#endif
+}
+
 %token END 0 "end of file"
 %left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE
 %token T_INCLUDE      "include (T_INCLUDE)"