diff options
author | Felipe Pena <felipe@php.net> | 2010-07-12 13:52:43 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-07-12 13:52:43 +0000 |
commit | 233bdc7d2b14641487887b35c3ccc96a062a4fd2 (patch) | |
tree | 5be7fe5608baa01954d6d76d8e7766eaf073a4dc | |
parent | 4d4ec8a96391d7a7ddef247c86bc3f98ce08b5e2 (diff) | |
download | php-git-233bdc7d2b14641487887b35c3ccc96a062a4fd2.tar.gz |
- Removed Bison checks
- Removed TSRMLS_FETCH() call in zend_ini_parser %syntax_error
-rw-r--r-- | Zend/acinclude.m4 | 33 | ||||
-rw-r--r-- | Zend/zend_ini_parser.y | 2 | ||||
-rw-r--r-- | acinclude.m4 | 11 | ||||
-rw-r--r-- | configure.in | 11 | ||||
-rw-r--r-- | win32/build/config.w32 | 3 |
5 files changed, 1 insertions, 59 deletions
diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4 index 4737a1684e..a7172dbac6 100644 --- a/Zend/acinclude.m4 +++ b/Zend/acinclude.m4 @@ -2,39 +2,6 @@ dnl $Id$ dnl dnl This file contains local autoconf functions. -AC_DEFUN([LIBZEND_BISON_CHECK],[ - # we only support certain bison versions - bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2" - - # for standalone build of Zend Engine - test -z "$SED" && SED=sed - - bison_version=none - if test "$YACC"; then - AC_CACHE_CHECK([for bison version], php_cv_bison_version, [ - bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z` - php_cv_bison_version=invalid - if test -n "$bison_version_vars"; then - set $bison_version_vars - bison_version="${1}.${2}" - for bison_check_version in $bison_version_list; do - if test "$bison_version" = "$bison_check_version"; then - php_cv_bison_version="$bison_check_version (ok)" - break - fi - done - fi - ]) - fi - case $php_cv_bison_version in - ""|invalid[)] - bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)." - AC_MSG_WARN([$bison_msg]) - YACC="exit 0;" - ;; - esac -]) - AC_DEFUN([ZEND_FP_EXCEPT],[ AC_CACHE_CHECK(whether fp_except is defined, ac_cv_type_fp_except,[ AC_TRY_COMPILE([ diff --git a/Zend/zend_ini_parser.y b/Zend/zend_ini_parser.y index 97b08246ad..06d9a00bf2 100644 --- a/Zend/zend_ini_parser.y +++ b/Zend/zend_ini_parser.y @@ -37,6 +37,7 @@ #define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg #define ZEND_INI_PARSER_SE (CG(ini_parser_param))->syntax_error +int ini_parse(TSRMLS_D); void *zend_ini_parseAlloc(void *(*mallocProc)(size_t)); void zend_ini_parseFree(void *p, void (*freeProc)(void*)); void zend_ini_parse(void *yyp, int yymajor, zval yyminor TSRMLS_DC); @@ -249,7 +250,6 @@ int ini_parse(TSRMLS_D) /* {{{ */ char *error_buf; int error_buf_len; char *currently_parsed_filename; - TSRMLS_FETCH(); ZEND_INI_PARSER_SE = 1; diff --git a/acinclude.m4 b/acinclude.m4 index 1444b82ae2..5c0a95cd66 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2086,17 +2086,6 @@ AC_DEFUN([PHP_PROG_AWK], [ ]) dnl -dnl PHP_PROG_BISON -dnl -dnl Search for bison and check it's version -dnl -AC_DEFUN([PHP_PROG_BISON], [ - AC_PROG_YACC - LIBZEND_BISON_CHECK - PHP_SUBST(YACC) -]) - -dnl dnl PHP_PROG_LEX dnl dnl Search for (f)lex and check it's version diff --git a/configure.in b/configure.in index aee8ceec52..1bd767717b 100644 --- a/configure.in +++ b/configure.in @@ -148,19 +148,8 @@ PHP_RUNPATH_SWITCH dnl Checks for some support/generator progs PHP_PROG_AWK -PHP_PROG_BISON -PHP_PROG_LEMON PHP_PROG_RE2C -dnl Check if bison generated files exist when bison does not.. -case $php_cv_bison_version in - ""|invalid[)] - if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then - AC_MSG_ERROR([bison is required to build PHP/Zend when building a SVN checkout!]) - fi - ;; -esac - PHP_ARG_ENABLE(re2c-cgoto, whether to enable computed goto gcc extension with re2c, [ --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension], no, no) diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 69a6e0bf17..8740ffeff3 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -46,9 +46,6 @@ PATH_PROG('nmake'); // we don't want to define LIB, as that will override the default library path // that is set in that env var PATH_PROG('lib', null, 'MAKE_LIB'); -if (!PATH_PROG('bison')) { - ERROR('bison is required') -} // There's a minimum requirement for re2c.. MINRE2C = "0.13.4"; |