#32486 [NEW]: odbc_fetch_into returns wrong data
From: tho at e-dict dot net
Operating system: Linux
PHP version: 4.3.9
PHP Bug Type: Adabas-D related
Bug description: odbc_fetch_into returns wrong data
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 bug report at http://bugs.php.net/?id=32486&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32486&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32486&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32486&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32486&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32486&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32486&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32486&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32486&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32486&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32486&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32486&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32486&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32486&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32486&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32486&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32486&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32486&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32486&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32486&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32486&r=mysqlcfg
Thread (12 messages)
- tho at e-dict dot net
- sniper@php.net#32486 [Opn->Fbk]: odbc_fetch_into returns wrong data
- php-bugs at lists dot php dot net#32486 [Fbk->NoF]: odbc_fetch_into returns wrong data
- tho at e-dict dot net#32486 [NoF->Opn]: odbc_fetch_into returns wrong data
- sniper@php.net#32486 [Opn->Fbk]: odbc_fetch_into returns wrong data
- sniper@php.net#32486 [Fbk]: odbc_fetch_into returns wrong data
- tho at e-dict dot net#32486 [NoF->Opn]: odbc_fetch_into returns wrong data
- nick dot telford at gmail dot com#32486 [Com]: odbc_fetch_into returns wrong data
- nick dot telford at gmail dot com#32486 [Com]: odbc_fetch_into returns wrong data
- tho at e-dict dot net#32486 [Opn]: odbc_fetch_into returns wrong data
- tho at e-dict dot net#32486 [Opn]: odbc_fetch_into returns wrong data
- sniper@php.net#32486 [Opn->Fbk]: odbc_fetch_into returns wrong data