php-reports icon indicating copy to clipboard operation
php-reports copied to clipboard

Only variable should passed by reference in PHP 7

Open rustan-id opened this issue 8 years ago • 3 comments

I got this issue when using php-reports in PHP 7

Only variable should passed by reference in PhpReports.php on line 73 Only variable should passed by reference in PhpReports.php on line 208 Only variable should passed by reference in PhpReports.php on line 440

Thanks for the attention.

rustan-id avatar Sep 04 '16 23:09 rustan-id

Same here. I tried to contact with author, but I didn't get any answer. Right now seems broken for PHP7

devgiu avatar Sep 26 '16 12:09 devgiu

Hi. Here I solved just changing some reference parameters inside variable.

Example in PhpReports.php:

THIS: $ext = array_pop(explode('.',$report));

INTO THIS: $array_temp = explode('.',$report); $ext = array_pop($array_temp);

Also in array_keys (line 74), explode (line 230 and 445) and self::$config['environments'](aproximately line 73). Sorry, I just altered my phpreports.php. So this line numbers maybe are somewhat inaccurate, but what interest is the commands.

Best Whishes.

henrisouzarj avatar Oct 20 '16 14:10 henrisouzarj

superb thanks for ur help love u ....

SwamiManju143 avatar Apr 10 '18 09:04 SwamiManju143