From:             mike dot simonds at maxim-ic dot com
Operating system: Windows XP & Linux
PHP version:      5.2.4
PHP Bug Type:     SOAP related
Bug description:  Memory Allocaltion Failure on versions 5.2.1 and up

Description:
------------
I have a set of scripts which connect to Salesforce.com's API and retrieve
data from our instance and stores them in either an Oracle Database or
MySQL.  These scripts are identical, just the retrieving SQL statement is
different.   The Memory leak error happens when the scripts with large data
sets perform the extract.  The reason that I am reporting this bug is that
these scripts performed flawlessly in all php version 5.* prior to
upgrading to 5.2.1 and up.  The servers that house these scripts are
currently running 5.2.0

Reproduce code:
---------------
source of code >  http://www.mikesimonds.com/soap_php_bug.phps

Expected result:
----------------
I expected the data to be retrieved and inserted into our target database
without any errors as it did with versions prior to 5.2.1.  These data sets
number in the 130,000 count and have 40-60 rows in each table

Actual result:
--------------
Error Results: 

Fatal error: Uncaught SoapFault exception: [Client] Allowed memory size of
134217728 bytes exhausted (tried to allocate 1856074 bytes) in
C:\wamp\www\includes\soapclient\SforceBaseClient.php:506 Stack trace: #0
[internal function]: SoapClient->__call('queryMore', Array) #1
C:\wamp\www\includes\soapclient\SforceBaseClient.php(506):
SoapClient->queryMore(Object(stdClass)) #2
C:\wamp\www\extract\export_product2.php(122):
SforceBaseClient->queryMore('01g40000001pM0w...') #3
C:\wamp\www\extract\export_product2.php(28):
get_products(Object(SforcePartnerClient)) #4 {main} thrown in
C:\wamp\www\includes\soapclient\SforceBaseClient.php on line 506

-- 
Edit bug report at http://bugs.php.net/?id=43038&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43038&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43038&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43038&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43038&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43038&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43038&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43038&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43038&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43038&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43038&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43038&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43038&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43038&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43038&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43038&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43038&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43038&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43038&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43038&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43038&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43038&r=mysqlcfg

Reply via email to