juhyunkwon / php-handlersocket

Automatically exported from code.google.com/p/php-handlersocket
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

HandlerSocket supports UNIX socket, but php-handlersocket doesn't #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
HandlerSocket supports naming a UNIX socket as a port in its configuration 
(although it's not documented), which will create a socket instead of a port 
(useful for security if HandlerSocket exists on the same server as it's being 
read/written from). However, because the php-handlersocket extension casts the 
port parameter in the __construct() to an int, php-handlersocket does not allow 
a socket string to be passed as the port parameter (which is currently the only 
way to specify a socket instead of a port).

I've attached a diff file that successfully compiles and allows a string to be 
passed as the port as well as an int.

Original issue reported on code.google.com by mattwar...@gmail.com on 30 Mar 2011 at 9:30

Attachments:

GoogleCodeExporter commented 9 years ago
Updated version 0.0.8.

Original comment by avue...@gmail.com on 1 Apr 2011 at 8:25