When trying to upgrade XAMPP pear the following error is raised:
Fatal error: Cannot use result of built-in function in write context in C:\xampp\php\pear\Archive\Tar.php on line 639
Some suggestions how to fix this?
When trying to upgrade XAMPP pear the following error is raised:
Fatal error: Cannot use result of built-in function in write context in C:\xampp\php\pear\Archive\Tar.php on line 639
Some suggestions how to fix this?
Just change in Tar.php
$v_att_list = & func_get_args();
to
$v_att_list = func_get_args();
PD:Tested over PHP 7.2 in Xammp
=
. &=
makes no sense here, it's the bitwise and + assign operator. I couldn't fix your answer because the robot says the edit must weigh at least 6 characters and I was just trying to delete one character.
Dec 10, 2018 at 5:04
Usually this means you have a function inside a fuction, and sometimes it doesn't like that.
As an example, if this caused the error:
if(!isset(Session::get($something))){
Then you could change it to this to fix the problem:
$value = Session::get($something);
if(!isset($value)){