]> granicus.if.org Git - php/commitdiff
Fixed bug #52828 (curl_setopt does not accept persistent streams).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 29 Nov 2010 14:40:59 +0000 (14:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 29 Nov 2010 14:40:59 +0000 (14:40 +0000)
ext/curl/interface.c

index 24ff940c7316d9a8e6f704eba81618343393eb21..78c9821b6510f9f38bd9b54240a3468545afaaef 100644 (file)
@@ -1771,7 +1771,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;