static call of non-static method?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi i was wondering why i can call a class method, by double colon.
without declaring it static.

this is my test

class Test_1
    public function hello()
        echo 'Hello';

Re: static call of non-static method?

On 21.09.2007 14:49 Mads Lee Jensen wrote:
Quoted text here. Click to load it

This behaviour is for compatibility with php4. It raises a E_STRICT  
error in php5 and will be fatal error in php6.

gosha bine

makrell ~
php done right ;)

Site Timeline