hholzgra                Tue Dec 25 18:55:40 2007 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/mysqli mysqli_api.c 
  Log:
  MFH: Fix for bug #42548 "PROCEDURE xxx can't return a result set"
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqli_api.c?r1=1.118.2.22.2.16.2.8&r2=1.118.2.22.2.16.2.9&diff_format=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.118.2.22.2.16.2.8 
php-src/ext/mysqli/mysqli_api.c:1.118.2.22.2.16.2.9
--- php-src/ext/mysqli/mysqli_api.c:1.118.2.22.2.16.2.8 Fri Nov  9 10:56:28 2007
+++ php-src/ext/mysqli/mysqli_api.c     Tue Dec 25 18:55:40 2007
@@ -17,7 +17,7 @@
   |          Ulf Wendel <[EMAIL PROTECTED]>                                    
 |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli_api.c,v 1.118.2.22.2.16.2.8 2007/11/09 10:56:28 andrey Exp $ 
+  $Id: mysqli_api.c,v 1.118.2.22.2.16.2.9 2007/12/25 18:55:40 hholzgra Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -1621,6 +1621,8 @@
 
        MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL *, &mysql_link, "mysqli_link", 
MYSQLI_STATUS_INITIALIZED);
 
+       /* set some required options */
+       flags |= CLIENT_MULTI_RESULTS; /* needed for mysql_multi_query() */
        /* remove some insecure options */
        flags &= ~CLIENT_MULTI_STATEMENTS;   /* don't allow multi_queries via 
connect parameter */
        if (PG(open_basedir) && PG(open_basedir)[0] != '\0') {

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

Reply via email to