Req #72583 [Ver->Csd]: All data are fetched as strings

From: Date: Fri, 06 Jan 2017 17:47:54 +0000
Subject: Req #72583 [Ver->Csd]: All data are fetched as strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206327@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72583&edit=1 ID: 72583 Updated by: ab@php.net Reported by: dorin dot marcoci at gmail dot com Summary: All data are fetched as strings -Status: Verified +Status: Closed Type: Feature/Change Request Package: PDO Firebird PHP Version: Irrelevant -Assigned To: +Assigned To: ab Block user comment: N Private report: N New Comment: PR https://github.com/php/php-src/pull/2279 is merged. Thanks. Previous Comments: ------------------------------------------------------------------------ [2017-01-06 02:06:15] spam2 at rhsoft dot net see also https://bugs.php.net/bug.php?id=73650 ------------------------------------------------------------------------ [2017-01-06 02:04:16] spam2 at rhsoft dot net oh yeah! please the same for mysqli / pdo-mysql so that strict-typing becomes really useable because currently you need to to (int)$row['id'] when you pass the value to function(int $id) ------------------------------------------------------------------------ [2017-01-03 12:28:40] mariuz@php.net Work in progress is here https://github.com/madorin/php-src/tree/fb_native https://github.com/php/php-src/compare/master...madorin:fb_native ------------------------------------------------------------------------ [2016-07-13 01:28:17] kalle@php.net Changing this to be a FR; Big side note here, every database driver seems to do this very differently and there is not much consistency across the board, even in PDO where I believe we had an option or similar to do so (or maybe it was just MySQL, I can't remember for certain). But all in all, it would be nice to do this for all database drivers, or at least those that are in the core now with the increased typeness in PHP. ------------------------------------------------------------------------ [2016-07-12 09:05:32] dorin dot marcoci at gmail dot com Description: ------------ All columns are fetched as strings, even numeric, bools, etc... Numeric columns (integers, floats) should be returned as native values. In MySQL ND package this works as expected. Please fix this for Firebird too. Thanks! Expected result: ---------------- Correct types Actual result: -------------- Incorrect types ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72583&edit=1

« previous php.bugs (#206327) next »