Bug #79920 [NEW]: Parse error doesn't emit line number in error message

From: Date: Fri, 31 Jul 2020 10:17:55 +0000
Subject: Bug #79920 [NEW]: Parse error doesn't emit line number in error message
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228354@lists.php.net to get a copy of this message
From: info at joomlager dot de Operating system: Windows10 PHP version: 8.0.0alpha3 Package: *Compile Issues Bug Type: Bug Bug description:Parse error doesn't emit line number in error message Description: ------------ I'm running PHPUnit 8.5.8 on our codebase and tested it with PHP8. Unfortunately it seems to fail on the newly introduced reserved token "match" somewhere. However the error message is just ParseError: syntax error, unexpected token "match", expecting identifier or "static" or "namespace" or "\" without any file or line number given. I do get a stack trace, but the files and line numbers given in there, are nowhere near where the parse error seems to happen. -- Edit bug report at https://bugs.php.net/bug.php?id=79920&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79920&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79920&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79920&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79920&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79920&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79920&r=support Expected behavior: https://bugs.php.net/fix.php?id=79920&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79920&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79920&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79920&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79920&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79920&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79920&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79920&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79920&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79920&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79920&r=mysqlcfg

« previous php.bugs (#228354) next »