Re: [RFC][VOTE] Throwable error code's type generalization

From: Date: Fri, 06 Jan 2017 17:27:13 +0000
Subject: Re: [RFC][VOTE] Throwable error code's type generalization
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-97534@lists.php.net to get a copy of this message
Hi Marco \o, linking to the discussion thread http://externals.io/thread/573 because I don't have much more to add. I think the throwable's code is almost never used regardless, but this could give users more opportunities to do something useful with it as Niklas stated in previous thread. Changing PDO errors to be int is an option, too, but I don't see that happening, not even in a major version. It would be a huge non-bc change for very very little improvement... This instead could open up to new uses for the property, that again is barely used these days, while also fixing the PDO inconsistency.

« previous php.internals (#97534) next »