PHP 脚本停止时没有错误消息(哪种错误类型?) [英] PHP script stops without error message (Which error type?)

查看:42
本文介绍了PHP 脚本停止时没有错误消息(哪种错误类型?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我更改实现接口的类的方法的签名,则 PHP 脚本将停止而不会显示错误消息,例如:

a PHP script stops without an error message, if I change the signature of a method of a class, which implements a intereface, e.g.:

interface A
{
  public function somefunction();
}

class B implements A
{
  public function somefunction(XY $xy);
  {
   ... 
  }
} 

这当然是一个错误,但没有显示错误消息.

This is an error of course, but there is no error message shown.

这种错误类型的名称是什么?(我已经搜索了很多,但显然是错误的短语)如何记录或输出此错误?

What is the name of this error type? (I already searched a lot, but with the wrong phrases obviously) How can I log or output this error?

我使用的是 PHP 5.3.1(带有适用于 Windows 1.7.3 的 XAMPP)

I'm using PHP 5.3.1 (with XAMPP for Windows 1.7.3)

(我之前将 Zend Debugger 与 PHP < 5.3 一起使用,这些错误显示在 Eclipse 控制台中,但现在我使用的是 XDebug.)

(I used Zend Debugger with PHP < 5.3 earlier, where those erros were shown in the Eclipse console, but now I'm using XDebug.)

提前感谢您的提示!

推荐答案

放在文件顶部然后尝试,

put at the top of file and then try,

<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
?>

如果仍然没有输出,请检查您的错误日志.

If you still getting no output, please check your error_log.

这篇关于PHP 脚本停止时没有错误消息(哪种错误类型?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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