#32486 [Fbk->NoF]: odbc_fetch_into returns wrong data

From: Date: Tue, 05 Apr 2005 23:00:05 +0000
Subject: #32486 [Fbk->NoF]: odbc_fetch_into returns wrong data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76416@lists.php.net to get a copy of this message
ID: 32486 Updated by: php-bugs@lists.php.net Reported By: tho at e-dict dot net -Status: Feedback +Status: No Feedback Bug Type: Adabas-D related Operating System: Linux PHP Version: 4.3.9 New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [2005-03-29 17:38:24] sniper@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#76416) next »