print_r返回空白页 [英] print_r return BLANK PAGE

查看:111
本文介绍了print_r返回空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,我在Joomla YOOtheme ZOO扩展中使用了print_r($obj),它返回了一个空白页.它只是充当die()

I have a weird problem, I am using print_r($obj) in Joomla YOOtheme ZOO extension and it returns a blank page. it just act as die() !

它应该输出对象,但不输出.

it should output the object but it does not.

请注意,print_r()与其他一些对象和变量可以很好地工作.

Please note that print_r() is working fine with some other objects and variables.

我在Windows上使用XAMPP.

I am using XAMPP on Windows.

有帮助吗?

在执行print_r()var_dump()时,页面只是空白,没有错误,查看源代码显示:

Upon executing print_r() and var_dump(), the page is just blank, no error, view source shows:

<html>
  <head></head>
  <body></body>
</html>

错误报告已打开.

推荐答案

很可能$obj太大而无法加载,并且会占用大量内存,此后脚本将停止工作.

It is posible that $obj is too big to load, and grabs a lot of memory after which the script stops to work.

谢谢

这篇关于print_r返回空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆