vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Charset and MySQLi (https://vborg.vbsupport.ru/showthread.php?t=182891)

Talaturen 06-18-2008 08:35 PM

Charset and MySQLi
 
Hello.

I wonder if anyone has tried the MySQLi code, I doubt anyone has got it to work without modifications because it looks completely wrong. I guess the author of this modification only replaced 'mysql' with 'mysqli' when adding mysqli support and if you try the code you'll end up with a bunch of errors. It would be cool if this could be fixed, shouldn't be too hard. I could probably fix it myself but then I'll have to re-patch my fixes every update which I don't think I will have the time to.

The other issue I'm having is charset related, I'm using charset latin1 and this arcade modificaiton is ignoring that which is messing up some usernames and perhaps comments too (not checked but I guess it's using same database methods..). Now that I'm using MySQL because I don't have the time to fix all the errors in the MySQLi file I fixed this by adding: mysql_set_charset("latin1"); in the connection part. Of course that line may cause trouble for others but some method like the vBulletin core could be used:
PHP Code:

        if (!empty($charset))
        {
                if (
function_exists('mysql_set_charset'))
                        
mysql_set_charset($charset);
                else
                        
$this->query("SET NAMES $charset");
        } 

Thanks,
Talaturen.

Talaturen 06-24-2008 12:46 PM

-- bump --

MrZeropage 06-30-2008 03:44 PM

as stated in the release-history, mysqli-implementation is very basic and still unstable/buggy

As I don't have/use mySQLi it is somehow hard to develop ;)

so if you do all adaptions to the dbclass_mysqli I would integrate it of course

Talaturen 07-01-2008 02:22 PM

I've been quite busy lately but I'll see if I can get some free time to rewrite the MySQLi database class. What about the charset issue, has it been fixed for the next release?

MrZeropage 07-01-2008 05:41 PM

no, nothing done about charset.

I would be thankful for your fixes :)


All times are GMT. The time now is 01:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01514 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete