cvs: php4 /pear/DB odbc.php
| From: | Thomas V.V.Cox | Date: | Sat, 10 Nov 2001 13:36:12 +0000 |
| Subject: | cvs: php4 /pear/DB odbc.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1287@lists.php.net to get a copy of this message | ||
cox Sat Nov 10 08:36:12 2001 EDT
Modified files:
/php4/pear/DB odbc.php
Log:
proper initialization of the $row array in fetchInto
(suggested by yavo <yavo@itenasolutions.com>)
Index: php4/pear/DB/odbc.php
diff -u php4/pear/DB/odbc.php:1.46 php4/pear/DB/odbc.php:1.47
--- php4/pear/DB/odbc.php:1.46 Tue Nov 6 09:42:10 2001
+++ php4/pear/DB/odbc.php Sat Nov 10 08:36:12 2001
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: odbc.php,v 1.46 2001/11/06 14:42:10 chagenbu Exp $
+// $Id: odbc.php,v 1.47 2001/11/10 13:36:12 cox Exp $
//
// Database independent query interface definition for PHP's ODBC
// extension.
@@ -210,6 +210,7 @@
function fetchInto($result, &$row, $fetchmode, $rownum=null)
{
+ $row = array();
if ($rownum !== null) {
if (!function_exists('version_compare') || version_compare(phpversion(),
"4.0.5", "lt")) {
$cols = odbc_fetch_into($result, $rownum, &$row);