diff options
author | Antony Dovgal <tony2001@php.net> | 2007-06-07 12:17:35 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-06-07 12:17:35 +0000 |
commit | b1a0a4d3e4e2835423cfe313c7d70da29b6d5cd1 (patch) | |
tree | 268f048a2dac8987ccc6ddbe200d06f704a36872 | |
parent | 074b58b7f1ed52850c96f603e318e6496b82442e (diff) | |
download | php-git-b1a0a4d3e4e2835423cfe313c7d70da29b6d5cd1.tar.gz |
MFH: reset active_result_id when fetching persistent connection
patch by Peter Christensen
-rw-r--r-- | ext/mysql/php_mysql.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 029697c51c..172249665d 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -738,6 +738,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) #endif mysql = (php_mysql_conn *) le->ptr; + mysql->active_result_id = 0; } ZEND_REGISTER_RESOURCE(return_value, mysql, le_plink); } else { /* non persistent */ |