]> granicus.if.org Git - php/commitdiff
Fix bug#50416
authorAndrey Hristov <andrey@php.net>
Mon, 8 Feb 2010 13:09:34 +0000 (13:09 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 8 Feb 2010 13:09:34 +0000 (13:09 +0000)
PROCEDURE db.myproc can't return a result set in the given context

ext/mysql/php_mysql.c

index fe49949b4e26c2db6ae8571be484e0ab33292402..dfa5aa5a3ba6fd79dcde37f26645d5380485350c 100644 (file)
@@ -659,6 +659,9 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                        client_flags ^= CLIENT_LOCAL_FILES;
                }
 
+#ifdef CLIENT_MULTI_RESULTS
+               client_flags |= CLIENT_MULTI_RESULTS; /* compatibility with 5.2, see bug#50416 */
+#endif
 #ifdef CLIENT_MULTI_STATEMENTS
                client_flags &= ~CLIENT_MULTI_STATEMENTS;   /* don't allow multi_queries via connect parameter */
 #endif