Home » HTML » HTML_QuickForm » Bug #6003
wrong parent class constructor call
Details
| Submitted | 2005-11-17 18:56 UTC |
|---|---|
| From | sofa77 at gmx dot de |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5_1 CVS-2005-11-17 |
| OS | windows 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