523
you are viewing a single comment's thread
view the rest of the comments
[-] dan@upvote.au 4 points 9 months ago* (last edited 9 months ago)

Blame MySQL for that. The PHP API just mirrors the MySQL C API of the same name. https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-escape-string.html

Modern PHP doesn't use it - any modern code uses PDO with prepared statements.

this post was submitted on 02 Mar 2024
523 points (93.9% liked)

Programmer Humor

19804 readers
937 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS