note 52297 added to language.functions

From: Date: Wed, 27 Apr 2005 12:24:41 +0000
Subject: note 52297 added to language.functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-88616@lists.php.net to get a copy of this message
@ 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)... ---- Manual Page -- http://www.php.net/manual/en/language.functions.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52297 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52297&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52297&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52297&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52297&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52297&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52297&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88616) next »