|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52134 pdo_dblib returns 40 char strings for int
Submitted: 2010-06-21 22:52 UTC Modified: 2010-06-22 04:11 UTC
From: ssufficool at gmail dot com Assigned: ssufficool (profile)
Status: Closed Package: PDO related
PHP Version: trunk-SVN-2010-06-21 (SVN) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ssufficool at gmail dot com
New email:
PHP Version: OS:


 [2010-06-21 22:52 UTC] ssufficool at gmail dot com
pdo_dblib is not returning the correct string length after converting the data.

Test script:
$row = $stmt->fetch(PDO::FETCH_ASSOC);

Expected result:
  array(2) {
    string(2) "13"
    string(1) "0"

Actual result:
  array(2) {
    string(40) "13                                     "
    string(40) "0                                      "


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-22 04:09 UTC]
Automatic comment from SVN on behalf of ssufficool
Log: Fix bug #52134
 [2010-06-22 04:11 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: ssufficool
 [2010-06-22 04:11 UTC]
Fixed in trunk revision 300646.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Dec 04 02:03:36 2021 UTC