Re: [RFC] Raise warnings for json_encode() and json_decode() issues

From: Date: Fri, 28 Jul 2017 11:46:27 +0000
Subject: Re: [RFC] Raise warnings for json_encode() and json_decode() issues
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-100078@lists.php.net to get a copy of this message
Hi, On Fri, Jul 28, 2017 at 2:39 PM, Jakub Zelenka <bukka@php.net> wrote: > On Fri, Jul 28, 2017 at 12:23 PM, Craig Duncan <php@duncanc.co.uk> wrote: > >> Hi Nikita, >> >> Thanks for your input. Would you vote yes for throwing an exception? >> >> > Just to clarify exceptions are no go for 7.x. It would have to be 8.x and > it would be a huge BC break so I'm quite confident that this will fail the > vote! This is a long shot, but here's an idea: an OOP API throwing exceptions. Would require more work both to implement and use, but it would surely be less error-prone and there'd be no BC break. Cheers, Andrey.

« previous php.internals (#100078) next »