-- Philip G <[EMAIL PROTECTED]> wrote (on Wednesday, 06 February 2008, 01:02 PM -0600): > On Feb 6, 2008 12:53 PM, Philip G <[EMAIL PROTECTED]> wrote: > > Okay, I've recently downloaded ZFW 1.5 and playing around with > > Zend_Layout. Unfortunately though, there seems to be a bit of a memory > > problem. The issue is when I load Zend_Layout to create an MVC > > instance, and then attempt to call phpBB's methods to login, I get out > > of memory error. I have the default 8 megs allocated to PHP. I know > > phBB might not be the most memory efficient, however, if it was the > > problem, I would have gotten the memory error earlier. Once I load up > > Zend_Layout, PHP constantly dies for being 4 megs over cap! That's > > telling me Zend_Layout, by itself, it taking more than 4 megs memory. > > Wow .... > > > > Is anybody else having this problem? Is there a better solution than > > just "increase your memory usage"? > > > > Of course, as I just realized, looking at my dev environment, it could > be related to xdebug. ^_^ > > Still, isn't it a bit odd to go this far above memory limits, even > with xdebug enabled, just by starting a new Zend_Layout MVC instance?
Yeah, it does seem odd, but it's likely due to how xdebug handles recursive structures. If you use the layout() view helper, you initialize a recursive structure (view refers to layout which refers to view.... and so on), and xdebug happily starts eating up a ton of memory. I've found that I simply can't run xdebug for anything other than code coverage reports due to stuff like this happening. -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
