Re: cvs: php-src /ext/mysqli mysqli_nonapi.c

From: Date: Wed, 22 Mar 2006 17:10:59 +0000
Subject: Re: cvs: php-src /ext/mysqli mysqli_nonapi.c
References: 1 2  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-37419@lists.php.net to get a copy of this message
I tried a few other functions like get_warnings() and they don't seem to mind a missing connection. So, I am not certain a generic solution is required here. ilia Georg Richter wrote:
Am Di, den 21.03.2006 schrieb Ilia Alshanetsky um 16:35: Hello Ilia,
- if (mysql_set_character_set(mysql->mysql, cs_name)) { + if (!mysql->mysql->thread_id || mysql_set_character_set(mysql->mysql, cs_name)) {
This fixes the problem only for this function - not in general. I'm already working on a better fix. I will reopen the bug. Please note, that checking thread_id will not work for embedded server. /Georg


« previous php.cvs (#37419) next »