RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_compile.c
| From: | Andi Gutmans | Date: | Fri, 20 Oct 2006 08:58:17 +0000 |
| Subject: | RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_compile.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-5349@lists.php.net to get a copy of this message | ||
Can you give an example re: what you mean? Marcus and you are making
statements as if it's the most obvious thing in the world but I guess I just
don't see why it's so obvious (besides other languages doing it).
When would you have two incompatible protoypes in static methods in two
children? (talking about a common known case)
Anyway, for now E_STRICT is definitely better than E_ERROR so that we don't
kill our users. Maybe post 5.2 we can do E_STRICT and E_DEPRECATED but I'm
still curious to be enlightened here. I guess I'm not theoretical enough :)
Andi
> -----Original Message-----
> From: Dmitry Stogov [mailto:dmitry@zend.com]
> Sent: Friday, October 20, 2006 1:44 AM
> To: 'Derick Rethans'; 'Andi Gutmans'
> Cc: 'Ilia Alshanetsky'; zend-engine-cvs@lists.php.net
> Subject: RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) /
> zend_compile.c
>
> Static methods may not de overridden.
> It is absolutely legal if static method in children classes
> have incompatible prototypes with static method in parent class.
> For what reason we need "abstract static methods"?
>
> Are we OOP pioneers?
>
> Dmitry.
>
> > -----Original Message-----
> > From: Derick Rethans [mailto:derick@php.net]
> > Sent: Friday, October 20, 2006 12:11 PM
> > To: Andi Gutmans
> > Cc: 'Dmitry Stogov'; 'Ilia Alshanetsky';
> zend-engine-cvs@lists.php.net
> > Subject: RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) /
> > zend_compile.c
> >
> >
> > On Fri, 20 Oct 2006, Andi Gutmans wrote:
> >
> > > I cant remember the discussion we had in the past.
> > > Why is it important to not allow overriding of static
> functions? We
> > > can/should probably enforce the same contract of course.
> >
> >
> > http://marc.theaimsgroup.com/?t=116129338300001&r=1&w=2
> > and
> >
> > http://marc.theaimsgroup.com/?t=114734986200004&r=1&w=2
> >
> > regards,
> > Derick
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
>
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.