cvs: pecl4win /lib/classes DLLs.php
| From: | Edin Kadribasic | Date: | Wed, 04 Oct 2006 08:54:24 +0000 |
| Subject: | cvs: pecl4win /lib/classes DLLs.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6456@lists.php.net to get a copy of this message | ||
edink Wed Oct 4 08:54:24 2006 UTC
Modified files:
/pecl4win/lib/classes DLLs.php
Log:
List only latest dll on http://pecl4win.php.net/list_dlls.php
http://cvs.php.net/viewvc.cgi/pecl4win/lib/classes/DLLs.php?r1=1.1&r2=1.2&diff_format=u
Index: pecl4win/lib/classes/DLLs.php
diff -u pecl4win/lib/classes/DLLs.php:1.1 pecl4win/lib/classes/DLLs.php:1.2
--- pecl4win/lib/classes/DLLs.php:1.1 Tue Sep 27 17:26:16 2005
+++ pecl4win/lib/classes/DLLs.php Wed Oct 4 08:54:24 2006
@@ -1,5 +1,5 @@
<?php
-/* $Id: DLLs.php,v 1.1 2005/09/27 17:26:16 ek Exp $ */
+/* $Id: DLLs.php,v 1.2 2006/10/04 08:54:24 edink Exp $ */
class DLLs
{
@@ -8,7 +8,7 @@
global $DB;
$ret = array();
- $q = "select name, md5hash, updated, filesize, downloads from dlls order by name";
+ $q = "select name, md5hash, updated, filesize, downloads from dlls where row(name, updated)
in (select name, max(updated) as updated from dlls group by name) order by name";
if (!$res = $DB->query($q)) {
return $ret;