Re: QuickForm causing Apache to crash?!?!

From: Date: Mon, 03 Jan 2005 21:56:03 +0000
Subject: Re: QuickForm causing Apache to crash?!?!
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16571@lists.php.net to get a copy of this message
On Mon, 03 Jan 2005 14:45:49 -0700, Steve Larsen <myamibluz@yahoo.com> wrote: > 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. It could easily be some PHP5 strangeness. It could also be an Apache2 multithreading thing. Are you using prefork mode? > > Any help would be greatly appreciated. > -- Justin Patrin

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