Re: How many...

From: Date: Thu, 07 Sep 2000 19:50:28 +0000
Subject: Re: How many...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15767@lists.php.net to get a copy of this message
Martin wrote: > > Hello ! > > How many recursions will PHP cope with ? I'm parsing recursively trough > a dir-ftp-tree and don't want to get any surprises... > > Regards > > Martin As far as I know (somebody please correct me if I'm wrong), there's no limit on the number of recursions. There /is/ a limit on script execution time (can be disabled) though, and a memory limit can be enabled as well. Apart from hitting those two (configurable) limits your script should be able to recurse indefinitely. A long running recursive script could run into other problems though; it can exhaust the amount of available memory, hog the CPU or (depending on the nature of the script) exhaust other system resources as well. -- Jesper Juhl juhl@eisenstein.dk

« previous php.general (#15767) next »