php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29352 returned number values shipped with trailing character
Submitted: 2004-07-23 17:28 UTC Modified: 2004-12-21 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: p dot novicky at sh dot cvut dot cz Assigned:
Status: No Feedback Package: Sybase (dblib) related
PHP Version: 4.3.8 OS: Redhat 9.0 Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-07-23 17:28 UTC] p dot novicky at sh dot cvut dot cz
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jul 05 01:01:27 2020 UTC