cvs: pearweb /include pear-database.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Wed, 12 Apr 2006 04:09:15 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4708@lists.php.net to get a copy of this message | ||
dufuz Wed Apr 12 04:09:15 2006 UTC
Modified files:
/pearweb/include pear-database.php
Log:
md5_file is in PHP 4.2+ and since our min requirement for pearweb is PHP 4.2 then there is no
point in keeping the function
http://cvs.php.net/viewcvs.cgi/pearweb/include/pear-database.php?r1=1.303&r2=1.304&diff_format=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.303 pearweb/include/pear-database.php:1.304
--- pearweb/include/pear-database.php:1.303 Fri Feb 24 12:07:50 2006
+++ pearweb/include/pear-database.php Wed Apr 12 04:09:15 2006
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.303 2006/02/24 12:07:50 pajoye Exp $
+ $Id: pear-database.php,v 1.304 2006/04/12 04:09:15 dufuz Exp $
*/
require_once 'DB/storage.php';
@@ -3071,16 +3071,6 @@
// }}}
-if (!function_exists("md5_file")) {
- function md5_file($filename) {
- $fp = @fopen($filename, "r");
- if (is_resource($fp)) {
- return md5(fread($fp, filesize($filename)));
- }
- return null;
- }
-}
-
/**
* Converts a Unix timestamp to a date() formatted string in the UTC time zone
*