Re: Fix the inconsistent behavior of PDO::PARAM_XXX
| From: | Saki Takamachi | Date: | Sat, 04 Nov 2023 12:43:55 +0000 |
| Subject: | Re: Fix the inconsistent behavior of PDO::PARAM_XXX | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121582@lists.php.net to get a copy of this message | ||
Hi Kentaro,
The case you presented certainly confuses us very much. Although it is outside the scope of this
discussion, it certainly seems like it would be better to improve it from a safety perspective.
BOOL probably has the most problems; for example, when you pass str, the boolean value will be false
only in sqlite. This happens because str is converted to long and then to bool.
At least for this kind of behavior, I don't think it's necessary to maintain
compatibility.
Regards.
Saki