0

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.

4

3 回答 3

2

将其放在输出切断的部分之前:

error_reporting(E_ALL);
ini_set('display_errors', 1);

有可能只是一个没有输出的错误。还要确保您的代码不包含错误抑制运算符 (@symobl),因为这是难以检测到错误的常见原因:http ://www.php.net/manual/en/language.operators.errorcontrol.php

如果我的第一个建议解决了您的问题,那么我建议您正确设置和测试错误处理,以便您将来会收到所有错误,因为这将为您节省大量时间。

于 2009-06-02T12:43:39.000 回答
1

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

于 2009-06-02T11:22:52.487 回答
1

这可能是一些内存限制,也可能是在 XML 创建的那部分运行的脚本的任意部分。

检查你得到什么错误,看看是否有任何错误被抑制。如果所有其他方法都失败了,请发布一些在该 8KB 标记处运行的示例代码。

于 2009-06-02T12:42:50.547 回答