在设置PHP服务器时,出现了以下错误:
严格标准:在第75行的C:\xamp\htdocs\Xce Source\Source\Extra\Xce.php中只应引用变量传递PHP严格标准:在第75行的C:\xamp\htdocs\Xce Source\Source\Extra\Xce.php中只应引用传递变量
这是第75行:
$ready = socket_select($read, $w = null, $e = null, $t = 0);
我需要改变什么?同样的代码,我总是有这个问题。
发布于 2017-08-05 12:06:44
不要使用$ready = socket_select($read, $w = null, $e = null, $t = 0);
,而要使用以下内容:
$w = null;
$e = null;
$t = 0;
$ready = socket_select($read, $w, $e, $t);
当您将此$w = null
作为函数参数执行时,实际上传递的是null
,而不是对$w
变量的引用。socket_select
需要引用作为参数才能工作。
发布于 2017-08-05 12:07:21
正如文档那里中所说的那样,它应该是:
$w = null;
$e = null;
$t = 0;
$ready = socket_select($read, $w, $e, $t)
https://stackoverflow.com/questions/45525913
复制