您好,我正在尝试在客户端和服务器之间实现 websocket 通信。问题是当我尝试启动服务器时,我在命令行中收到此错误
# php -q htdocs\socket\server\startDaemon.php
2012-07-23 10:10:02 System: Socket Resource id #7 cre
2012-07-23 10:10:02 System: Socket bound to localhost
2012-07-23 10:10:02 System: Start listening on Socket
Strict Standards: Only variables should be passed by reference in
C:\xampp\htdocs\socket\server\socketWebSocket.class.php on line 35
第 35 行的代码如上:
$num_sockets = socket_select($changed_sockets,$write=NULL,$exceptions=NULL,NULL);
我已经寻找答案,但没有任何效果。有谁能够帮助我?谢谢