Take the 2-minute tour ×

My site has a php page that prints out XML, for some reason though it's being truncated to 8KB in size, I've never encountered this before and all the other pages on the site remain un-truncated.

Where should I start looking for the problem and what could cause it to stop like this?

The site uses the Zend framework and the page in question uses the soap server.

share|improve this question
publish some example code, to get better answers –  ish1301 Jun 2 '09 at 11:22
to add to what Ish Kumar said, please also post what you're getting and not getting specifically. e.g. are you getting the first 8KB of the xml? something else? are there any errors? are errors suppressed? –  Jonathan Fingland Jun 2 '09 at 11:32
The problem has magically fixed itself and it's stopped stopping at 8KB, I'd not had a chance to implement any of the suggestions. –  Teifion Jun 3 '09 at 11:46

3 Answers 3

Put this before the section where the output cuts off:

ini_set('display_errors', 1);

Chances are there is just an error that is not being output. Also make sure your code does not contain the error suppression operator (@ symobl) as this is a common cause of hard to detect errors: http://www.php.net/manual/en/language.operators.errorcontrol.php

If my first suggestion fixed your issue then I would suggest that you set up and test error handling correctly so that you will receive all errors in the future as this will save you a lot of time.

share|improve this answer

I'd expect an error if it was memory but have you tried increasing the memory limit in php.ini?

share|improve this answer

It could be some memory limit, it could be some arbitrary part of the script that is running at that part of the XML creation.

Check what errors you are getting, see if any errors are suppressed. And if all else fails, post some example code that is running at that 8KB mark.

share|improve this answer

Your Answer


