You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems this will lead to a little BC break as stream_socket_client() expects the remote socket address instead of just host and port which fsockopen() requires.
So I'll change the interface of hollodotme\FastCGI\Interfaces\ConfiguresSocketConnection from:
Furthermore the remote socket address requires a transport protocol which is tcp:// for network sockets and unix:// for unix domain sockets. To make the first parameters of NetworkSocket and UnixDomainSocket constructors consistent, the transport protocol must be omitted in both cases. That means creating a UnixDomainSocket connection must be constructed like this:
<?phpdeclare(strict_types=1);
# Only the socket path must be passed$connection = newUnixDomainSocket( '/var/run/php/php7.1-fpm.sock' );
…cy to connection parameters, #9
Changed
* Replaced methods `getHost()` and `getPort()` with `getSocketAddress()` in interface `hollodotme\FastCGI\Interfaces\ConfiguresSocketConnection`
* The transport protocol `unix://` must be omitted for the first parameter of `hollodotme\FastCGI\SocketConnections\UnixDomainSocket`
Only the socket path must be passed.
* Relaced `fsockopen()` with `stream_socket_client()` for connecting to php-fpm.
The stream extension has a lot more configuration options.
See further:
http://php.net/manual/en/intro.stream.php
The text was updated successfully, but these errors were encountered: