尝试升级XAMPP时,会引发以下错误:
Fatal error: Cannot use result of built-in function in write context in C:\xampp\php\pear\Archive\Tar.php on line 639
如何解决此问题的一些建议?
答案 0 :(得分:22)
只需更改Tar.php
$v_att_list = & func_get_args();
到
$v_att_list = func_get_args();
PD:在Xammp上通过PHP 7.2进行了测试
答案 1 :(得分:0)
通常,这意味着您在函数内部有一个函数,有时并不喜欢。
例如,如果这引起错误:
$ curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer 7cc2337d64ca7238ec3534c251f72e34" -d @user_registration_sample_3.json "https://api.myorganization.org/api/dsa/v1.0.0/user_registration"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 644 100 444 100 200 3 1 0:03:20 0:02:00 0:01:20 64<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/api/dsa/v1.0.0/user_registration">POST /api/dsa/v1.0.0/user_registration</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
</body></html>
然后您可以将其更改为解决问题的方法:
if(!isset(Session::get($something))){