From: lim at liones dot nl
Operating system: Win2000
PHP version: 4.3.2
PHP Bug Type: MSSQL related
Bug description: With Fastcgi, mssql_fetch_array and mssql_fetch_row return wrong
character 152
Description:
------------
In combination with fastcgi mssql_fetch_array and mssql_fetch_row gives
all characters � ( chr(255) ) as ~ ( chr(152). This happens only when
fastcgi is turned on.
These characters are stored in a MS SQL Server 2000 database in a varchar
field.
Reproduce code:
---------------
First store a � character in a varchar field in MS SQL Server 2000
mssql_connect( 'sqlserver,'username', 'password');
$result = mssql_query( "SELECT TOP 1 * FROM yourtable" );
print_r( mssql_fetch_array( $result ) );
Expected result:
----------------
correct result:
[0] => �
Actual result:
--------------
returned result:
[0] => ~
--
Edit bug report at http://bugs.php.net/?id=24225&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24225&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24225&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24225&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24225&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24225&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24225&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24225&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24225&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24225&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24225&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24225&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24225&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24225&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24225&r=gnused