Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.10

Bug #1133 Segmentation Fault whenever ::run() is called
Submitted: 2004-04-05 03:58 UTC
From: aashley at optimiser dot com Assigned:
Status: Wont fix Package: HTML_QuickForm_Controller
PHP Version: 5CVS-2004-04-04 (dev) OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [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); }

Comments

 [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-05 09:26 UTC] avb
This is obviously a bug not in the package, but in PHP5 itself. I also think that the real bug should be fixed instead of its symptoms.
 [2004-04-06 02:51 UTC] aashley at optimiser dot com
i have submitted it to the php bug tracker