dqotv26286 2014-02-20 15:23
浏览 106
已采纳

是否可以使用Quercus在Resin上运行ZF2应用程序?

I am attempting to set up a very basic Zend Framework 2 application to run on Resin using Quercus as a proof of concept. I'm running into some issues, and I haven't been able to find any open source examples of a ZF2 application running on Resin.

I've managed to get PHP working, but I am seeing errors about functionality normally included by the PHP SPL extension when trying to load my Zend application. It appears that SPL is not fully implemented by Quercus, so hopefully there's a work-around I can use if that is the case.

The first error I saw was about a missing function: spl_object_hash. I wrote a placeholder for this method to get around the error for now (it's pretty terrible, I know):

if (!function_exists('spl_object_hash')) {
    function spl_object_hash() {
        usleep(1);
        return md5(microtime());
    }
}

The next two errors were about the missing classes: SplPriorityQueue and SplStack. I wrote some placeholders for those as well, going by the documentation here: http://us3.php.net/manual/en/book.spl.php. These placeholder classes are basically just wrappers for an array.

The error I'm running into now is:

.../library/Zend/ServiceManager/ServiceManager.php:456: Fatal Error: Uncaught exception of type 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Application Location[.../library/Zend/ServiceManager/ServiceManager.php:456]'

I'm not really sure where to go from here.

For reference, I'm using:

  • 写回答

2条回答 默认 最新

  • dt102282 2014-07-18 14:31
    关注

    I copied this question to the Caucho Quercus Google Group, and I received this response.

    It appears that at this time, it is not possible to run a Zend Framework 2 application using Resin and Quercus.

    The missing function spl_object_hash has been implemented for the upcoming 4.0.39 release.

    Additionally, Nam Nguyen of Caucho submitted the following bug reports on my behalf:

    http://bugs.caucho.com/view.php?id=5623

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 ATAC测序到底用什么peak文件做Diffbind差异分析
  • ¥15 安装ubantu过程中第一个vfat 文件挂载失败
  • ¥20 GZ::CTF如何兼容一些靶机?
  • ¥15 etcd集群部署问题
  • ¥20 谁可以帮我一下问一下各位
  • ¥15 为何重叠加权后love图的SMD与svyCreateTableOne函数绘制基线表的不一致
  • ¥15 QFILHelper怎么恢复全字库,提示进程已完成,只能恢复分区文件
  • ¥150 求 《小魔指》街机游戏机整合模拟软件
  • ¥20 你好,我想问下easyExcel下拉多选,或者复选框可以实现吗
  • ¥20 双非跨考工科哪个专业和方向就业前景好?