georg           Sat Oct 15 03:33:14 2005 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src    NEWS 
    /php-src/ext/mysqli mysqli_api.c 
  Log:
   Fixed an error in mysqli_fetch_fields (returned NULL instead of an
    array when row number > field_count). (Georg)
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.500&r2=1.1760.2.501&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.500 php-src/NEWS:1.1760.2.501
--- php-src/NEWS:1.1760.2.500   Thu Oct 13 11:24:25 2005
+++ php-src/NEWS        Sat Oct 15 03:33:01 2005
@@ -1,6 +1,8 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? ????, PHP 5.0.6
+- Fixed an error in mysqli_fetch_fields (returned NULL instead of an
+  array when row number > field_count). (Georg)
 - Renamed CachingRecursiveIterator to RecursiveCachingIterator. (Marcus)
 - Fixed bug #34856 (configure fails to detect libiconv's type). (Tony)
 - Fixed bug #34855 (ibase_service_attach() segfault on AMD64). 
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_api.c?r1=1.87.2.24&r2=1.87.2.25&ty=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.87.2.24 
php-src/ext/mysqli/mysqli_api.c:1.87.2.25
--- php-src/ext/mysqli/mysqli_api.c:1.87.2.24   Mon Oct 10 08:59:06 2005
+++ php-src/ext/mysqli/mysqli_api.c     Sat Oct 15 03:33:12 2005
@@ -15,7 +15,7 @@
   | Author: Georg Richter <[EMAIL PROTECTED]>                                |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli_api.c,v 1.87.2.24 2005/10/10 12:59:06 tony2001 Exp $ 
+  $Id: mysqli_api.c,v 1.87.2.25 2005/10/15 07:33:12 georg Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -742,10 +742,6 @@
 
        MYSQLI_FETCH_RESOURCE(result, MYSQL_RES *, &mysql_result, 
"mysqli_result"); 
 
-       if (!(field = mysql_fetch_field(result))) {
-               RETURN_FALSE;
-       }
-
        array_init(return_value);
 
        for (i = 0; i < mysql_num_fields(result); i++) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to