NYCPHP Meetup

NYPHP.org

[nycphp-talk] silent failure with PHPUnit and Zend Framework

David Mintz david at davidmintz.org
Thu Sep 23 12:44:26 EDT 2010


On Thu, Sep 23, 2010 at 12:29 PM, Rob Marscher
<rmarscher at beaffinitive.com>wrote:

> On Sep 23, 2010, at 12:23 PM, David Mintz wrote:
> > I have upped the memory limit to 64M in both /etc/php5/apache2/php.ini as
> well as /etc/php5/cli/php.ini. Same story: still bonking without emitting an
> error message, even with that output buffering turned off.
>
> Hmm... you can also pass a custom memory limit when you invoke phpunit:
>  phpunit -d memory_limit 256M
>
> Also, maybe try the --strict and --verbose switch for phpunit if you
> haven't already.
>


Gee, this is interesting:

david at interps3:/opt/www/shitou/tests$ phpunit -d memory_limit 256M --verbose


Fatal error: Allowed memory size of 262144 bytes exhausted (tried to
allocate 4864 bytes) in
/usr/share/downloads/ZendFramework-1.10.4/library/Zend/Application.php on
line 237

Now I am starting to suspect a systemic memory problem here. Could it be?
This sucky old Dell desktop is memory-poor at 1GB. Gonna reboot and see what
happpens -- same thing, I bet.

-- 
David Mintz
http://davidmintz.org/
It ain't over:
http://www.healthcare-now.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100923/094379f9/attachment.html>


More information about the talk mailing list