From:             [EMAIL PROTECTED]
Operating system: Windows 2000 Professional
PHP version:      4.0.5
PHP Bug Type:     Class/Object related
Bug description:  Parent's constructor uncallable directly from within child's methods.

Calling a parent class's constructor from a child's method does not work
without the parent:: operator, although the parent's constructor is listed
in the child's list of method as reported by get_class_methods().

Example script:

<?PHP

class A
{
    function A()
    {
    }
}
class B extends A
{
    function foo()
    {
        A();
    }
}
$obj = new B;
$obj->foo();

?>
-- 
Edit bug report at: http://bugs.php.net/?id=11973&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to