草庐IT

536870912

全部标签

php - CakePHP : Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 52 bytes)

您好,我有一个在CakePHPv1.3上运行的应用程序。我已将我的wamp服务器更新为v2.4。更新后我收到此错误消息。我在php.ini设置中进行了这些更改。内存限制=128Mfile_uploads=ONupload_max_filesize=128M最大输入时间最大执行时间=300post_max_size=128Mrealpath_cache_size=16krealpath_cache_ttl=120但我仍然收到这些错误消息:CakePHP:Fatalerror:Allowedmemorysizeof536870912bytesexhausted(triedtoallocat

PHPUnit 覆盖 : Allowed memory size of 536870912 bytes exhausted

我正在尝试使用以下命令使用PHPUnit和phpdbg为我的PHP项目生成代码测试覆盖率:phpdbg-dmemory_limit=512M-qrr./bin/phpunit-c.phpunit.cover.xml这很好用:PHPUnit6.2.4bySebastianBergmannandcontributors.........8/8(100%)Time:114ms,Memory:14.00MBOK(8tests,13assertions)GeneratingcodecoveragereportinHTMLformat...done但是,当我在docker容器中使用完全相同的命令时

PHPUnit 覆盖 : Allowed memory size of 536870912 bytes exhausted

我正在尝试使用以下命令使用PHPUnit和phpdbg为我的PHP项目生成代码测试覆盖率:phpdbg-dmemory_limit=512M-qrr./bin/phpunit-c.phpunit.cover.xml这很好用:PHPUnit6.2.4bySebastianBergmannandcontributors.........8/8(100%)Time:114ms,Memory:14.00MBOK(8tests,13assertions)GeneratingcodecoveragereportinHTMLformat...done但是,当我在docker容器中使用完全相同的命令时