You are here: Re: [PHP] parent::construct not reliable working on php5.1 b2/b3 « PHP « IT news, forums, messages
Re: [PHP] parent::construct not reliable working on php5.1 b2/b3

Posted by Meno Abels on 08/02/05 18:09

it is only a typo in my email i use __construct

Meno

2005/8/2, Jochem Maas <jochem@iamjochem.com>:
> Pawel Bernat wrote:
> > On Tue, Aug 02, 2005 at 03:42:00PM +0100, Meno Abels wrote:
> >
> >>Hello,
> >>
> >>With my application that uses heavily inherent classes, sometimes I
>
> deeeeep class heirarchies can lead to brainfreeze - beware of going to deep :-)
>
> >>get the following message:
> >>PHP Fatal error: Call to undefined method Rank::_construtor() in
> >>.../inc/Links.class.php. It works with php
> >>4.x when I use the old style of constructor calling
> >>$this->(CLASSNAME) . But when working with php 5.2 b2 or b3 in the old
> >>OR the new style, I get the PHP Fatal error from above.
> >>Is there any hints to look at this problem?
> >
> > Why do you call _construct instead of __construct? And how do you do it?
>
> he seems to be calling _construtor() which although not wrong is not the
> method he is looking for (cue voice of Alex Guiness for the second time this week :-)
>
> try __construct()
>
> PS - this kind of thing belongs on generals until you are _sure_ it's an
> internals problem. IMHO.
>
> > Did you read everything at http://php.net/construct (including Note)?
> > What about php 5.0?
> >
>
>

 

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

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