Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Request #12213 usage of mysqli_options "MYSQLI_SET_CHARSET_NAME"
Submitted: 2007-10-09 19:53 UTC Modified: 2007-10-15 17:38 UTC
From: cwiedmann Assigned: cwiedmann
Status: Closed Package: MDB2_Driver_mysqli (version 1.4.1)
PHP Version: 5_2 CVS-2007-10-09 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2007-10-09 19:53 UTC] cwiedmann (Carsten Wiedmann)
Description: ------------ Hello, since the latest PHP 5.2 snapshot, you can use mysqli_options "MYSQLI_SET_CHARSET_NAME" instead of a query with "SET NAME". [1] IMHO a good idea to make this also available to MDB2. With mysqli_options "MYSQLI_SET_CHARSET_NAME" you can also use e.g. UTF-8 characters in username and password. With "SET NAME" this don't work and you have to use latin1 username and password. Regards, Carsten [1] http://bugs.php.net/42902

Comments

 [2007-10-10 01:36 UTC] cwiedmann (Carsten Wiedmann)
Hello again, after some time, thinking about the code, I'm wondering why you don't use mysqli_set_charset() instead of "SET NAME"? So I've made a new patch which also change this behavior. Regards, Carsten
 [2007-10-15 17:38 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.