Bug #18433 Updated: Integer values are broken when retrieved through a ODBC connection

From: Date: Fri, 19 Jul 2002 10:09:58 +0000
Subject: Bug #18433 Updated: Integer values are broken when retrieved through a ODBC connection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14622@lists.php.net to get a copy of this message
ID: 18433 Updated by: derick@php.net Reported By: Daniel Gollub <dgollub@lis-ag.de> -Status: Open +Status: Bogus Bug Type: ODBC related Operating System: Windows 2000 Server PHP Version: 4.1.2 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2002-07-19 06:09:12] Daniel Gollub <dgollub@lis-ag.de> What I missed: we are using ODBC because we can't connect to the server directly. Just in case you are curios. ------------------------------------------------------------------------ [2002-07-19 06:09:00] derick@php.net Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. ------------------------------------------------------------------------ [2002-07-19 06:07:35] Daniel Gollub <dgollub@lis-ag.de> Hello, sorry, if this bug is already somewhere in the list, but I didn't found it than... briefly my config: PHP-Version: 4.1.2 (installed as CGI) Webserver: IIS 5 on a Win2k Server, SP2 installed ODBC-Driver Version for MS-SQL Server: 3.70.09.61 And here is the BUG: When I try to get timestamp values from a MSSQL 2000 server over ODBC via PHP, then I get these results (using var_dump()): ["session_start"]=> string(17) "1.027.070.2tø" ["session_time"]=> string(17) "1.027.071.2tø" session_start and session_time are int(4) fields within the database! The QueryAnalyser from MS returns the correct value "972086460" or something similar. Same for the user_id (int(4) in the DB): ["user_id"]=> string(5) "1,00" So, I wonder if this a pure ODBC bug or a PHP(-ODBC) bug or what is it? Any ideas? I'm just trying to get the good old phpBB forum to work in our local intranet. PS: I know my English suxx... Shit happens. ;-) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18433&edit=1

« previous php.bugs (#14622) next »