Joomla(我测试用的版本是2.5.7)在BAE上总是发不失败的原因是因为Joomla中使用了statit::,而BAE的php执行环境并不支持static::(参考另一篇博文:
http://goaheadtw.iteye.com/admin/blogs/1739640)。
在Joomla目下搜索”static::“得到如下结果:
Search "static::" (13 hits in 1 file)
D:\Joomla_2.5.7\libraries\joomla\application\daemon.php (13 hits)
Line 153: if (!is_subclass_of(static::$instance, 'JApplicationDaemon'))
Line 160: static::$instance->triggerEvent('onReceiveSignal', array($signal));
Line 166: if (static::$instance->running && static::$instance->isActive())
Line 166: if (static::$instance->running && static::$instance->isActive())
Line 168: static::$instance->shutdown();
Line 172: static::$instance->close();
Line 177: if (static::$instance->running && static::$instance->isActive())
Line 177: if (static::$instance->running && static::$instance->isActive())
Line 179: static::$instance->shutdown(true);
Line 183: static::$instance->close();
Line 188: while (static::$instance->pcntlWait($signal, WNOHANG or WUNTRACED) > 0)
Line 194: while (static::$instance->pcntlWait($signal, WNOHANG) > 0)
Line 196: $signal = static::$instance->pcntlChildExitStatus($signal);