Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes)
So the array is probably to big, but I need that data, so I need to allocate more memory for SOAP. Now this is the problem. I thought I could just do that by the PHP variable memory_limit. Strange as it seems, this indeed increases the memory for PHP, but not for the SOAP extension.
When I set memory_limit to 512MB, the error stays the same and when I set it to 32MB, it also stays the same.
This is the script that casues the error:
Code: Select all
$soapurl = 'http://www.domein.nl/api/soap/?wsdl';
$soapuser = 'user';
$soappassword = 'pass';
$proxy = new SoapClient($soapurl, array("user_agent"=>"PHP-SOAP/php-version"));
$sessionId = $proxy->login($soapuser, $soappassword);
print 'MEMORY LIMIT = '.ini_get('memory_limit').'<br />';
$filters = array('created_at' => array('gt'=>'2009-10-01'));
$orders = $proxy->call($sessionId, 'sales_order.list', array($filters));PHP 5.2.11
'./configure' '--prefix=/usr/local/php5' '--enable-force-cgi-redirect' '--enable-fastcgi' '--withconfig-file-path=/etc/php5/cgi' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpegdir=/usr/local/lib' '--with-freetype' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--withmcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pear' '--with-png-dir=/usr/local/lib' '--enable-xml' '--with-xmlrpc' '--with-imap' '--with-imap-ssl' '--withxsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-openssl' '--withiconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--enable-mbstring' '--enable-gd-native-ttf' '--enablesoap'