]> granicus.if.org Git - php/commitdiff
Re-ordered the read and write methods to match the order of the original code, to...
authorBrad Broerman <bbroerman@bbroerman.net>
Wed, 31 Dec 2014 18:30:48 +0000 (13:30 -0500)
committerBrad Broerman <bbroerman@bbroerman.net>
Wed, 31 Dec 2014 18:30:48 +0000 (13:30 -0500)
ext/openssl/xp_ssl.c

index 5f4388142daf72c9570ebb7ff4b1be0a7624076e..59500217a58b5c5bede2b40a88e60288310e490e 100644 (file)
@@ -1733,15 +1733,15 @@ static int php_openssl_enable_crypto(php_stream *stream,
        return -1;
 }
 
-static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */
+static size_t php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */
 {
-       return php_openssl_sockop_io( 1, stream, buf, count );
+       return php_openssl_sockop_io( 0, stream, buf, count );
 }
 /* }}} */
 
-static size_t php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */
+static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */
 {
-       return php_openssl_sockop_io( 0, stream, buf, count );
+       return php_openssl_sockop_io( 1, stream, buf, count );
 }
 /* }}} */