QuickForm causing Apache to crash?!?!
| From: | Steve Larsen | Date: | Mon, 03 Jan 2005 21:45:49 +0000 |
| Subject: | QuickForm causing Apache to crash?!?! | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16569@lists.php.net to get a copy of this message | ||
Haven't seen this one posted any where else. This code causes Apache
to seg fault with signal 11:
require_once "HTML/QuickForm.php";
$form = new HTML_QuickForm('login', 'POST');
$form->addElement('text','username','User name:',
'size="10"');
$form->display();
This code does not:
require_once "HTML/QuickForm.php";
$form = new HTML_QuickForm('login', 'POST');
$form->addElement('text','username','User name:',
'size="10"');
$form->addRule('username', 'Please enter your user
name!','required',null,'c
lient');
$form->display();
And that is true of every "addElement" that I try(even "submit"
buttons)--unless I add an "addRule", Apache crashes.
I don't even know where to begin to debug this. My pear installation
looks like this:
Archive_Tar 1.1 stable
Console_Getopt 1.2 stable
DB 1.6.8 stable
HTML_Common 1.2.1 stable
HTML_QuickForm 3.2.4pl1 stable
PEAR 1.3.4 stable
XML_RPC 1.1.0 stable
I'm running Apache 2 and php 5.0.2 onAIX 5.1. Other PEAR modules work
fine. DB/odbc for instance.
Any help would be greatly appreciated.