#29352 [NEW]: returned number values shipped with trailing character
| From: | p dot novicky at sh dot cvut dot cz | Date: | Fri, 23 Jul 2004 15:28:16 +0000 |
| Subject: | #29352 [NEW]: returned number values shipped with trailing character | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-63427@lists.php.net to get a copy of this message | ||
From: p dot novicky at sh dot cvut dot cz
Operating system: Redhat 9.0 Linux
PHP version: 4.3.8
PHP Bug Type: Sybase (dblib) related
Bug description: returned number values shipped with trailing character
Description:
------------
Hi,
I tried to use the newest version of PHP (4.3.8) and Sybase module using
FreeTDS v. 0.62-4 and Apache 1.3.31. I compiled the module statically into
PHP like this:
./configure --prefix=/opt/php-4.3.8 --with-apache=../apache_1.3.28 \
--with-curl --with-zlib --with-sybase=/opt/freetds \
--enable-trans-sid --with-iconv --with-recode --with-xml
And my web application stops working and i have to use older version of
PHP (4.3.3), where everything work just fine.
When i submit SELECT query to database and then retrieve the data using
sybase_fetch_array(), number values from database is shipped with weird
trailing character.
f.e.: echo $row["number"], which should give just '1' gives
'1<character>'.
So that's the problem, i wonder if it's the problem of PHP or FreeTDS or
why it happens.
Best regards,
Petr Novicky
--
Edit bug report at http://bugs.php.net/?id=29352&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29352&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29352&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29352&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29352&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29352&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29352&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29352&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29352&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29352&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29352&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29352&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29352&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29352&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29352&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29352&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29352&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29352&r=float