[英]XAMPP: How to upgrade PEAR
When trying to upgrade XAMPP pear the following error is raised: 尝试升级XAMPP时,会引发以下错误:
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 只需更改Tar.php即可
$v_att_list = & func_get_args();
to 至
$v_att_list = func_get_args();
PD:Tested over PHP 7.2 in Xammp PD:在Xammp中通过PHP 7.2进行测试
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)){
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.