Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109492 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82604 invoked from network); 1 Apr 2020 08:52:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Apr 2020 08:52:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C11B91804C4 for ; Wed, 1 Apr 2020 00:18:46 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from box.beccati.com (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 1 Apr 2020 00:18:45 -0700 (PDT) Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id 0BE092002E2; Wed, 1 Apr 2020 09:18:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1585725524; bh=eyWKYACYq3ukfl5BMOYSd3XlTRQ1rmKZtYQnCSdIdtk=; h=Subject:To:References:From:Date:In-Reply-To:From; b=oGFaEuYUAkC7JoQOf7cNJRDCtZ7FLnxj8e0o2iKejTnPRTM+bLNEPzRCUeBsv+tHy FAIE/W35BShkYN3HXWZye+fTyMvD8oAs9YXL45qWjlxQHUl62uegICBlzXvrmOr6UF VG4AmUo/qpS4M0KY64ALIu6aXaV3v03RY2gjXcDVsmyBJ1Ex/sI2N7IGPvpFwXOF4U BtzXojcKnoiYayipeso77IluF88j94TE5KXFVSp/Y7MSv9zXZgW9XP8PfppfZVy77x 1mLIUtKCVJRtk0DvdezyP168ZHHx6pMb0H75EDatR2q/8egX1oGYBHYDKopLZlFtG7 5+NRUKFMJ+zKg== To: AllenJB , "internals@lists.php.net" References: <2e6a4b99-bd78-657f-dbca-bad312858691@allenjb.me.uk> Message-ID: <9db751b3-0d93-aa38-b755-82dde133c879@beccati.com> Date: Wed, 1 Apr 2020 09:18:40 +0200 MIME-Version: 1.0 In-Reply-To: <2e6a4b99-bd78-657f-dbca-bad312858691@allenjb.me.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Change default PDO error mode From: php@beccati.com (Matteo Beccati) Hi Allen, +1 from me. If you need some help with the implementation, pls let me know. Cheers On 28/03/2020 20:02, AllenJB wrote: > Hi, > > I present for discussion an RFC to change the default PDO error mode: > > https://wiki.php.net/rfc/pdo_default_errmode > > Previous discussion: https://externals.io/message/109015 > > I believe this change will help new developers who are presently > presented only with knock-on errors, which can be confusing, when using > PDO unless they implement "boilerplate" error handling every time a > query is made. > > I believe it also brings the behavior inline with what developers would > actually expect the default to be in modern PHP. > > Regards, > > AllenJB > -- Matteo Beccati Development & Consulting - http://www.beccati.com/