Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30442 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71191 invoked by uid 1010); 4 Jul 2007 13:19:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71176 invoked from network); 4 Jul 2007 13:19:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2007 13:19:40 -0000 Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:40789] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/B4-30717-96E9B864 for ; Wed, 04 Jul 2007 09:19:39 -0400 Received: (qmail 23245 invoked from network); 4 Jul 2007 13:19:34 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 4 Jul 2007 13:19:34 -0000 Message-ID: <468B9E64.90109@zend.com> Date: Wed, 04 Jul 2007 17:19:32 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: "Andrey A. Belashkov" CC: php-dev References: <20070630055409.GD59231@web3.hostdad.com> <4688B1F0.4020904@zend.com> <20070702124233.GE59231@web3.hostdad.com> In-Reply-To: <20070702124233.GE59231@web3.hostdad.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php curl extension From: antony@zend.com (Antony Dovgal) On 02.07.2007 16:42, Andrey A. Belashkov wrote: > On 02 Jul 2007 at 12:06:08, Antony Dovgal wrote: >> On 30.06.2007 09:54, Andrey A. Belashkov wrote: >>> Hello! >>> Can you add please CURLOPT_PRIVATE and CURLINFO_PRIVATE text parameters >>> to curl extension for php like CURLOPT_URL ? >> >> In which cURL version were they introduced? > http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html > > (Added in 7.10.8) Where do you see 7.10.8 there? I can see only "(Added in 7.10.3)". >>> Diff file for ext/curl/interface.c: >>> ----------------------------------------------------------------------- >>> --- interface.c Tue May 22 08:39:20 2007 >>> +++ php.5.2.3.interface.c Sun Jun 17 16:08:17 2007 >>> @@ -355,6 +355,11 @@ >>> le_curl_multi_handle = >>> zend_register_list_destructors_ex(_php_curl_multi_close, NULL, "curl", >>> module_number); >>> /* Constants for curl_setopt() */ >>> + >>> + REGISTER_CURL_CONSTANT(CURLOPT_PRIVATE); >>> + REGISTER_CURL_CONSTANT(CURLINFO_PRIVATE); >>> + >>> REGISTER_CURL_CONSTANT(CURLOPT_DNS_USE_GLOBAL_CACHE); >>> REGISTER_CURL_CONSTANT(CURLOPT_DNS_CACHE_TIMEOUT); >>> REGISTER_CURL_CONSTANT(CURLOPT_PORT); >>> @@ -1299,6 +1304,7 @@ >>> } >>> error = curl_easy_setopt(ch->cp, option, >>> Z_LVAL_PP(zvalue)); >>> break; >>> + case CURLOPT_PRIVATE: >>> case CURLOPT_URL: >>> case CURLOPT_PROXY: >>> case CURLOPT_USERPWD: >>> @@ -1803,6 +1809,7 @@ >>> option = Z_LVAL_PP(zoption); >>> switch (option) { >>> case CURLINFO_EFFECTIVE_URL: >>> + case CURLINFO_PRIVATE: >>> case CURLINFO_CONTENT_TYPE: { >>> char *s_code = NULL; >>> ----------------------------------------------------------------------- >>> Thanks. >>> -------------------------------------------------------------- >>> _ >>> . . Best Regards, Andrey A. Belashkov, >>> / v \ UNIX system & network Administrator. AAB56-RIPE ICQ: 8229031 >>> /( )\ My resume you can see on http://virus.org.ua/resume/ >>> ^^ ^^ >> >> >> -- >> Wbr, Antony Dovgal >> > -------------------------------------------------------------- > _ > . . Best Regards, Andrey A. Belashkov, > / v \ UNIX system & network Administrator. AAB56-RIPE ICQ: 8229031 > /( )\ My resume you can see on http://virus.org.ua/resume/ > ^^ ^^ > > -- Wbr, Antony Dovgal