EllisLab/CodeIgniter — Issue #644: db_set_charset() issue
Author: monczao
Created: 2011-11-03 00:40:06+00:00
State: open

I came upon an error when I was trying to use the database library and using a die('here is a bug'); method found out that it was because db_set_charset() method in mysql_driver();

when i removed @ from mysql_set_charset i got this error:

Fatal error: Call to undefined function mysql_set_charset() in C:\usr\apache\htdocs\teampittsburgh\system\database\drivers\mysql\mysql_driver.php on line 148

My system:
PHP version 5.2.5 (x64)
MySQL version 5.0.19

In theory it should work in practice I spent a lot of time to find the cause:(