Bug #78846 [NEW]: 'T_BAD_CHARACTER' undeclared
| From: | twose at qq dot com | Date: | Thu, 21 Nov 2019 02:03:58 +0000 |
| Subject: | Bug #78846 [NEW]: 'T_BAD_CHARACTER' undeclared | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223822@lists.php.net to get a copy of this message | ||
From: twose at qq dot com
Operating system: Ubuntu16
PHP version: master-Git-2019-11-21 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:'T_BAD_CHARACTER' undeclared
Description:
------------
/bin/bash /home/twosee/workspace/php/php-src/libtool --silent
--preserve-dup-deps --mode=compile cc
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/
-I/home/twosee/workspace/php/php-src/Zend/ -DPHP_ATOM_INC
-I/home/twosee/workspace/php/php-src/include
-I/home/twosee/workspace/php/php-src/main
-I/home/twosee/workspace/php/php-src -I/usr/include/valgrind
-I/home/twosee/workspace/php/php-src/ext/date/lib
-I/usr/include/x86_64-linux-gnu
-I/home/twosee/workspace/php/php-src/ext/mbstring/libmbfl
-I/home/twosee/workspace/php/php-src/ext/mbstring/libmbfl/mbfl
-I/home/twosee/workspace/php/php-src/TSRM
-I/home/twosee/workspace/php/php-src/Zend -I/usr/include -g
-fvisibility=hidden -O0 -Wall -Wno-strict-aliasing -DZEND_SIGNALS -c
/home/twosee/workspace/php/php-src/Zend/zend_language_scanner.c -o
Zend/zend_language_scanner.lo
Zend/zend_language_scanner.l: In function 'lex_scan':
Zend/zend_language_scanner.l:2865:15: error: 'T_BAD_CHARACTER'
undeclared (first use in this function)
RETURN_TOKEN(T_BAD_CHARACTER);
^
Zend/zend_language_scanner.l:1220:11: note: in definition of macro
'RETURN_TOKEN'
goto emit_token; \
^~~~~~
Zend/zend_language_scanner.l:2865:15: note: each undeclared identifier
is reported only once for each function it appears in
RETURN_TOKEN(T_BAD_CHARACTER);
^
Zend/zend_language_scanner.l:1220:11: note: in definition of macro
'RETURN_TOKEN'
goto emit_token; \
^~~~~~
Makefile:1357: recipe for target 'Zend/zend_language_scanner.lo' failed
make: *** [Zend/zend_language_scanner.lo] Error 1
make: *** Waiting for unfinished jobs....
===============
PHP master (f7c44ef2a0e1e1e5bed5527b8899c66b00416f43)
$ uname -a
Linux ubuntu 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC
2019 x86_64 x86_64 x86_64 GNU/Linux
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.4.0-1ubuntu1~18.04.1'
--with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++
--prefix=/usr --with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib
--enable-objc-gc=auto --enable-multiarch --disable-werror
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
$ bison -V
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====
$configure.sh
./configure \
--disable-all \
--with-config-file-path=${__DIR__}/etc \
--with-config-file-scan-dir=${__DIR__}/conf \
--enable-debug \
--enable-cli \
--enable-fpm \
--enable-ctype \
--enable-tokenizer (or disable) \
--enable-opcache \
--enable-filter \
--enable-json \
--enable-mbregex \
--enable-mbstring=all \
--with-mhash=/usr/local \
--with-pcre-regex \
--with-pcre-dir=/usr/local \
--enable-posix \
--enable-pcntl \
--enable-sockets \
--with-curl \
--with-iconv \
--with-openssl \
--enable-mysqlnd \
--enable-pdo \
--with-pdo-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--disable-opcache-jit
Expected result:
----------------
Compile successfully
Actual result:
--------------
'T_BAD_CHARACTER' undeclared
--
Edit bug report at https://bugs.php.net/bug.php?id=78846&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78846&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78846&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78846&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78846&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78846&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78846&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78846&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78846&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78846&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78846&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78846&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78846&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78846&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78846&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78846&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78846&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78846&r=mysqlcfg