PHP socket listening server --------------------------- Key: THRIFT-778 URL: https://issues.apache.org/jira/browse/THRIFT-778 Project: Thrift Issue Type: New Feature Components: Library (PHP) Reporter: Jan Dolecek Priority: Minor
I just downloaded Thrift and I need to create servers in PHP, which will listen on unix or tcp sockets. So I've implemented it and attaching the patch. I hope it could be helpful and/or useful for someone else too. Here is example: $socket = new TServerSocket("unix://$unixPath", -1); $socket->listen(); while(true) $socket->select($processor); Link: http://helemik.cz/juzna/opensource/php/thrift/php-server.patch Samples: http://helemik.cz/juzna/opensource/php/thrift/server-sample.zip -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.