FormBuilder question : "Fatal error: Allowed memory size"

From: Date: Sun, 11 Apr 2004 14:20:42 +0000
Subject: FormBuilder question : "Fatal error: Allowed memory size"
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11775@lists.php.net to get a copy of this message
Good morning, I am new to FormBuilder. Everything I tried so far works very well except when I have too many links in my derived class. When I have more than 2 or 3 links, I get the following message : " Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 67898 bytes) in pear/HTML/QuickForm/select.php on line 496 Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 32 bytes) in pear/PEAR.php on line 656 Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 142 bytes) in Unknown on line 0" I just cannot get rid of it. Can anyone help ? Furthermore, it seems that defining var $form_header_text as null does not work in the loop while (list($key, $value) = each($options)) {
                if (isset($this->key)) {
                    $this->$key = $value;
                }
Should not it be defined as false ? Finally, in the _reorderElements method, if you leave the else {
 	    $this->debug("<br/>...reorder not supported: invalid element(key) found...<br/>");
 	    return false;
} test, then it only seems to work if predefOrder and fieldsToRender are containing same elements, which is not always the case. Should it be suppressed ? Regards, Cindy Blondeel

« previous php.pear.general (#11775) next »