Memory Size Error

From: Date: Fri, 28 Mar 2003 18:03:36 +0000
Subject: Memory Size Error
Groups: php.soap 
Request: Send a blank email to php-soap+get-512@lists.php.net to get a copy of this message
Hi all, I seem to be the test bed for all the problems, or it could just be me. Does anyone know the size constrains of the SOAP message being returned? I am getting a fatal error when the parser tries to parse the response message b/c it gets to big. Does anyone see a problem with changing the memory consumption in the php.ini file? Do you think this would help? I am not sure where the script it getting so big. I am grabbing a PDF from a remote server that is base64 encoding a 800k to 1 mb pdf. So when it comes down the pipe, it is around 1.25 to 1.5 mb at the most. Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 5220627 bytes) in /usr/share/pear/SOAP/Parser.php on line 87 Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 32 bytes) in /usr/share/pear/PEAR.php on line 632 here is the line in the parser where it throws the error... # XXX need to do this better, remove newlines after > or before < $this->xml = preg_replace("/>[\r\n]+/", '>', $this->xml); $this->xml = preg_replace("/[\r\n]+</", '<', $this->xml); ;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = 30 ; Maximum execution time of each script, in seconds memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) /* maybe change this to 16M */ Best, Paul _______________________________ Paul Miller SystemWise Solutions, Inc. pmiller@System-Wise.com http://www.System-Wise.com cell: 512.775.5144 fax: 801.858.6250

« previous php.soap (#512) next »