PHP 似乎没有实例化任何类
http://pastebin.com/25CwPDB2 <-- Index.php
http://pastebin.com/4ZTvy0kk <-- /system/Main.php
这似乎发生在两者上Windows 和 Ubuntu 10.10 服务器。
该脚本应该输出:
“尝试加载主程序”
“自动加载类”
“来自主城的你好!”
http://pastebin.com/25CwPDB2 <-- Index.php
http://pastebin.com/4ZTvy0kk <-- /system/Main.php
This seems to happen on both a Windows and Ubuntu 10.10 server.
The script is supposed to output:
"trying to load main"
"Autoloaded class "
"Hello from Main!"
这是错误的。您最终将错误报告设置为字符串,因此将其设置为 0 ( (int)"blabla"===0 )
使用
this is wrong. you end up setting error reporting to string so it sets it to 0 ( (int)"blabla"===0 )
use