Re: [PHP-DEV] Changing the default PDO error mode

2020-03-21 Thread AllenJB
On 19/03/2020 12:25, Christian Schneider wrote: Am 19.03.2020 um 10:31 schrieb Matteo Beccati : I agree defaulting to PDO::ERRMODE_EXCEPTION is a sensible change for PHP8. I think this should go through a deprecation phase first as it is a BC break, no matter how easy to fix you think it is.

Re: [PHP-DEV] Changing the default PDO error mode

2020-03-19 Thread Christoph M. Becker
On 19.03.2020 at 13:25, Christian Schneider wrote: > Am 19.03.2020 um 10:31 schrieb Matteo Beccati : > >> On 14/03/2020 22:10, Larry Garfield wrote: >> What do you think the new default be (and why)? (I am aware this change will likely require an RFC) AllenJB >>> >>> I see

Re: [PHP-DEV] Changing the default PDO error mode

2020-03-19 Thread Christian Schneider
Am 19.03.2020 um 10:31 schrieb Matteo Beccati : > On 14/03/2020 22:10, Larry Garfield wrote: >>> What do you think the new default be (and why)? >>> >>> (I am aware this change will likely require an RFC) >>> >>> AllenJB >> >> I see only two options: >> >> 1) Do nothing. >> >> 2) Move to Excep

Re: [PHP-DEV] Changing the default PDO error mode

2020-03-19 Thread Matteo Beccati
Hi, On 14/03/2020 22:10, Larry Garfield wrote: >> What do you think the new default be (and why)? >> >> (I am aware this change will likely require an RFC) >> >> AllenJB > > I see only two options: > > 1) Do nothing. > > 2) Move to Exceptions. > > I've never used PDO and not set it to Exceptio

Re: [PHP-DEV] Changing the default PDO error mode

2020-03-14 Thread G. P. B.
On Sat, 14 Mar 2020 at 22:10, Larry Garfield wrote: > On Sat, Mar 14, 2020, at 10:40 AM, AllenJB wrote: > > Hi all, > > > > A regular problem that new users run into is error handling with PDO. > > The current default error mode for PDO is "silent". This leads to the > > situation where code does

Re: [PHP-DEV] Changing the default PDO error mode

2020-03-14 Thread Larry Garfield
On Sat, Mar 14, 2020, at 10:40 AM, AllenJB wrote: > Hi all, > > A regular problem that new users run into is error handling with PDO. > The current default error mode for PDO is "silent". This leads to the > situation where code doesn't work and returns no obvious errors unless > PDO specific e