Posted by Etienne Marais on 12/07/05 03:56
Greg Scharlemann wrote:
> I have a class with a constructor function that looks like so on my php
> 5.0 box:
>
> public function __construct(....)
>
> does this syntax change when I go back to php 4.4.1? I've never used
> 4.4.1 before, been solely 5.0 until now. It seems the 4.4.1 box is
> giving me an error on that call.
>
> I've been looking on google for a while for a simple answer, but must
> not be searching for the right thing.
>
> Thanks in advance.
PHP 4.x supports only constructors that
have the same name as the class,
e.g.
class abc {
// Constructor
function abc() {
}
}
The chances are pretty good that you will
have to upgrade to php 5
--
Etienne Marais
Cosmic Link
South Africa
[Back to original message]
|