Re: Was: [Zend Engine 2] ini parsing error?
| From: | (Marcus Börger) | Date: | Mon, 07 Apr 2003 22:51:23 +0000 |
| Subject: | Re: Was: [Zend Engine 2] ini parsing error? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-772@lists.php.net to get a copy of this message | ||
At 22:45 07.04.2003, Marcus Börger wrote:
At 22:18 07.04.2003, Derick Rethans wrote:Here is a patch. I didn't commit yet because i am not really happy with it: Index: configure.in =================================================================== RCS file: /repository/php4/configure.in,v retrieving revision 1.441 diff -u -r1.441 configure.inOn Mon, 7 Apr 2003, Shane Caraveo wrote:Did something change very recently in ini file parsing? C:\src\php5\Zend>\php\50d\php-cli.exe -r "var_dump(class_exists('stdclass'));" PHP: Error parsing C:\php\50d\php.ini on line 1122 bool(false) That is a clean cvs build, using an unmodified php.ini-dist from cvs. Happens with both cli and cgi. The ini file is 1122 lines long.Which bison/flex do you have?What about spitting out an error when trying to use an erroneous bison/flex to prevent this in the future?
--- configure.in 4 Apr 2003 15:42:54 -0000 1.441 +++ configure.in 7 Apr 2003 22:49:47 -0000@@ -138,6 +138,7 @@
set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'`
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}).])
+ YACC='echo "You will need bison 1.28, 1.35 or 1.75 if you want to regenerate the Zend parser (found ${1}.${2})." && exit && echo :'
fi
AC_MSG_RESULT(${1}.${2} (ok))
fi
@@ -161,7 +162,8 @@
if test ! -z "$flexvers"; then
set $flexvers
if test "${1}" != "2" -o "${2}" != "5" -o "${3}" != "4"; then
- AC_MSG_WARN(You will need flex 2.5.4 if you want to regenerate Zend/PHP lexical parsers.)
+ AC_MSG_WARN(You will need flex 2.5.4 if you want to regenerate Zend/PHP lexical parsers (found ${1}.${2}.${3}).)
+ LEX='echo "You will need flex 2.5.4 if you want to regenerate Zend/PHP lexical parsers (found ${1}.${2}.${3})." && exit && echo :'
fi
fi
AC_MSG_RESULT(${1}.${2}.${3} (ok))