Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

From: Date: Tue, 17 Feb 2004 09:57:02 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7913@lists.php.net to get a copy of this message
== Quote from Marcus Boerger (helly@php.net)'s article > No those are read access members to private property members. When you lok > at the exception class: > php -r 'reflection_class::export("exception");' > then you'll encounter that you can overload __toString() and the > __construct(). Or in other words you should use 'print $e' or '(string)$e' > or '$e->__toString()'. If we can only overload __toString() to have different information displayed (not presentation, but information), the class will be inconsistent. Moreover, if the exception is not caught, PHP will display it using the Exception's members, not the overloaded __toString(). Stephane

« previous php.internals (#7913) next »