Req #63356 [NEW]: Add support for native php data types returned from Firebird PDO select queries
| From: | james at kenjim dot com | Date: | Thu, 25 Oct 2012 08:11:17 +0000 |
| Subject: | Req #63356 [NEW]: Add support for native php data types returned from Firebird PDO select queries | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-174288@lists.php.net to get a copy of this message | ||
From: james at kenjim dot com
Operating system: All
PHP version: 5.4Git-2012-10-25 (Git)
Package: PDO related
Bug Type: Feature/Change Request
Bug description:Add support for native php data types returned from Firebird PDO select queries
Description:
------------
The data returned from a $rs->fetch() should use native data types when
applicable. Currently all data is turned into strings. Using native data
types will not only provide a way for the user to easily check the data
type. It should also give a performance enhancement since everything does
not need to be turned into a string. Some other database adapters already
provide this ability.
I have included a patch to add this functionality however I did have to
modify /ext/pdo/pdo_stmt.c due to the way it was handling returning of
zval's. It was expecting a ***zval when it really should of been a **zval.
Due to this excessive pointer requirement any other pdo database driver
that returns zval's will need to be fixed. I included in my patch a
possible fix for the mysqlng pdo driver since I believe this is the only
driver that uses it. I say possible fix because I have not tested the
mysqlng support part of it. The patch also includes my patch for Bug
#61183 - Firebird PDO memory corruption. It should also fix Bug #60052 -
Integer returned as a 64bit integer on X64_86. It also fixes the patch
that was improperly applied in Bug #47415 - PDO_Firebird segfaults when
passing lowercased column name to bindColumn().
--
Edit bug report at https://bugs.php.net/bug.php?id=63356&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63356&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63356&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63356&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63356&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63356&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63356&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63356&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63356&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63356&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63356&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63356&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63356&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63356&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63356&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63356&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63356&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63356&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63356&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63356&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63356&r=mysqlcfg