Re: Recap - Core functions throwing exceptions in PHP7

From: Date: Thu, 06 Aug 2015 08:52:05 +0000
Subject: Re: Recap - Core functions throwing exceptions in PHP7
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-87665@lists.php.net to get a copy of this message
Scott, could you setup a RFC with a vote, so we can decide? Nikita proposed those two options: 1) Error is to be used in cases where an error is attributable to > programmer mistake. > 2) Error signifies a failure condition that the programmer is discouraged > (and unlikely to want) to handle. It should only be dealt with at the top > level. I'm in favor of 2), I would phrase it like: Error should be used if a repetitive call with the same input parameters would _permanently_ result in a failure, otherwise Exception. Regards, Niklas

« previous php.internals (#87665) next »