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