Author Topic: php parse error nzedb/utility/Misc.php on line 787  (Read 276 times)

Offline Mr. Happy

  • Junior Indexer
  • **
  • Posts: 11
  • Helpful: +0/-0
php parse error nzedb/utility/Misc.php on line 787
« on: 2018-04-18, 11:00:14 AM »
Since I updated to php 7 I get the following error when I try to access the site...
Code: [Select]
2018/04/18 19:50:51 [error] 2193#2193: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /var/www/nZEDb/nzedb/utility/Misc.php on line 787" while reading response header from upstream
Obviously something's wrong, but I have no idea what it might be... :o

Can someone point me in (preferably) the right direction??
-------------
When removing
Code: [Select]
: bool from every line that gives this error it works and no errors are generated...
« Last Edit: 2018-04-18, 12:21:29 PM by Mr. Happy »

Offline moloquin

  • Junior Indexer
  • **
  • Posts: 31
  • Helpful: +1/-0
Re: php parse error nzedb/utility/Misc.php on line 787
« Reply #1 on: 2018-04-25, 08:02:48 AM »
For what it's worth I'm seeing the same thing. 

Anything past v0.8.4.0 on 0.x produces the error.  0.8.4.0 runs perfectly.

PHP 7.1.16-1+0~20180405085551.16+jessie~1.gbp4937aa (cli) (built: Apr  5 2018 09:13:06)
Debian GNU/Linux 8
mysql  Ver 15.1 Distrib 10.0.32-MariaDB

Offline Wally73

  • Overlord
  • ******
  • Posts: 260
  • Helpful: +28/-1
  • i'm nuts
Re: php parse error nzedb/utility/Misc.php on line 787
« Reply #2 on: 2018-04-26, 02:34:46 AM »
create an issue on github