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 #6003

wrong parent class constructor call

Details

Submitted2005-11-17 18:56 UTC
Fromsofa77 at gmx dot de
StatusBogus
PackageHTML_QuickForm
PHP Version5_1 CVS-2005-11-17
OSwindows xp + APC
Roadmaps(Not assigned)

Comments

[2005-11-17 18:56 UTC] sofa77 at gmx dot de

Description:
------------
in pretty much every inherited class, parent constructors are called like this:

function HTML_QuickForm_static($elementName=null, $elementLabel=null, $text=null)
{
HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel);

which should be:

function HTML_QuickForm_static($elementName=null, $elementLabel=null, $text=null)
{
parent::HTML_QuickForm_element($elementName, $elementLabel);

usually this code is working (without APC), as soon as i tun APC on, there are several errors, because parent constructors are not called. thus, functions from inherited parent class definitions are not reachable.

Test script:
---------------
// self explaining

Expected result:
----------------
as described above, the calls should look like that:

function HTML_QuickForm_static($elementName=null, $elementLabel=null, $text=null)
{
parent::HTML_QuickForm_element($elementName, $elementLabel);

Actual result:
--------------
// self explaining