ID: 19374 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Sybase (dblib) related Operating System: Linux PHP Version: 4CVS-2002-09-12 New Comment:
Yes it can be done via ENV variables, setlocale() is a PHP function which allows you to set locate related enviroment variables. Previous Comments: ------------------------------------------------------------------------ [2002-10-01 02:49:31] [EMAIL PROTECTED] Can it be done via env. variables? I'm on a production system, and I'm wary of hand-patching. ------------------------------------------------------------------------ [2002-09-30 19:34:19] [EMAIL PROTECTED] If you change the locale to english via setlocale(LC_NUMERIC, 'POSIX'); does it fix the problem? ------------------------------------------------------------------------ [2002-09-12 07:24:30] [EMAIL PROTECTED] If a table on a MS SQL Server (verified on version 7.0) contains a float field, that float is always returned as 0. This problem has been verified using any version of the freetds library from 0.53 to today's snapshot, and PHP 4.1.1, 4.2.2 and today's snapshot. The problem is NOT in the freetds library, performing the queries from tsql or sqsh returns the correct values. The problem does _NOT_ show when using the ct-library. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19374&edit=1