Home » HTML » HTML_QuickForm » Bug #5410
APC breaks PEAR::QuickForm
Details
| Submitted | 2005-09-15 09:27 UTC |
|---|---|
| From | nick dot locking at gmail dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5.0.5 |
| OS | Trustix 2.2 |
| Roadmaps | (Not assigned) |
Comments
[2005-09-15 09:27 UTC] nick dot locking at gmail dot com
Description:
------------
When APC is turned on, QuickForm breaks and produces an error:
Fatal error: Call to undefined method
HTML_QuickForm_hidden::HTML_QuickForm_element() in
/usr/lib/php/HTML/QuickForm/input.php on line 50
Obviously this method is not undefined. When APC is turned off, it works
perfectly. Strangely, manually including "HTML/QuickForm/element.php"
before the code fixes the problem.
PHP Version: 5.0.4
QuickForm Version: 3.2.5
APC Version: 3.0.8
Operating System: Trustix 2.2
Test script:
---------------
HTAccess:
php_flag apc.enabled on
Whatever.php:
// Include QuickForm
require_once("HTML/QuickForm.php");
// This line, uncommented, fixes the problem
// require_once "HTML/QuickForm/element.php";
// Create a form
$form = new HTML_QuickForm('frmUser', 'post');
// This line produces the error
$form->addElement('hidden', 'id');
Expected result:
----------------
I expect a form to be created with a hidden element.
Actual result:
--------------
Fatal error: Call to undefined method
HTML_QuickForm_hidden::HTML_QuickForm_element() in
/usr/lib/php/HTML/QuickForm/input.php on line 50