php parse_str crashes on big data

sotGrerne

New Member
I try to post very long (10-15MB) \[code\]xml\[/code\] data. Therefore I have increased in my development \[code\]php.ini\[/code\] the following settings:\[code\]max_execution_time = 600max_input_time = -1memory_limit = 1024Mpost_max_size = 5000Mupload_max_filesize = 5000Mdefault_socket_timeout = 600\[/code\]But the \[code\]php\[/code\] function \[code\]parse_str\[/code\] still seems to crash - since all following commands are not executed and the page-response is 0 bytes.I am not really a php guru, could anywone give me a hint how to fix this issue?EDIT:There is no log, no response and apache error log is also not complaining anythingwhy I use parse_str? this is not my code :-)EDIT2:We use a CMS tool, and we have some plugins - sending xml via querystring is a workaround to a limitation. Usually the XML got parsed and inserted into a custom databse (not CMS Database). I have just inserted some file prints to check what is going on:\[code\]public function upsertItem($oXMLObjectFromExtern=""){ $bHasError = false; $iInserted = 0; $iUpdated = 0; $iErrors = 0; $output = ""; $sPostData = http://stackoverflow.com/questions/15788148/file_get_contents("php://input"); // works $fh = fopen('/var/log/apache2/kic.log', 'w'); fwrite($fh, $sPostData); parse_str($sPostData, $aPostData); // does not do anything, no error messages nothing ... $fh = fopen('/var/log/apache2/kic2.log', 'w'); //fwrite($fh, "jetzt"); fwrite($fh, var_export($aPostData,TRUE)); if(!empty($aPostData['data']) OR is_object($oXMLObjectFromExtern)){\[/code\]The query string is formated like so: op=upsertitem&data=http://stackoverflow.com/questions/15788148/%3Crows%3E%0A%3Crow%3E%0A%3Cft_short_name%.... more encoded xml data
 
Back
Top