Fn is keyword in PHP 7.4 and throws a fatal error #134

Closed
opened 2021-06-07 07:45:10 +02:00 by mafa1993 · 4 comments
mafa1993 commented 2021-06-07 07:45:10 +02:00 (Migrated from github.com)

Describe the bug
php7.4 Fn is keyword,Fatal error

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...' /home/www/webmail/libremail-master/sync/src/Functions.php
  2. Click on '....' line3
  3. Scroll down to '.... ' line3
  4. See error

Expected behavior
PHP Parse error: syntax error, unexpected 'Fn' (T_FN), expecting '{' in /home/www/webmail/libremail-master/sync/src/Functions.php on line 3

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: ubuntu 16.04
  • Browser chrome 84
  • Version

Additional context
php7.4 exec install error, change libremail-master/sync/src/Functions.php namespace can fix it

**Describe the bug** php7.4 Fn is keyword,Fatal error **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' /home/www/webmail/libremail-master/sync/src/Functions.php 2. Click on '....' line3 3. Scroll down to '.... ' line3 4. See error **Expected behavior** PHP Parse error: syntax error, unexpected 'Fn' (T_FN), expecting '{' in /home/www/webmail/libremail-master/sync/src/Functions.php on line 3 **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: ubuntu 16.04 - Browser chrome 84 - Version **Additional context** php7.4 exec install error, change libremail-master/sync/src/Functions.php namespace can fix it
mikegioia commented 2021-06-07 17:19:14 +02:00 (Migrated from github.com)

Thank you @mafa1993. I'm unfamiliar with this error, I actually have not tested this at all in PHP 7.4 Does this mean the namespace "Fn" is not valid? If that's the case, that might be a larger-scale update for me. Those Fn/xyz() functions are used pretty much everywhere unfortunately.

Thank you @mafa1993. I'm unfamiliar with this error, I actually have not tested this at all in PHP 7.4 Does this mean the namespace "Fn" is not valid? If that's the case, that might be a larger-scale update for me. Those Fn/xyz() functions are used pretty much everywhere unfortunately.
mafa1993 commented 2021-06-17 04:52:27 +02:00 (Migrated from github.com)

change namespce Fn to another will solved this problem

change namespce Fn to another will solved this problem
mikegioia commented 2022-03-28 23:30:44 +02:00 (Migrated from github.com)

Related to #139, working on this one soon

Related to #139, working on this one soon
mikegioia commented 2022-03-29 00:24:53 +02:00 (Migrated from github.com)

Completed in #141

Completed in #141
Sign in to join this conversation.
No description provided.