News for hackers. Stuff that matters.
Re:Apple Developer Documentation Is Missing by not_a_cop75 on Monday October 28, 2019 @10:35AM (#21377351)
php, whether you like the language, or abhor it, has always had some of the most useful documentation, I've found.
Re:Apple Developer Documentation Is Missing by richardwhiuk on Monday October 28, 2019 @01:59PM (#21379639)
I disagree.

See Example 5 in https://www.php.net/manual/en/security.database.sql-injectio...

This is the recommended way to avoid SQL injection, using sprintf...

Re:Apple Developer Documentation Is Missing by jontro on Monday October 28, 2019 @04:20PM (#21381186)
The article states this as the second bullet point "Use prepared statements with bound variables."

Reading the page I actually think this is pretty good for being language documentation.

Re:Apple Developer Documentation Is Missing by wolco on Monday October 28, 2019 @04:05PM (#21381033)
So bad docs because they list a way you don't approve of? They do list a number of different ways. They could have used intval() for example 4 because I prefer it but it doesn't take away from the docs or make them bad.

Do you have a method that makes sprintf with d value invalid?