ID: 32486
Updated by: sniper@php.net
Reported By: tho at e-dict dot net
-Status: Open
+Status: Feedback
Bug Type: Adabas-D related
Operating System: Linux
PHP Version: 4.3.9
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-03-29 16:58:34] tho at e-dict dot net
Description:
------------
Sometimes after odbc_fetch_into($query, $row) $row contains parts of
data from the previous fetched row. For now I'm not able to reproduce
this behavior reliably, it just happens once in a while.
What happens is that if the data of the previous row is longer than in
the current, the result contains '$currentdata\0$somepreviousdata',
e.g.
previous row: "tho@somedomain.net"
current row: "tho@e-dict.net"
results in
"tho@e-dict.net\0net"
IOW the field is as long as the data in the previous row, contains a \0
terminator after the field content and then the rest of the previous
field.
This also happens if a unset($row) is done before calling
odbc_fetch_into()
Reproduce code:
---------------
N/A
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32486&edit=1