1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00

Fix breakage if ext/openssl missing in windows

This commit is contained in:
Daniel Lowrey 2014-11-11 11:08:46 -05:00
parent 50cbd41b83
commit 2a84f46853

View File

@ -306,7 +306,9 @@ class UvReactor implements SignalReactor {
} }
private function chooseWindowsPollingFunction($stream) { private function chooseWindowsPollingFunction($stream) {
return (stream_get_meta_data($stream)['stream_type'] === 'tcp_socket/ssl') $streamType = stream_get_meta_data($stream)['stream_type'];
return ($streamType === 'tcp_socket/ssl' || $streamType === 'tcp_socket')
? 'uv_poll_init_socket' ? 'uv_poll_init_socket'
: 'uv_poll_init'; : 'uv_poll_init';
} }