Re: [PHP] PHP Memory Management

2008-08-04 Thread Waynn Lue
> > Waynn Lue wrote: > >> I've been running the script below: >> >> > $appIds = getLotsOfAppIds(); >> foreach ($appIds as $appId) { >>echo "$appId\n"; >>//echo memory_get_usage() . "\n"; >>try { >> $getBundles = getBundles($appId); >> $numBundles = count($registeredBundles);

Re: [PHP] PHP Memory Management

2008-08-03 Thread Chacha C
is it possible because you can assign $func = foo and call $func() and it will call foo(), maybe that its creating an endless loop of assigning the function to itself? On Sun, Aug 3, 2008 at 11:17 AM, brian <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: > >> I've been running the script below: >>

Re: [PHP] PHP Memory Management

2008-08-03 Thread brian
Waynn Lue wrote: I've been running the script below: And I get PHP Fatal Error: Allowed Memory Size Exhausted after it runs for a bit. Looking at the memory usage, it's because $getBundles (an array) is huge, and keeps growing. What I'm confused by is why setting it to something else in the

[PHP] PHP Memory Management

2008-08-02 Thread Waynn Lue
I've been running the script below: And I get PHP Fatal Error: Allowed Memory Size Exhausted after it runs for a bit. Looking at the memory usage, it's because $getBundles (an array) is huge, and keeps growing. What I'm confused by is why setting it to something else in the next iteration of t

Re: [PHP] memory management

2007-03-26 Thread Jochem Maas
you hijacked someone else's thread. don't do that. you are making assuptions about references are correct - the engine is cleverer than you think (Sara Golemon has a nice blog post about this kind of reference assuption that you might want to look up) the word is 'because' not 'cos'. 'short rec

[PHP] memory management

2007-03-26 Thread Stan Kuhn
Hi guys, I work with hierarchical world areas organization in my php script. It consumes a lot of memory so I'm trying to optimize it. The more I try the worse it is ;o) Consider following code: general::debug("make_hierarchy","before hier split"); //lets organize areas by parents foreach ($in