On Fri, 2003-05-23 at 18:00, Per Lundberg wrote:
> I think this patch is bad. It distorts the control flow of a normal
> program. Calling member functions on a non-object is a serious error,
> so the only real option IMO is dying, or throwing an exception.
The patch might not be the right way to implement it. Calling a member
function on null happens from time to time, when programmers don't check
the return value of a library call. In a production environment it is
bad, not having the option to handle the error, therefore it is bad to
just die. Throwing an exception might be a nicer way, but isn't that
future?
Best regards,
Morten
--
Morten Poulsen <morten+php@afdelingp.dk>