cvs: pecl /http/scripts gen_curlinfo.php
| From: | Michael Wallner | Date: | Fri, 29 Sep 2006 09:06:32 +0000 |
| Subject: | cvs: pecl /http/scripts gen_curlinfo.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6428@lists.php.net to get a copy of this message | ||
mike Fri Sep 29 09:06:32 2006 UTC
Modified files:
/pecl/http/scripts gen_curlinfo.php
Log:
- cookielist -> cookies
http://cvs.php.net/viewvc.cgi/pecl/http/scripts/gen_curlinfo.php?r1=1.2&r2=1.3&diff_format=u
Index: pecl/http/scripts/gen_curlinfo.php
diff -u pecl/http/scripts/gen_curlinfo.php:1.2 pecl/http/scripts/gen_curlinfo.php:1.3
--- pecl/http/scripts/gen_curlinfo.php:1.2 Mon Sep 25 08:36:15 2006
+++ pecl/http/scripts/gen_curlinfo.php Fri Sep 29 09:06:32 2006
@@ -1,5 +1,5 @@
<?php
-// $Id: gen_curlinfo.php,v 1.2 2006/09/25 08:36:15 mike Exp $
+// $Id: gen_curlinfo.php,v 1.3 2006/09/29 09:06:32 mike Exp $
error_reporting(0);
@@ -35,7 +35,8 @@
'PRIVATE', 'LASTSOCKET', 'FTP_ENTRY_PATH'
);
$translate = array(
- 'HTTP_CONNECTCODE' => "connect_code"
+ 'HTTP_CONNECTCODE' => "connect_code",
+ 'COOKIELIST' => 'cookies',
);
$templates = array(
@@ -74,8 +75,7 @@
list(, $full, $short, $type) = $info;
if (in_array($short, $exclude)) continue;
if (isset($ifdefs[$short])) printf("#if HTTP_CURL_VERSION(%s)\n", $ifdefs[$short]);
- if (isset($translate[$short])) $short = $translate[$short];
- printf($templates[$type], $full, strtolower($short));
+ printf($templates[$type], $full, strtolower((isset($translate[$short])) ? $translate[$short] :
$short));
if (isset($ifdefs[$short])) printf("#endif\n");
}