Bug #74972 [NEW]: Undefined constant: Parser Tokens

From: Date: Sat, 22 Jul 2017 14:20:47 +0000
Subject: Bug #74972 [NEW]: Undefined constant: Parser Tokens
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210194@lists.php.net to get a copy of this message
From: php at amvc dot nl Operating system: Alpine Linux PHP version: 7.1.7 Package: Scripting Engine problem Bug Type: Bug Bug description:Undefined constant: Parser Tokens Description: ------------ (first of all sorry; I'm not sure if affected package is correct) Usage of parser tokens results in a undefined constant notice since (at least) 7.1.5 on Alpine Linux. alpine:3.5 is working fine, aline:3.6 and :edge are causing problems. --------- FROM alpine:edge RUN apk add --no-cache php7 RUN php7 -v RUN php7 -m RUN php7 -r 'var_dump(T_ECHO);' RUN php7 -r 'var_dump(T_PRINT);' --------- Step 3/6 : RUN php7 -v ---> Running in 17cb9b5034d5 PHP 7.1.7 (cli) (built: Jul 19 2017 03:13:06) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies ---> e0fb51b72d87 Removing intermediate container 17cb9b5034d5 Step 4/6 : RUN php7 -m ---> Running in 0865a247ab4d [PHP Modules] Core date filter hash libxml pcre readline Reflection SPL standard [Zend Modules] ---> 1d44b74e76e0 Removing intermediate container 0865a247ab4d Step 5/6 : RUN php7 -r 'var_dump(T_ECHO);' ---> Running in b1a53a02f747 PHP Notice: Use of undefined constant T_ECHO - assumed 'T_ECHO' in Command line code on line 1 string(6) "T_ECHO" ---> 0c783b3043b5 Removing intermediate container b1a53a02f747 Step 6/6 : RUN php7 -r 'var_dump(T_PRINT);' ---> Running in c3d7f000fdac string(7) "T_PRINT" PHP Notice: Use of undefined constant T_PRINT - assumed 'T_PRINT' in Command line code on line 1 Test script: --------------- var_dump(T_PRINT); Expected result: ---------------- int(266) Actual result: -------------- string(7) "T_PRINT" PHP Notice: Use of undefined constant T_PRINT - assumed 'T_PRINT' in Command line code on line 1 -- Edit bug report at https://bugs.php.net/bug.php?id=74972&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74972&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74972&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74972&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74972&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74972&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74972&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74972&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74972&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74972&r=support Expected behavior: https://bugs.php.net/fix.php?id=74972&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74972&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74972&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74972&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74972&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74972&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74972&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74972&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74972&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74972&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74972&r=mysqlcfg

« previous php.bugs (#210194) next »