+#!/usr/bin/env php
<?php
// $Id$
error_reporting(0);
function failure() {
- fprintf(STDERR, "FAILURE: %s\n", error_get_last());
+ // this is why error_get_last() should return a stdClass object
+ $error = error_get_last();
+ fprintf(STDERR, "FAILURE: %s\n", $error["message"]);
exit(-1);
}
'PRIVATE', 'LASTSOCKET', 'FTP_ENTRY_PATH'
);
$translate = array(
- 'HTTP_CONNECTCODE' => "connect_code"
+ 'HTTP_CONNECTCODE' => "connect_code",
+ 'COOKIELIST' => 'cookies',
);
$templates = array(
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");
}