You are here: Re: static call of non-static method? [again] sorry. « PHP Programming Language « IT news, forums, messages
Re: static call of non-static method? [again] sorry.

Posted by gosha bine on 09/21/07 15:34

On 21.09.2007 17:20 Mads Lee Jensen wrote:
> Sorry for posting this message again. Im new with the google groups
> and something seems wrong
> maybe it is because i changed my email after posting to a valid email
> i noticed the other didnt exists eny more
> and i couldnt see the replys ..
>
> My question is
> how come it possible to access a class method with double colon,
> without declaring the method static?
>
> my test
>
> class Test_1
> {
> public function hello()
> {
> echo 'Hello';
> }
> }
> Test_1::hello();
>

copypasting my prev. reply


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 ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация