sebastianbergmann/phpunit — Issue #456: Problem setting memory_limit
Author: jerkan
Created: 2012-01-10 22:14:30+00:00
State: open

0 down vote favorite
share [fb] share [tw]

I've just installed phpunit 3.6.7 via pear in a mac osx 10.7 and everything works fine except I got memory limit errors (xdebug enabled for codecoverage). PHP version is 5.3.6 and Xdebug is 2.2.0

I tried to add the "-d memory_limit=128M" parameter to phpunit but it is not applying because, on the very first error, I added "var_dump(ini_get('memory_limit'));exit;" and it prints string(3) "32M" (same as php.ini). Also, i included that in the phpunit.xml like this

So, ¿why is it not being applied?

Besides that, if I run

php -d memory_limit=256M -r "echo ini_get('memory_limit');"

it echoes "256M"

¿Is it possible that phpunit is not executing same php?