Bug #81310 [NEW]: Clarify UPGRADING entry (bug?)
| From: | alec@php.net | Date: | Thu, 29 Jul 2021 17:37:33 +0000 |
| Subject: | Bug #81310 [NEW]: Clarify UPGRADING entry (bug?) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235462@lists.php.net to get a copy of this message | ||
From: alec
Operating system:
PHP version: 8.1.0beta1
Package: PDO MySQL
Bug Type: Bug
Bug description:Clarify UPGRADING entry (bug?)
Description:
------------
In UPGRADING there's this:
"
- PDO MySQL:
. Integers and floats in result sets will now be returned using native
PHP
types instead of strings when using emulated prepared statements.
This
matches the behavior of native prepared statements. You can restore
the
previous behavior by enabling the PDO::ATTR_STRINGIFY_FETCHES
option.
"
In my code I don't use prepare()/execute(), nor
PDO::ATTR_EMULATE_PREPARES. All I use is query()/fetch(). However, I
noticed that I started getting integers instead of strings now.
So, is that a bug? Maybe query() uses prepared queries internally. But
then maybe it should be clarified, that it has really nothing to do with
prepared statements mode.
--
Edit bug report at https://bugs.php.net/bug.php?id=81310&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81310&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81310&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81310&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81310&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81310&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81310&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81310&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81310&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81310&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81310&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81310&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81310&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81310&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81310&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81310&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81310&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81310&r=mysqlcfg