parent::construct not reliable working on php5.1 b2/b3

php.internals

Meno Abels

21 years ago
Hello, With my application that uses heavily inherent classes, sometimes I 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? regards meno

Pawel Bernat

21 years ago
On Tue, Aug 02, 2005 at 03:42:00PM +0100, Meno Abels wrote:
> Hello, > > With my application that uses heavily inherent classes, sometimes I > 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? Did you read everything at http://php.net/construct (including Note)? What about php 5.0?
-- Paweł Bernat; uselessness' lover; select'<asm'||chr(64)||'asm'||'.'||'flynet'||chr(46)||'pl>'as email; Slowly and surely the unix crept up on the Nintendo user ...