ID:               11973
 Comment by:       best-nasty1479 at hotmail dot com
 Reported By:      ori at corky dot net
 Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: Windows 2000 Professional
 PHP Version:      4.0.5
 New Comment:

<a href=http://best-nasty-pvcfisti.da.ru>best nasty</a>


Previous Comments:
------------------------------------------------------------------------

[2001-07-09 09:16:49] [EMAIL PROTECTED]

Try $this->A();

Brian.

------------------------------------------------------------------------

[2001-07-09 07:43:58] ori at corky dot net

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 this bug report at http://bugs.php.net/?id=11973&edit=1

Reply via email to