【发布时间】:2011-05-26 21:49:34
【问题描述】:
我收到 255 错误,无法找出原因
<?php
print "1 \n";
$a = new myClass("a");
print "2 \n";
interface Interabc
{
public function test($item);
}
class myClass implements Interabc
{
public function test($item)
{
print "test";
}
}
我得到的输出是:
1
Process finished with exit code 255
所有代码都是一个文件。我从命令行调用它。
【问题讨论】:
-
开启error_reporting。它显然已关闭并隐藏了有用的诊断信息。
标签: php command-line