OSDN Git Service

Supplementation for global variables in "sql_set_charset_jp" function.
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 23 Mar 2011 08:35:57 +0000 (08:35 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 23 Mar 2011 08:35:57 +0000 (08:35 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1185 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/sql/pdo.php

index 178f856..58caa1c 100755 (executable)
@@ -608,6 +608,7 @@ if (!function_exists('sql_fetch_assoc'))
         * NOTE:        iso-8859-x,windows-125x if _CHARSET is unset.
         */
        function sql_set_charset_jp($charset) {
+               global $MYSQL_HANDLER,$SQL_DBH;
                if (strpos($MYSQL_HANDLER[1], 'mysql') === 0) {
                        switch(strtolower($charset)){\r
                                case 'utf-8':\r