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.
> -----Original Message-----
> From: Dmitry Stogov [mailto:dmitry@xxxxxxxx]
> Sent: Friday, October 20, 2006 12:40 AM
> To: 'Ilia Alshanetsky'; Andi Gutmans
> Cc: zend-engine-cvs@xxxxxxxxxxxxx
> Subject: RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) /
> zend_compile.c
>
> Why?
>
> Dmitry.
>
> > -----Original Message-----
> > From: Ilia Alshanetsky [mailto:iliaa@xxxxxxx]
> > Sent: Friday, October 20, 2006 6:44 AM
> > To: zend-engine-cvs@xxxxxxxxxxxxx
> > Subject: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) /
> zend_compile.c
> >
> >
> > iliaa Fri Oct 20 02:44:02 2006 UTC
> >
> > Modified files: (Branch: PHP_5_2)
> > /ZendEngine2 zend_compile.c
> > Log:
> > Make use of abstract methods be E_STRICT rather then E_ERROR
> >
> >
> > http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.
> 647.2.27.2.19&r2=1.647.2.27.2.20&diff_format=u
> Index: ZendEngine2/zend_compile.c
> diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.19
> ZendEngine2/zend_compile.c:1.647.2.27.2.20
> --- ZendEngine2/zend_compile.c:1.647.2.27.2.19 Tue Oct
> 3 11:10:33 2006
> +++ ZendEngine2/zend_compile.c Fri Oct 20 02:44:02 2006
> @@ -17,7 +17,7 @@
>
> +-------------------------------------------------------------
> ---------+
> */
>
> -/* $Id: zend_compile.c,v 1.647.2.27.2.19 2006/10/03 11:10:33
> dmitry Exp $ */
> +/* $Id: zend_compile.c,v 1.647.2.27.2.20 2006/10/20 02:44:02
> iliaa Exp
> +$ */
>
> #include <zend_language_parser.h>
> #include "zend.h"
> @@ -1080,7 +1080,7 @@
> fn_flags = 0;
> }
> if ((fn_flags & ZEND_ACC_STATIC) && (fn_flags &
> ZEND_ACC_ABSTRACT) && !(CG(active_class_entry)->ce_flags &
> ZEND_ACC_INTERFACE)) {
> - zend_error(E_COMPILE_ERROR, "Static function
> %s%s%s() cannot
> be abstract", is_method ? CG(active_class_entry)->name : "",
> is_method ?
> "::" : "", Z_STRVAL(function_name->u.constant));
> + zend_error(E_STRICT, "Static function %s%s%s()
> should not be
>
> +abstract", is_method ? CG(active_class_entry)->name : "",
> is_method ? "::"
> : "", Z_STRVAL(function_name->u.constant));
> }
>
> function_token->u.op_array = CG(active_op_array);
>
> --
> Zend Engine CVS Mailing List (http://cvs.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
>
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|