Bug #10192 Updated: sybase_query with sybase_fetch_row displays real data type incorrectly
| From: | sniper@php.net | Date: | Tue, 12 Jun 2001 21:42:44 +0000 |
| Subject: | Bug #10192 Updated: sybase_query with sybase_fetch_row displays real data type incorrectly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57204@lists.php.net to get a copy of this message | ||
ID: 10192
Updated by: sniper
Reported By: dave.berndt@frco.com
Old-Status: Open
Status: Feedback
Bug Type: Sybase (dblib) related
Operating system:
PHP Version: 4.0.3pl1
Assigned To:
Comments:
Does this happen with PHP 4.0.5 ?
Previous Comments:
---------------------------------------------------------------------------
[2001-04-05 16:06:31] dave.berndt@frco.com
Queries that produce incorrect data is random, but will consistently happen within a particular
query. In one case, the last value of a fetched row (a real), in the last row was "1" in
the database, but the returned array always displayed "0". In another case, a value (a
real) in the middle of the returned array in the database was supposed to be "65000" but
the fetched array contained "0". In both cases I copied the query from the code EXACTLY
and ran it in isql and those results were correct. So the errors are occuring somewhere in php
land. This error seems serious since no errors/messages are produced, but the data displayed is
incorrect. Sybase's real data type is machine-dependent, and my database is on a Solaris
system. But if isql on my linux php machine fetches data correctly, I would expect php to be able
to do the same.
Complied with:
--with-apxs=/usr/sbin/apxs
--with-sybase=/opt/sybase
--without-mysql
--with-layout=RedHat
--enable-shared=max
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10192&edit=2