Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend.h zend_API.c zend_builtin_functions.c zend_compile.c zend_execute_API.c zend_object_handlers.c
/tests bug43128.phpt php-src NEWS
| From: | Marcus Boerger | Date: | Sat, 16 Feb 2008 10:08:05 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend.h zend_API.c zend_builtin_functions.c zend_compile.c zend_execute_API.c zend_object_handlers.c /tests bug43128.phpt php-src NEWS |
||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-6417@lists.php.net to get a copy of this message | ||
Hello Stanislav,
to me the questions are more like:
a) Do we really need unlimited function/method/const/variable names?
b) Would it not be much better to limit those and get rid of the additional
overhead
c) Is it safe to use something that is marked as dangerous?
marcus
In case my opinion is not clear. My take is that we limit the length and go
with alloca and drop the overhead.
Saturday, February 16, 2008, 1:27:36 AM, you wrote:
> Hi!
>> well in this case as well as in most other cases we deal with unrestricted
>> lengths. So adding an additional complexity does not seem very good imo.
> It is important to understand the difference between potentially
> unlimited length - which can come from malicious or very rare
> exceptional input - and 99.9% of regular cases where the input is very
> short. The improvement we get on those frequent cases covers for extra
> check to accomodate the very infrequent case of the long string.
> --
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com http://www.zend.com/
> (408)253-8829 MSN: stas@zend.com
Best regards,
Marcus