Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c
| From: | (Marcus B�rger) | Date: | Fri, 04 Jul 2003 17:16:14 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-1459@lists.php.net to get a copy of this message | ||
Hello Andi,
Friday, July 4, 2003, 1:43:32 AM, you wrote:
AG> I think we should live without it.
your answer is a bit unclear. I hope it does mean without the 'purity' error
test ?
regards
marcus
AG> At 04:45 PM 3/7/2003 +0000, Marcus Boerger wrote:
>>helly Thu Jul 3 12:45:35 2003 EDT
>>
>> Modified files:
>> /ZendEngine2 zend_compile.c
>> Log:
>> Allow final private methods
>> #
>> # Declaring a method private and final would only be an error for an
>> abstract
>> # class. But at the moment the method is defined and it's modifiers are
>> checked
>> # we do not know whether or not we have an abstract class. It could
>> already be
>> # abstract but it also become abstract later.
>> #
>> # Since i made the mistake in first place i remove the check now.
>> #
>> # Providing the correct test would slow down the compiler becuase we'd
>> have to
>> # iterate through all methods on all abstract classes and check for
>> this. I
>> # guess we can live without. Or does anybody wants this to be implemented ?
>>
>>
>>Index: ZendEngine2/zend_compile.c
>>diff -u ZendEngine2/zend_compile.c:1.433 ZendEngine2/zend_compile.c:1.434
>>--- ZendEngine2/zend_compile.c:1.433 Thu Jul 3 08:03:11 2003
>>+++ ZendEngine2/zend_compile.c Thu Jul 3 12:45:35 2003
>>@@ -17,7 +17,7 @@
>> +----------------------------------------------------------------------+
>> */
>>
>>-/* $Id: zend_compile.c,v 1.433 2003/07/03 12:03:11 stas Exp $ */
>>+/* $Id: zend_compile.c,v 1.434 2003/07/03 16:45:35 helly Exp $ */
>>
>> #include "zend_language_parser.h"
>> #include "zend.h"
>>@@ -965,9 +965,6 @@
>> }
>> if (((current_access_type->u.constant.value.lval |
>> new_modifier->u.constant.value.lval) & (ZEND_ACC_ABSTRACT |
>> ZEND_ACC_FINAL)) == (ZEND_ACC_ABSTRACT | ZEND_ACC_FINAL)) {
>> zend_error(E_COMPILE_ERROR, "Cannot use the final
>> modifier on an abstract class member");
>>- }
>>- if (((current_access_type->u.constant.value.lval |
>>new_modifier->u.constant.value.lval) & (ZEND_ACC_PRIVATE |
>>ZEND_ACC_FINAL)) == (ZEND_ACC_PRIVATE | ZEND_ACC_FINAL)) {
>>- zend_error(E_COMPILE_ERROR, "Cannot use the final modifier
>>on a private class member");
>> }
>> return (current_access_type->u.constant.value.lval |
>> new_modifier->u.constant.value.lval);
>> }
>>
>>
>>
>>--
>>Zend Engine CVS Mailing List (http://cvs.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
--
Best regards,
Marcus mailto:helly@php.net