Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_ini_parser.y php-src configure.in

From: Date: Tue, 07 Oct 2003 09:48:47 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_ini_parser.y php-src configure.in
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1882@lists.php.net to get a copy of this message
It looks as if it's a bison bug or at least a discontinued feature - they no longer handle a NULL token value (I just arrived at that conclusion a 5 minutes ago :) Are you sure this rule is not being used? I think it is. Zeev At 11:33 07/10/2003, Marcus Boerger wrote:
helly           Tue Oct  7 05:33:20 2003 EDT
Modified files:
    /php-src    configure.in
    /ZendEngine2        zend_ini_parser.y
Log: Bugfix #25770 Segfault with PHP and bison 1.875 Index: php-src/configure.in diff -u php-src/configure.in:1.467 php-src/configure.in:1.468 --- php-src/configure.in:1.467 Fri Oct 3 01:24:16 2003
+++ php-src/configure.in        Tue Oct  7 05:33:19 2003
@@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.467 2003/10/03 05:24:16 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.468 2003/10/07 09:33:19 helly Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -137,8 +137,8 @@ else
     AC_MSG_CHECKING([bison version])
     set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'|tr -d a-z`
-    if test "${1}" = "1" -a "${2}" != "28" -a "${2}" != "35" -a "${2}" != "75"; then
-      AC_MSG_WARN([You will need bison 1.28, 1.35 or 1.75 if you want to regenerate the Zend parser (found ${1}.${2}).])
+    if test "${1}" = "1" -a "${2}" != "28" -a "${2}" != "35" -a "${2}" != "75" -a "${2}" != "875"; then
+      AC_MSG_WARN([You will need bison 1.28, 1.35, 1.75 or 1.875 if you want to regenerate the Zend parser (found ${1}.${2}).])
     fi
     AC_MSG_RESULT(${1}.${2} (ok))
fi Index: ZendEngine2/zend_ini_parser.y diff -u ZendEngine2/zend_ini_parser.y:1.24 ZendEngine2/zend_ini_parser.y:1.25 --- ZendEngine2/zend_ini_parser.y:1.24 Tue Jun 10 16:03:25 2003
+++ ZendEngine2/zend_ini_parser.y       Tue Oct  7 05:33:20 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: zend_ini_parser.y,v 1.24 2003/06/10 20:03:25 imajes Exp $ */ +/* $Id: zend_ini_parser.y,v 1.25 2003/10/07 09:33:20 helly Exp $ */ #define DEBUG_CFG_PARSER 0 #include "zend.h" @@ -213,7 +213,6 @@
        |       CFG_TRUE { $$ = $1; }
        |       CFG_FALSE { $$ = $1; }
        |       '\n' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; }
-       |       '\0' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; }
; expr: -- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.zend-engine.cvs (#1882) next »