Bug #80265 [Opn]: Can't us defined "Fn"

From: Date: Wed, 21 Oct 2020 06:24:43 +0000
Subject: Bug #80265 [Opn]: Can't us defined "Fn"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229821@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80265&edit=1 ID: 80265 User updated by: bugs dot php dot net at ignaciollorente dot com Reported by: bugs dot php dot net at ignaciollorente dot com Summary: Can't us defined "Fn" Status: Open Type: Bug Package: Compile Failure Operating System: Windows PHP Version: 7.4.11 Block user comment: N Private report: N New Comment: It seems to be related to Arrow Functions https://www.php.net/manual/en/functions.arrow.php Documentation does not show results when searching "fn" https://www.php.net/manual-lookup.php?pattern=fn&scope=quickref Previous Comments: ------------------------------------------------------------------------ [2020-10-21 06:18:55] bugs dot php dot net at ignaciollorente dot com Description: ------------ The word Fn can used after defined. It gives a syntax error. Test script: --------------- <?php define("Fn","hola"); #Parse error: syntax error, unexpected ';', expecting '(' in xxxx on line 4 echo Fn; ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80265&edit=1

« previous php.bugs (#229821) next »