From dd92188d760153817887775d56be1fb2bf09e49f Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 29 Nov 2010 14:40:59 +0000 Subject: [PATCH] Fixed bug #52828 (curl_setopt does not accept persistent streams). --- NEWS | 4 ++++ ext/curl/interface.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 1e7e094eb0..c38a1184f6 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,10 @@ (Ilia) . Fixed #53409 (sleep() returns NULL on Windows). (Pierre) +- Curl extension: + . Fixed bug #52828 (curl_setopt does not accept persistent streams). + (Gustavo, Ilia) + - Hash extension: . Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c). (Mike, Ilia) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index ffb3e65e6d..9e89fc34fa 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1761,7 +1761,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu int type; void * what; - what = zend_fetch_resource(zvalue TSRMLS_CC, -1, "File-Handle", &type, 1, php_file_le_stream()); + what = zend_fetch_resource(zvalue TSRMLS_CC, -1, "File-Handle", &type, 1, php_file_le_stream(), php_file_le_pstream()); if (!what) { RETVAL_FALSE; return 1; -- 2.40.0