cvs: php4 /pear/DB common.php oci8.php
| From: | Thomas V.V.Cox | Date: | Thu, 07 Feb 2002 00:41:44 +0000 |
| Subject: | cvs: php4 /pear/DB common.php oci8.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2318@lists.php.net to get a copy of this message | ||
cox Wed Feb 6 19:41:44 2002 EDT
Modified files:
/php4/pear/DB common.php oci8.php
Log:
Moved the array_change_key_case() PHP func definition to common
Index: php4/pear/DB/common.php
diff -u php4/pear/DB/common.php:1.79 php4/pear/DB/common.php:1.80
--- php4/pear/DB/common.php:1.79 Fri Feb 1 19:27:47 2002
+++ php4/pear/DB/common.php Wed Feb 6 19:41:44 2002
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: common.php,v 1.79 2002/02/02 00:27:47 ssb Exp $
+// $Id: common.php,v 1.80 2002/02/07 00:41:44 cox Exp $
//
// Base class for DB implementations.
//
@@ -1260,4 +1260,16 @@
// }}}
}
+// 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';
+ foreach ($array as $key => $value) {
+ $return[$casefunc($key)] = $value;
+ }
+ return $return;
+ }
+}
?>
Index: php4/pear/DB/oci8.php
diff -u php4/pear/DB/oci8.php:1.45 php4/pear/DB/oci8.php:1.46
--- php4/pear/DB/oci8.php:1.45 Fri Feb 1 19:27:47 2002
+++ php4/pear/DB/oci8.php Wed Feb 6 19:41:44 2002
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: oci8.php,v 1.45 2002/02/02 00:27:47 ssb Exp $
+// $Id: oci8.php,v 1.46 2002/02/07 00:41:44 cox Exp $
//
// Database independent query interface definition for PHP's Oracle 8
// call-interface extension.
@@ -658,19 +658,6 @@
// }}}
}
-
-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';
- foreach ($array as $key => $value) {
- $return[$casefunc($key)] = $value;
- }
- return $return;
- }
-}
-
// Local variables:
// tab-width: 4
// c-basic-offset: 4