Re:80% of the Web Powered by PHP (2017)
by creeble on Friday March 22, 2019 @10:52AM
(#19463059)
Why couldn't the mysql_ library just have added prepared queries? I've never understood this (not a PHP programmer, just someone who has had to patch a dozen sites that were suddenly broken once).
[ Parent
| on HN ]
MySQL libraries are extensions.
The mysqli library was likely a full rewrite in another extension. Extensions, at least that kind, at that time, didn't use/have namespaces.
Keep in mind this is a legacy code base with a function called mysql_real_escape string, like if you're at that point you're so far past gone you've lost all hope.
> like if you're at that point you're so far past gone you've lost all hope.
for a 25 year library, thats not at all too bad. And even PHP developers admit that the lib was "not broken"