Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104290 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54866 invoked from network); 7 Feb 2019 17:01:57 -0000 Received: from unknown (HELO mail.gna.ch) (62.12.172.119) by pb1.pair.com with SMTP; 7 Feb 2019 17:01:57 -0000 Received: from [IPv6:2001:918:ff83:101:71c8:495a:1fa6:eb66] (unknown [IPv6:2001:918:ff83:101:71c8:495a:1fa6:eb66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id C75B420F91; Thu, 7 Feb 2019 14:43:35 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) In-Reply-To: <67F91637-CCB0-4FB2-8D6B-423230070AD1@gmail.com> Date: Thu, 7 Feb 2019 14:43:35 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <1A34B5CA-B3A8-4B61-A6E5-6B921B3EB961@cschneid.com> References: <38CCB7C0-C97D-41F1-8EB7-BA5FE8FD01F5@cschneid.com> <67F91637-CCB0-4FB2-8D6B-423230070AD1@gmail.com> To: Rowan Collins X-Mailer: Apple Mail (2.3445.102.3) Subject: Re: [PHP-DEV] Don't silence fatal errors From: cschneid@cschneid.com (Christian Schneider) Am 07.02.2019 um 14:28 schrieb Rowan Collins : > On 7 February 2019 11:19:46 GMT+00:00, Benjamin Morel = 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