|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44835 DBLIB driver - Weird NULL behavior
Submitted: 2008-04-25 19:08 UTC Modified: 2008-10-29 01:00 UTC
Avg. Score:4.8 ± 0.4
Reproduced:6 of 6 (100.0%)
Same Version:5 (83.3%)
Same OS:2 (33.3%)
From: alexandre at gaigalas dot net Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.2.5 OS: SuSE Enterprise
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-04-25 19:08 UTC] alexandre at gaigalas dot net
Fetching data on BIT columns with NULL values return 0 (zero) instead of NULL.

Reproduce code:
$db = new PDO('dblib:host=X;dbname=X', 'x', 'x');

Expected result:
Array ( [THIS_MUST_BE_BLANK] =>  )

Actual result:
Array ( [THIS_MUST_BE_BLANK] => 0 )


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-21 11:30 UTC]
Please try using this CVS snapshot:
For Windows:

 [2008-10-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2014-03-20 18:15 UTC] contact at nicolasbouliane dot com
I am having the same issue with SQL Server 2008, dblib and PHP 5.3.19
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 12:01:31 2015 UTC