TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PHP JSON removed in PHP 5.5

28 点作者 envex将近 12 年前

10 条评论

ealexhudson将近 12 年前
I don&#x27;t think the title is correct: JSON being pulled is not mentioned in <a href="http://php.net/manual/en/migration55.changes.php" rel="nofollow">http:&#x2F;&#x2F;php.net&#x2F;manual&#x2F;en&#x2F;migration55.changes.php</a><p>It is probably the case that in common Linux distributions, the build of PHP has the relevant functionality removed, as the license does obviously conflict.<p>It&#x27;s a shame that only IBM gets dispensation to do evil :(
评论 #6239310 未加载
meritt将近 12 年前
This all boils down to Crockford being intentionally annoying about the licensing.<p>Video here: <a href="https://www.youtube.com/watch?v=-hCimLnIsDA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-hCimLnIsDA</a>
评论 #6239801 未加载
评论 #6240696 未加载
krob将近 12 年前
I call B.S. No way they are removing json_encode&#x2F;json_decode from php. That would essentially be removing an extremely high-volume method from the php stack.
评论 #6239471 未加载
评论 #6239617 未加载
pilif将近 12 年前
I&#x27;m seriously torn about this. On one hand, of course, Debian is kind of right in their assessment and strictly speaking, the JSON extension and with that the PHP package is not entirely free software.<p>On the other hand, the risk of anything bad coming out of shipping code with this license (evil people will have no qualms violating the license :-) ) is very close to zero. However, the risk of people being seriously pissed off at the next version of Debian (or Ubuntu) breaking all their web applications is really high.<p>Yes, an alternate extension is starting to exist, but it might either work subtly differently from the built-in one (you know, bugs exist and people might depend upon them), or worse, might have security flaws remaining undiscovered due to fewer eyes reviewing the much smaller in scope extension.<p>This is not just bad for users, but also for developers of libraries who now have to take extra care to support the other extension.<p>It&#x27;s ridiculous to having to go through all this trouble for some evil people to be able to use Debian :-)<p>Thank god I moved to packaging and deploying our own PHP for our application. Having to deal with a non-standard JSON extension for no reason but politics and lack of pragmatism would piss me off endlessly.<p>That all said and after having vented my frustration: I still see where Debian is coming from and I can also kind of understand their decision. Of course it still pisses me off, but I can understand it.<p>Maybe Debian (and by extension Ubuntu) just isn&#x27;t the right distro for me. Though seeing that the replacement extension is made by a Fedora developer, I seem to be running out of options :-)
评论 #6239631 未加载
swang将近 12 年前
Short summary, JSON is not removed from PHP. Some distros of Linux (specifically mentioned were Mandriva&#x2F;Fedora&#x2F;Debian) have replaced the version written by Crockford with another alternative: jsonc
dasil003将近 12 年前
404 link is quite the coincidence.
评论 #6239365 未加载
eksith将近 12 年前
Apparently the reason for this is the &quot;Software shall be used for good&quot; clause in the license, but I believe IBM obtained a special exemption that it may be used for evil as well.<p>Surely, the PHP folks can acquire a similar variation?
评论 #6239384 未加载
评论 #6239400 未加载
lsh123将近 12 年前
Reading the comments to the PHP bug, I find it funny that &quot;The Software shall be used for Good, not Evil.&quot; license clause was <i>not</i> approved by Google :) :) :)
Achshar将近 12 年前
The link is 404 so In layman terms, unless some other extension comes up with exact same function names, my json_encode&#x2F;json_decode will stop working in 5.5? fuck.
评论 #6239836 未加载
senekisa将近 12 年前
404 link :&#x2F;