cvs: pear(MDB_1) /MDB/MDB Common.php
| From: | Lukas Smith | Date: | Thu, 22 Jan 2004 12:40:38 +0000 |
| Subject: | cvs: pear(MDB_1) /MDB/MDB Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-15872@lists.php.net to get a copy of this message | ||
lsmith Thu Jan 22 07:40:38 2004 EDT
Modified files: (Branch: MDB_1)
/pear/MDB/MDB Common.php
Log:
array_change_key_case hack removed since php 4.2 will be required from now on
http://cvs.php.net/diff.php/pear/MDB/MDB/Common.php?r1=1.114.4.11&r2=1.114.4.12&ty=u
Index: pear/MDB/MDB/Common.php
diff -u pear/MDB/MDB/Common.php:1.114.4.11 pear/MDB/MDB/Common.php:1.114.4.12
--- pear/MDB/MDB/Common.php:1.114.4.11 Thu Jan 8 08:43:02 2004
+++ pear/MDB/MDB/Common.php Thu Jan 22 07:40:38 2004
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.114.4.11 2004/01/08 13:43:02 lsmith Exp $
+// $Id: Common.php,v 1.114.4.12 2004/01/22 12:40:38 lsmith Exp $
/**
* @package MDB
@@ -4502,20 +4502,4 @@
}
}
};
-
-// Used by many drivers
-if (!function_exists('array_change_key_case')) {
- define('CASE_UPPER', 1);
- define('CASE_LOWER', 0);
- function &array_change_key_case(&$array, $case)
- {
- $casefunc = ($case == CASE_LOWER) ? 'strtolower' : 'strtoupper';
- $ret = array();
- foreach ($array as $key => $value) {
- $ret[$casefunc($key)] = $value;
- }
- return($ret);
- }
-}
-
?>