Category: PHP, PHP

quietly, patiently, for you to do something reasonable like trying to upgrade the project to a newer version of PHP.

And of all my favorite deprecated functions to run into when evaluating old projects for a conversion to the newest version of PHP, there’s nothing quite like “magic quotes.”

When this directive is enabled it adds slashes to quotes (and a few other things, as mentioned above) in the assumption that it’s helpfully preventing a possible SQL injection attack.

OK, for the sake of argument, let’s assume somehow that a string is passed in that DID contain an SQL injection attempt, and that magic quotes has saved the day.

In other words: PHPMailer doesn’t depend on magic quotes, and this error being thrown into the logs is because they did their jobs correctly.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners