__toString() exception

alex77

Новичок
Здравствуйте.

Вопрос скорее теоретический.
Почему сделано так, что нельзя вбросить исключение в методе __toString() ?
 

Вурдалак

Продвинутый новичок
http://devzone.zend.com/930/zend-weekly-summaries-issue-336/
Johannes explained that there is no way to ensure that an exception thrown
during a cast to string would be handled correctly by the Zend Engine, and
that this won’t change unless large parts of the Engine are rewritten.
Теоретических проблем (например, аналогично тому, что есть с __destruct), насколько я понимаю, нет.
 
Сверху