Re: Nullsafe
| From: | Christian Schneider | Date: | Wed, 04 Nov 2020 19:32:34 +0000 |
| Subject: | Re: Nullsafe | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112182@lists.php.net to get a copy of this message | ||
Am 04.11.2020 um 19:39 schrieb Eugene Sidelnyk <zsidelnik@gmail.com>:
> Thus, can you provide any other dangerous example?
I think at this point you could have realised that it is
a) a BC break (code which has thrown an exception before now wouldn't)
b) not finding any love among the community here. Possibly for a reason?
If you really want you could put an RFC together but I'm pretty sure that it wouldn't be
accepted.
And now for your dangerous example:
try {
$foo = null;
$foo->bar();
deletel_all_files_on_machine();
} catch (Error $dummy) {}
Regards,
- Chris