Class::__construct() vs. $this->__construct()

From: Date: Wed, 30 Mar 2005 21:50:25 +0000
Subject: Class::__construct() vs. $this->__construct()
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36996@lists.php.net to get a copy of this message
What would the difference between: $this->__construct(); and Class::__construct() be? I'm asking in regards to making my PHP4 classes "forward thinking" in regards to an upgrade to PHP5. I'd like the code to nicely run in both PHP4 and PHP5 and I've seen it done both ways. Is there a difference? class Foo extends Bar {
    function Foo()
    {
        Foo::__construct(); // Or should it be $this->__construct();
    }
    function __construct()
    {
        parent::__construct();
    }
} Thoughts? --Joe -- Joseph C. Stump joe@joestump.net http://www.joestump.net

« previous php.pear.dev (#36996) next »