我剛剛創建使用Zend Framework非常簡單,一個應用模塊2.允許的內存大小
努力時,我已經設置了自動加載,路線等,但連接到這個測試應用程序,我等待一些MINUTES,然後回到空白頁面。
Apache的錯誤日誌說:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33817602 bytes) in C:\Program Files\626Suite\application\library\Zend\ServiceManager\ServiceManager.php on line 339
或
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49141298 bytes) in C:\Program Files\626Suite\application\library\Zend\ServiceManager\ServiceManager.php on line 301
或
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 179873796 bytes) in C:\Program Files\626Suite\application\library\Zend\ServiceManager\Di\DiServiceFactory.php on line 106
,但我真的不明白是怎麼回事錯了,沒有什麼將佔爲一個簡單的「hello world」控制器使用128MB內存。
我也可以發佈我的配置,如果它有用,就這麼說吧。
任何想法可能會導致此問題?
是的請發佈您的配置。 – prodigitalson
你使用\ Zend \ Debug :: dump somewhere嗎?在某些情況下使用這個會導致我的這個錯誤 – Fge