Re: #45989

From: Date: Tue, 02 Dec 2008 13:44:52 +0000
Subject: Re: #45989
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-64540@lists.php.net to get a copy of this message
Hi till I looked at this test and the associated bug. It's not clear to me that this is a bug, so I don't think I can commit the test. I'm copying Iliaa, I note that he was asked to re-open the bug and if he does so I'd be happy to commit the test. Thanks, Zoe
Hey, I ran into a couple inconsistencies in json_decode() today. I found #45989[1] and noticed it had been bogus'd. The docs suggest[2] that json_decode() returns NULL if invalid JSON is fed into it and since the examples provided on the bug report all show up as invalid on jsonlint[3], I figured I could give it a try and write a test: http://friendpaste.com/jvxjF7N8 It's rather trivial, let me know what you think. Cheers, Till [1]: http://bugs.php.net/bug.php?id=45989 [2]: http://us.php.net/json_decode (see, Example #3) [3]: http://jsonlint.com/


« previous php.qa (#64540) next »