TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PHP – An Annoying Tryst

3 pointsby prahladyerialmost 11 years ago

3 comments

wldlyinaccuratealmost 11 years ago
This essentially boils down to the fact that your development environment and production environment were running completely different software. This isn&#x27;t a PHP-specific problem.<p>&gt; the designers’ strategy to break code compatibility between PHP versions only for aesthetic reasons (array(a,b,c) vs [a, b, c]) is bound to lose the confidence of its users sooner or later.<p>This is not a backwards-compatibility issue. You used features which were introduced in 5.4, and expected them to work in 5.3.
评论 #7964359 未加载
kostkoalmost 11 years ago
Okay why are we still being worked up by simple things such as array initialization ? [] vs Array() ? I don&#x27;t see what code you&#x27;re writing and how fast, that this shorthand comes into effect and makes any difference to you?
评论 #7964382 未加载
abhinavkalmost 11 years ago
If something introduced in newer version doesn&#x27;t run in the older, how it&#x27;s breaking backward compatibility? It would&#x27;ve been if the PHP5.3 version of your code didn&#x27;t work in 5.4.