Re: __toString() and exceptions
| From: | Sebastian | Date: | Wed, 28 May 2008 19:45:32 +0000 |
| Subject: | Re: __toString() and exceptions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37982@lists.php.net to get a copy of this message | ||
Hi,
thank you, first of all because this was the first link to Zend Weekly News
that worked. ;-)
then to the real thing: i already thougt that such an answer was abroad. i
know that the zend engine has actually never been written to work with
exceptions. altought the zend engine 2 has great new features its "just" an
rewrite of version 1. alas, an exception is a direct break of code
execution, so i actually cant understand the limitations. it should at least
go to next years "summer of code" of google. would be interesting.
thanks.
Sebastian
""Guilherme Blanco"" <guilhermeblanco@gmail.com> schrieb im Newsbeitrag
news:bcb7aa500805281226gdd63d2jd355cbc6da90856@mail.gmail.com...
> Hi Sebastian,
>
>
> This is known and I already asked this quite some time ago.
> Here is the summary of what have I asked here:
>
> http://devzone.zend.com/article/2016-Zend-Weekly-Summaries-Issue-336#Heading6
>
>
> Regards,
>
> On Wed, May 28, 2008 at 3:17 PM, Sebastian <admin@ifyouwantblood.de>
> wrote:
>> Hi,
>>
>> i just found it's really annoying that you can't throw exception in the
>> context of __toString(). This makes it nealy impossible to work with
>> __toString() because you'll have to watch not to throw exceptions (which
>> is
>> even more annoying..). Could this be adressed?
>>
>> Greetings
>>
>>
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: guilhermeblanco@hotmail.com
> URL: http://blog.bisna.com
> Rio de Janeiro - RJ/Brazil