Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An article is not obsolete just because it's 12 years old. Honestly, in PHP's case, I don't think there's much you can say about it 12 years ago that isn't still true.


Almost nothing in that article is true for modern versions of PHP. It's definitely obsolete.


> That article is not obsolete just because it's 12 years old. Honestly, in PHP's case, there's not much you can say about it 12 years ago that isn't still true.

The very first specific thing mentioned in the article is "mysql_real_escape_string".

The mysql_ extension was deprecated in PHP 5.5.0 (released on 20 June 2013) and fully removed in PHP 7.0.0 (released on 3 December 2015).


12 years ago (2012), the latest PHP version was 5.4. The current version is 8.4.

The language has made major changes to both syntax and functionality.


Eh. On its own that means nothing, the other commenters make better points.


I'm not going to bother explaining something that can be found easily on Google.


It's obsolete because most of it is no longer correct.

I'm not going to bother rebuting all of it, those who really want to educate themselves can use Algolia search for the link and find great comments.

But from a quick glance of the start, the article cites "mysql_real_escape_string()". That function has been deprecated 11 years ago. And removed 8 years ago.

https://www.php.net/manual/en/function.mysql-real-escape-str...


I've searched Algolia; the comments in the original 2012 thread are mostly "yeah, it's roughly accurate and PHP sucks", the ones from 2014 and onwards are mostly "it's all lies, PHP has come long way and fixed lots of things" but with no specific examples except for that "mysql_real_escape_string()". Surely there were other improvements that could merit a mention?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: