cvs: pearweb /include pear-database.php
| From: | Thomas V.V.Cox | Date: | Thu, 31 Jan 2002 23:35:46 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2267@lists.php.net to get a copy of this message | ||
cox Thu Jan 31 18:35:46 2002 EDT
Modified files:
/pearweb/include pear-database.php
Log:
Quick fix to avoid getting corrupted files in donwloads
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.47 pearweb/include/pear-database.php:1.48
--- pearweb/include/pear-database.php:1.47 Thu Jan 31 17:51:54 2002
+++ pearweb/include/pear-database.php Thu Jan 31 18:35:45 2002
@@ -637,6 +637,9 @@
function logDownload($package, $release_id, $file = null)
{
+ return false; // XXX Fixme when table downloads becomes stable.
+ // Now logDownload doesn't work
+
global $dbh;
$id = $dbh->nextId("downloads");
@@ -647,7 +650,7 @@
if (DB::isError($sth)) {
return false;
}
-
+ // XXX Returns: [nativecode=Column count doesn't match value count at row 1]
$err = $dbh->execute($sth, array($id, $file, $package,
$release_id, date("Y-m-d H:i:s"),
$_SERVER['REMOTE_ADDR'],