ID:               37963
 User updated by:  ed at supergeek dot com
 Reported By:      ed at supergeek dot com
 Status:           Open
 Bug Type:         *Database Functions
 Operating System: Debian GNU/Linux 3.1 (sarge)
 PHP Version:      5.1.4
 New Comment:

Note also that this same exact script continues to run without problems
under PHP 4.1.2 on a Debian 3.0 (potato) box. This box has DB2 V7.1
installed.


Previous Comments:
------------------------------------------------------------------------

[2006-06-29 18:44:34] ed at supergeek dot com

Description:
------------
PHP 5.1.4 compiled with --with-ibm-db2. IBM DB2 Version 8.2 FixPak 4
(equivalent to Version 8.1 FixPak 11) is installed on machine running
Debian GNU/Linux 3.1 (sarge). The IBM DB2 Connect client piece is used
to communicate over TCP/IP to a DB2 database running on an AS400
iSeries machine.

When odbc_result() is called after simple SELECT statement, the script
fails after trying to allocate 544498534 bytes (memory_limit = 500MB).
Script seg faults at same location if memory_limit is increased to
600MB. When the same SELECT statement is run using the IBM 'db2'
utility on the same client machine, itproduces about 350 records
containing a total of less that 350KB of information.

The same PHP code that produces this error previously worked under PHP
4.3.4 running on the same machine, but *stopped* working with the same
type of error immediately after the iSeries DB2 host machine was
upgraded to V5R4. It was this error that prompted the upgrade to PHP5
in the hopes the problem would be solved. No luck!


Reproduce code:
---------------
Source code unlikely to be useful do to unique nature of our database
environment, but can be provided if desired.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37963&edit=1

Reply via email to