Doc #79988 [NEW]: new reserved keyword `match` is and backward incompatible change
From: call dot user dot func at gmail dot com
Operating system:
PHP version: 8.0.0beta1
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:new reserved keyword match is and backward incompatible change
Description:
------------
I am testing php8 on my project. One project have Match as a class
name. In PHP8 this is now a syntax error. See: https://3v4l.org/ZTsft
It should be really dcoumented in
https://github.com/php/php-src/blob/php-8.0.0beta1/UPGRADING
-> 1.
Backward Incompatible Changes
instead of hidden in 2. New Features -> Added support for match
expression. RFC: https://wiki.php.net/rfc/match_expression_v2
This could be a real frustrating one in some projects. As in my case,
the class name is database related and i can't change it easily.
Test script:
---------------
class Match{
static function foo(){}
}
Match::foo();
--
Edit bug report at https://bugs.php.net/bug.php?id=79988&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79988&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79988&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79988&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79988&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79988&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79988&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79988&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79988&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79988&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79988&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79988&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79988&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79988&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79988&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79988&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79988&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79988&r=mysqlcfg
Thread (4 messages)
- call dot user dot func at gmail dot com