ID: 35730
Updated by: fmk@php.net
Reported By: liang at saga-city dot com
-Status: Open
+Status: Feedback
Bug Type: MSSQL related
Operating System: FreeBSD
PHP Version: 5.1.1
Assigned To: fmk
New Comment:
Please try to upgrade to the latest CVS version of FreeTDS.
As I mentioned before all the encoding stuff is handled by FreeTDS.
There is no encoding handling in the code for the PHP extension and the
code differences between version 4, 5.0, 5.1 and 6.0 of PHP are only
related to internal PHP stuff and has nothing to do with how the
library is used.
Previous Comments:
------------------------------------------------------------------------
[2005-12-20 01:37:48] liang at saga-city dot com
We have some production machines with PHP5.0.3/FreeBSD5.4/FreeTDS0.62.4
installed, All works great.
Now we are setting a clean and new FreeBSD 6.0 system box
with only freetds-0.63 mysql5.0-client and apache22 installed. It's
obvious testing PHP4/PHP5 installation link to the same freetds
library.
------------------------------------------------------------------------
[2005-12-19 18:12:27] sniper@php.net
Are you absolutely sure you're linking PHP with the same freetds
library as you did with PHP 4?
------------------------------------------------------------------------
[2005-12-19 05:48:08] liang at saga-city dot com
we have been testing the mssql extension
both in PHP4 and PHP5.1.1, " with the same freetds.conf "
tds version = 8.0
client charset = BIG-5
In php4, it works fine, but not in php5.1.1
( our old system uses php5.0.3 also work fine in the "same"
freetds.conf )
------------------------------------------------------------------------
[2005-12-19 03:27:06] fmk@php.net
All encoding is handled by freetds in both PHP4 and PHP5. Execpt for
internal PHP stuff the mssql extension is the same for PHP4 and PHP5.
You need to change the encoding in freetds.conf.
------------------------------------------------------------------------
[2005-12-19 02:29:00] liang at saga-city dot com
Description:
------------
php5 mssql didn't use character encoding specify in freetds.conf (
alwasy use ISO-8559-1 , seen in freetds.log )
switch to php4 , everythings works fine
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35730&edit=1