Re: Don't silence fatal errors
| From: | Christian Schneider | Date: | Thu, 07 Feb 2019 13:43:35 +0000 |
| Subject: | Re: Don't silence fatal errors | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104290@lists.php.net to get a copy of this message | ||
Am 07.02.2019 um 14:28 schrieb Rowan Collins <rowan.collins@gmail.com>:
> On 7 February 2019 11:19:46 GMT+00:00, Benjamin Morel <benjamin.morel@gmail.com> wrote:
>> Also, some applications might assume that the directory does not already
>> exist, and want to fail if it does. So both use cases must be available in the API.
mkdir("foo") or fail();
> I absolutely agree, but I also agree that the task here is not "convert warnings to
> exceptions", it's "design a new I/O API".
Agreed.
Please don't try to mutate an existing API into something it is not designed for while
introducing BC headaches in the process.
- Chris