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: "[EMAIL PROTECTED]"
current row:  "[EMAIL PROTECTED]"
results in
"[EMAIL PROTECTED]"
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

Reply via email to