PDA

View Full Version : Socket_ library


Mimir
10-23-2010, 06:19 AM
I know the following bug addresses this issue but I was wondering if there was a implementation of socket_accept and socket_listen or a work around that can be used.
http://bugs.caucho.com/view.php?id=728

The following is the php code section that is causing the error due to socket_listen and socket_accept being unknown functions. If there is another method that can be used please let me know.

if (socket_listen($http_socket)) {
echo "listen\r\n";
while (true) {
$http_client = socket_accept($http_socket);
echo "accept\r\n";