Req #81260 [NEW]: PDOStatement::execute(array $params)
| From: | suconghou at gmail dot com | Date: | Thu, 15 Jul 2021 12:00:22 +0000 |
| Subject: | Req #81260 [NEW]: PDOStatement::execute(array $params) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235050@lists.php.net to get a copy of this message | ||
From: suconghou at gmail dot com
Operating system: mac
PHP version: 7.3.29
Package: PDO MySQL
Bug Type: Feature/Change Request
Bug description:PDOStatement::execute(array $params)
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=81260&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81260&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81260&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81260&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81260&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81260&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81260&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81260&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81260&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81260&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81260&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81260&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81260&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81260&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81260&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81260&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81260&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81260&r=mysqlcfg