Re: Throwing an Error for require expressions in PHP7.x
| From: | Alexander Deruwe | Date: | Fri, 17 Jun 2016 18:29:08 +0000 |
| Subject: | Re: Throwing an Error for require expressions in PHP7.x | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94089@lists.php.net to get a copy of this message | ||
On Fri, Jun 17, 2016 at 6:47 PM, Christoph Becker <cmbecker69@gmx.de> wrote:
>
> try {
> require $fileName;
> } catch (Error $e) {
> echo "Oops, maybe deleted? " . $e;
> }
> functionDefinedInFileName();
If anyone chooses to write this kind of code, then let them figure out
why their function is not defined. Who are we catering to here?
A.