From a78ef013a257bddda133d61c2a5fdac988bd0359 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 25 Mar 2013 16:38:56 +0100 Subject: php 5.5: new snapshot, generated parser using system bison, test for https://bugs.php.net/64503 --- php-5.5.0-wip.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 php-5.5.0-wip.patch (limited to 'php-5.5.0-wip.patch') diff --git a/php-5.5.0-wip.patch b/php-5.5.0-wip.patch new file mode 100644 index 0000000..dd2481d --- /dev/null +++ b/php-5.5.0-wip.patch @@ -0,0 +1,29 @@ +diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y +index ccbc9b1..6a9a24a 100644 +--- a/Zend/zend_language_parser.y ++++ b/Zend/zend_language_parser.y +@@ -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)" -- cgit