PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #5410

APC breaks PEAR::QuickForm

Details

Submitted2005-09-15 09:27 UTC
Fromnick dot locking at gmail dot com
StatusBogus
PackageHTML_QuickForm
PHP Version5.0.5
OSTrustix 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