PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm_Controller » Bug #1133

Segmentation Fault whenever ::run() is called

Details

Submitted2004-04-05 03:58 UTC
Fromaashley at optimiser dot com
StatusWont fix
PackageHTML_QuickForm_Controller
PHP Version5CVS-2004-04-04 (dev)
OSLinux
Roadmaps(Not assigned)

Comments

[2004-04-05 03:58 UTC] aashley at optimiser dot com

Description:
------------
When ever HTML_QuickForm_Controller::run() is called the apache child seg faults. Below is a patch to Controller.php to fix the problem. I'll prob also submit a more generic form of the problem to the PHP bug list as I suspect this relates to a lower level bug.

If the patch doesnt come thru ok (as I've seen it do a lot in the past) drop me an email and I'll send it thru but really that shouldnt be needed its a simple fix

--- Controller.php 2004-04-05 12:01:24.517268866 +0800
+++ Controller.php5 2004-04-05 12:01:19.953897279 +0800
@@ -128,7 +128,8 @@
function run()
{
// the names of the action and page should be saved
- list($page, $action) = $this->_actionName = $this->getActionName();
+ $this->_actionName = $this->getActionName();
+ list($page, $action) = $this->_actionName;
return $this->_pages[$page]->handle($action);
}

[2004-04-05 04:09 UTC] aashley at optimiser dot com

well wont be submitting to php bug list just yet have been unable to create a simplified code segment that reproduces the problem. But it does happen reliably with HTML_QuickForm_Controller in both PHP5-RC1 and the php5-200404041830 snapshot

[2004-04-06 02:51 UTC] aashley at optimiser dot com

i have submitted it to the php bug tracker