note 98971 deleted from function.json-decode by googleguy
| From: | googleguy@php.net | Date: | Fri, 14 Jun 2013 10:03:30 +0000 |
| Subject: | note 98971 deleted from function.json-decode by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195209@lists.php.net to get a copy of this message | ||
Note Submitter: zgardner at allofe dot com
----
There seems to be a difference in the way json_decode works between 5.2.9 and 5.2.6. Trying to run
json_decode on a URL in 5.2.6 will return the URL, but in 5.2.9 it will return NULL.
5.2.6
var_dump(json_decode("http://www.php.net")); //
Displays string(18) "http://www.php.net"
5.2.9
var_dump(json_decode("http://www.php.net")); //
Displays NULL
The servers I tested it on both had json version 1.2.1.