You are here: Re: PHP 4: does method_exist return true if parent class method even if child class forgot to call parent:: « PHP Programming Language « IT news, forums, messages
Re: PHP 4: does method_exist return true if parent class method even if child class forgot to call parent::

Posted by Wayne on 05/28/05 21:12

On 28 May 2005 07:03:45 -0700, lkrubner@geocities.com wrote:

>Adding parent:: to the constructor of the child solved
>the problem. Is this a bug in PHP?

Nope.

>The method is in the parent class yet I'd forgotten to call parent:: in
>the constructor of the child class.

That's correct behaviour. Calling the parents constructor has nothing
to do with whether the methods are available in a child class.

 

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

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