|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-07-15 12:00 UTC] suconghou at gmail dot com
Description: ------------ as the https://www.php.net/manual/en/pdostatement.execute.php say, An array of values with as many elements as there are bound parameters in the SQL statement being executed. All values are treated as PDO::PARAM_STR. why not auto detect string and int and others , and set PDO::PARAM_STR and PARAM_INT ... is it difficult ? why we leave it alone for years, I don't know why , we can do fix these small issue to make php better. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
the most use case was prepare('where id = ?') and execute([1]) but got sql. where id = '1' not where id = 1 why the latter case was not safer than the former .