diff options
author | Julien Pauli <jpauli@php.net> | 2014-10-01 16:22:07 +0200 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2014-10-01 16:22:07 +0200 |
commit | af88793d6dd28c207264fa0440ba5744d1fdc36f (patch) | |
tree | 60315858afe393e9687be2209f5da142dde4f06a | |
parent | f68da34119af90223c7f7118ff6c73f50e9bcdd4 (diff) | |
download | php-git-af88793d6dd28c207264fa0440ba5744d1fdc36f.tar.gz |
Revert "Merge branch 'PHP-5.4' into PHP-5.5"php-5.5.18RC1
This reverts commit 5ac2e5f850c483394870dadca465c1322a4a51cf, reversing
changes made to 58088c24eb55cfec3bebd1cb78cf1f5d89ac94ec.
Conflicts:
ext/openssl/xp_ssl.c
-rw-r--r-- | ext/openssl/xp_ssl.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index 6c92296010..42e77d59c2 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -203,37 +203,7 @@ static size_t php_openssl_sockop_write(php_stream *stream, const char *buf, size return didwrite; } -static void php_openssl_stream_wait_for_data(php_netstream_data_t *sock TSRMLS_DC) -{ - int retval; - struct timeval *ptimeout; - - if (sock->socket == -1) { - return; - } - - sock->timeout_event = 0; - - if (sock->timeout.tv_sec == -1) - ptimeout = NULL; - else - ptimeout = &sock->timeout; - - while(1) { - retval = php_pollfd_for(sock->socket, PHP_POLLREADABLE, ptimeout); - - if (retval == 0) - sock->timeout_event = 1; - - if (retval >= 0) - break; - - if (php_socket_errno() != EINTR) - break; - } -} - -static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ +static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) { php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream->abstract; int nr_bytes = 0; |