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.

Ask HN: Nine years after, how much of this is still true about PHP?

9 pointsby p5vabout 4 years ago
https:&#x2F;&#x2F;eev.ee&#x2F;blog&#x2F;2012&#x2F;04&#x2F;09&#x2F;php-a-fractal-of-bad-design&#x2F;<p>Until a few days ago, I hadn&#x27;t touched PHP for nearly 10 years. I was surprised to see so many new things. There is no doubt that its ecosystem is still massive and will continue to be so for decades ahead. What I am wondering though, is whether some of the old &quot;ghosts&quot; plaguing the language have been removed or replaced with something better. Anyone experienced enough to comment on that?

5 comments

mikeoddsabout 4 years ago
I’ve been developing in PHP and exploiting apps written in PHP for over ten years.<p>A lot of the insecure by default functionality and footgun functions have been deprecated or removed in the latest versions.<p>Most of the modern frameworks e.g Laravel et al also have abstractions that protect you around a lot of the functionality where long hanging vulnerabilities used to lie. It’s rarer to find things like XSS, SQL inj, file inclusion vulns.<p>Type comparison will still do crazy things if you aren’t strict, but they have introduced typed properties in php 7.4.<p>A double edged sword is that a lot of modern development relies on package managers like composer, which means you can be exposed to security issues through the sheer number of dependencies pulled in to some of these frameworks.
ta4545544545about 4 years ago
It&#x27;s horrible, like Perl. Learn a better language, or multiples.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=xoQ7De-_OBs" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=xoQ7De-_OBs</a> <a href="https:&#x2F;&#x2F;crystal-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crystal-lang.org&#x2F;</a> <a href="https:&#x2F;&#x2F;www.ruby-lang.org&#x2F;en&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.ruby-lang.org&#x2F;en&#x2F;</a>
bwh2about 4 years ago
Many things have been deprecated formally. If not formally, they&#x27;ve been phased out culturally - as in I haven&#x27;t seen a lot of this syntax complaints in 10 years.
aristofunabout 4 years ago
The main issue with PHP is not PHP. But an army of bad coders pretending to be engineers.<p>You can’t solve this problem by improving the infra.<p>This is the reason why php is a dead end in the long run.
shivenigmaabout 4 years ago
These things have been deprecated from and removed. PHP 7+ is really matured and took a different direction and now is a matured, great language IMO.