RFC Proposal

From: Date: Fri, 10 Aug 2018 20:15:31 +0000
Subject: RFC Proposal
Groups: php.internals 
Request: Send a blank email to internals+get-103077@lists.php.net to get a copy of this message
I'm measuring reaction for an RFC Essentially right now preg regex's fail silently - and you have to actually check them manually with preg_last_error - something I've never actually seen done in code. see: https://github.com/php/php-src/pull/2910 https://bugs.php.net/bug.php?id=70110 https://bugs.exim.org/show_bug.cgi?id=1663 I'd like to propose that, in line with the recent JSON changes, the preg methods be made to throw exceptions (or at the very least - warnings) rather than fail silently as I believe this is a bad behaviour. I personally do not have the low level coding knowledge needed to do this, nor do I personally know anyone who does, so I would be submitting this as a "concept" Thank you ahead of time! This will be my first RFC submission, so I hope I'm doing this right.

« previous php.internals (#103077) next »