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. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php