ID: 20467
Comment by: r dot vanicek at seznam dot cz
Reported By: freddy77 at angelfire dot com
Status: Closed
Bug Type: Sybase (dblib) related
Operating System: Linux
PHP Version: 4.2.3
New Comment:
Hello, please note that the same bug is present in sybase_ct module in
PHP and it is still not fixed in 4.3.2 (while sybase_db module is fixed
in 4.3.2).
Roman
Previous Comments:
------------------------------------------------------------------------
[2002-12-11 08:35:57] sesser@php.net
No. The typo was already fixed.
------------------------------------------------------------------------
[2002-12-11 05:03:21] freddy77 at angelfire dot com
Perhaps is better to reopen
------------------------------------------------------------------------
[2002-12-10 14:04:46] freddy77 at angelfire dot com
dbconvert is called passing res_length as source length. This can cause
problems...
Row
dbconvert(NULL,coltype(offset),dbdata(sybase_ptr->link,offset),
res_length,SYBCHAR,res_buf,res_length);
should be replaced with
dbconvert(NULL,coltype(offset),dbdata(sybase_ptr->link,offset),
src_length,SYBCHAR,res_buf,res_length);
freddy77
------------------------------------------------------------------------
[2002-12-10 09:44:50] sesser@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2002-12-09 04:11:36] freddy77 at angelfire dot com
You have also to decide what result you want for binary data.
If you use dbconvert for this type your results will be a hexadecimal
string. If you want binary data instead you should manually copy data
(use just memcpy) or do a conversion to binary, not to characters.
freddy77
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20467
--
Edit this bug report at http://bugs.php.net/?id=20467&edit=1