<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：无意中发现php的json_decode有bug</title>
	<atom:link href="http://blog.51yip.com/php/934.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.51yip.com/php/934.html</link>
	<description>－－一步，二步，三步，N步，二行脚印</description>
	<lastBuildDate>Tue, 07 Jun 2022 01:26:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：荒野无灯</title>
		<link>http://blog.51yip.com/php/934.html/comment-page-1#comment-17754</link>
		<dc:creator>荒野无灯</dc:creator>
		<pubDate>Fri, 04 May 2018 07:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=934#comment-17754</guid>
		<description>前提是：你的json 是 valid json. 在你的json不是json的情况下，json_decode 出错，是正确的结果。

Results
Error: Parse error on line 11:
...,		&quot;PRODUCT_CODE&quot;: 016500	}],	&quot;shaded
----------------------^
Expecting &#039;STRING&#039;, &#039;NUMBER&#039;, &#039;NULL&#039;, &#039;TRUE&#039;, &#039;FALSE&#039;, &#039;{&#039;, &#039;[&#039;, got &#039;undefined&#039;

https://jsonlint.com/</description>
		<content:encoded><![CDATA[<p>前提是：你的json 是 valid json. 在你的json不是json的情况下，json_decode 出错，是正确的结果。</p>
<p>Results<br />
Error: Parse error on line 11:<br />
...,		"PRODUCT_CODE": 016500	}],	"shaded<br />
----------------------^<br />
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'</p>
<p><a href="https://jsonlint.com/" rel="nofollow">https://jsonlint.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：CHEN</title>
		<link>http://blog.51yip.com/php/934.html/comment-page-1#comment-17549</link>
		<dc:creator>CHEN</dc:creator>
		<pubDate>Tue, 27 Dec 2016 08:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=934#comment-17549</guid>
		<description>不是PHP 的bug，json是有类型的，
不用引号就默认作为number或者null处理了
你可以把这段json放到任何一个json验证的网站，都验证失败的
json.cn
bejson.com
tool.lu/json/

等等</description>
		<content:encoded><![CDATA[<p>不是PHP 的bug，json是有类型的，<br />
不用引号就默认作为number或者null处理了<br />
你可以把这段json放到任何一个json验证的网站，都验证失败的<br />
json.cn<br />
bejson.com<br />
tool.lu/json/</p>
<p>等等</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张映</title>
		<link>http://blog.51yip.com/php/934.html/comment-page-1#comment-17527</link>
		<dc:creator>张映</dc:creator>
		<pubDate>Fri, 18 Nov 2016 01:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=934#comment-17527</guid>
		<description>json是一种数据格式，不是什么语言。json不支持0开头的数字。</description>
		<content:encoded><![CDATA[<p>json是一种数据格式，不是什么语言。json不支持0开头的数字。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：asdf</title>
		<link>http://blog.51yip.com/php/934.html/comment-page-1#comment-17522</link>
		<dc:creator>asdf</dc:creator>
		<pubDate>Wed, 09 Nov 2016 07:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=934#comment-17522</guid>
		<description>json也算是一门语言，JSON语法没有规定0开头是数字这一说，这不是PHP的BUG，是你自己的问题， 不要大惊小怪。</description>
		<content:encoded><![CDATA[<p>json也算是一门语言，JSON语法没有规定0开头是数字这一说，这不是PHP的BUG，是你自己的问题， 不要大惊小怪。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
