Re: [Fwd: Re: [PHP] php 5 interfaces]

2005-01-21 Thread Sergio Gorelyshev
On Fri, 21 Jan 2005 11:56:55 +0100 Jochem Maas <[EMAIL PROTECTED]> wrote: > Tbird switched the reply and reply-all buttons again ;-)... > > > ?> > > IMHO its normally to use access type for methods declaration in interfaces. > > Why not? > > Maybe my first example was not sufficiently illustrat

[Fwd: Re: [PHP] php 5 interfaces]

2005-01-21 Thread Jochem Maas
Tbird switched the reply and reply-all buttons again ;-)... ?> IMHO its normally to use access type for methods declaration in interfaces. Why not? Maybe my first example was not sufficiently illustrative. But my question was "why it does not work in one environment and work fine in another". it

Re: [PHP] php 5 interfaces

2005-01-21 Thread Sergio Gorelyshev
On Thu, 20 Jan 2005 11:13:11 -0800 (PST) "Richard Lynch" <[EMAIL PROTECTED]> wrote: > Sergio Gorelyshev wrote: > > Hi all. > > > > Situation: > > > > interface MyInterface { > > public static myMethod(); > > } > > > > class MyClass implements MyInterface { > > public static myMethod() {} > > }

Re: [PHP] php 5 interfaces

2005-01-20 Thread Jochem Maas
Richard Lynch wrote: Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must b

Re: [PHP] php 5 interfaces

2005-01-20 Thread Richard Lynch
Sergio Gorelyshev wrote: > Hi all. > > Situation: > > interface MyInterface { > public static myMethod(); > } > > class MyClass implements MyInterface { > public static myMethod() {} > } > > This sample will crash with message > Fatal error: Access type for interface method MyInterface::myMethod

[PHP] php 5 interfaces

2005-01-20 Thread Sergio Gorelyshev
Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash with message Fatal error: Access type for interface method MyInterface::myMethod() must be omitted in somefile.php on line NN