Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30374 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68731 invoked by uid 1010); 30 Jun 2007 05:52:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68699 invoked from network); 30 Jun 2007 05:52:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2007 05:52:52 -0000 Authentication-Results: pb1.pair.com header.from=virus@virus.org.ua; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=virus@virus.org.ua; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain virus.org.ua from 72.232.62.138 cause and error) X-PHP-List-Original-Sender: virus@virus.org.ua X-Host-Fingerprint: 72.232.62.138 web3.hostdad.com Received: from [72.232.62.138] ([72.232.62.138:59752] helo=web3.hostdad.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/B1-29485-3BFE5864 for ; Sat, 30 Jun 2007 01:52:51 -0400 Received: from web3.hostdad.com (localhost [127.0.0.1]) by web3.hostdad.com (8.14.1/8.13.6) with ESMTP id l5U5s9Nk050299 for ; Sat, 30 Jun 2007 05:54:09 GMT (envelope-from virus@virus.org.ua) Received: (from virus@localhost) by web3.hostdad.com (8.14.1/8.13.6/Submit) id l5U5s9Ta050298 for internals@lists.php.net; Sat, 30 Jun 2007 08:54:09 +0300 (EEST) (envelope-from virus@virus.org.ua) X-Authentication-Warning: web3.hostdad.com: virus set sender to virus@virus.org.ua using -f Date: Sat, 30 Jun 2007 08:54:09 +0300 To: internals@lists.php.net Message-ID: <20070630055409.GD59231@web3.hostdad.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: BCL 3.2b for MS-DOS 6.22 Subject: php curl extension From: virus@virus.org.ua ("Andrey A. Belashkov") Hello! Can you add please CURLOPT_PRIVATE and CURLINFO_PRIVATE text parameters to curl extension for php like CURLOPT_URL ? 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/ ^^ ^^