Re: poll: howto do informative error handling without the fatalities

From: Date: Tue, 09 Feb 2010 06:22:05 +0000
Subject: Re: poll: howto do informative error handling without the fatalities
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-301897@lists.php.net to get a copy of this message
I would also like to hear suggestions on how to fix this mess: $r = funcA ( funcB ( funcC ( $p ) ) ); if funcB() / funcC() fails, how would you fudge/abort the calling function in the chain? One may think that funcA and funcB just check their parameters list for being "error" arrays, but the problem i foresee is that depending on the context of the $r= call, desired behaviour may vary at any stage in the funcA -> funcB -> funcC chain.

« previous php.general (#301897) next »