我有一個Symfony2項目的一些功能測試。 當我運行沒有啓用代碼覆蓋的測試套件時,沒有問題。 但是,當我試圖生成代碼覆蓋率我得到一個PHP的致命錯誤: Generating code coverage report, this may take a moment.
PHP Fatal error: Allowed memory size of 209715200 bytes exhausted
我一直在思考這個問題。我相信它從來沒有用過這樣做,但是我必須改變一些東西,所以它確實如此。 這是有問題的php腳本: <?php
echo <<<START
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html x
運行在cmd中 $ php -d memory_limit=-1 -f composer.phar update
Loading composer repositories with package information
Updating dependencies
Fatal error: Out of memory (allocated 121896960) (tried to all