note 52297 deleted from language.functions by nikic
| From: | nikic@php.net | Date: | Wed, 30 Apr 2014 15:30:58 +0000 |
| Subject: | note 52297 deleted from language.functions by nikic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199383@lists.php.net to get a copy of this message | ||
Note Submitter: dma05 at web dot de
----
@ gilthansNOSPAAM at gmailSPAAMBLOCK dot com
i think you just fried your stack like the manual reads ;)
works up to ~17000-30000 iterations for me... although, that's on a linux box with php5 as an
apache2 module...
maybe the cgi version has a smaller stack...
the problem seems logical, because every time your function iterates, it puts another pointer on the
stack (the one to your variable), and sooner or later you're out of memory there, so no more
pointers to be added which should make it crash, if you're using one global variable, then
there's no pointers to be added to your stack and it won't run out (well, not so fast at
least, you still need to add other pointers to the stack but at least one less)...