Bug #60033 [Opn->Csd]: Incorrectly merged PDO dblib patches break uniqueidentifier column type
| From: | felipe@php.net | Date: | Wed, 12 Oct 2011 01:24:28 +0000 |
| Subject: | Bug #60033 [Opn->Csd]: Incorrectly merged PDO dblib patches break uniqueidentifier column type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164251@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60033&edit=1
ID: 60033
Updated by: felipe@php.net
Reported by: warezthebeef at gmail dot com
Summary: Incorrectly merged PDO dblib patches break
uniqueidentifier column type
-Status: Open
+Status: Closed
Type: Bug
Package: PDO related
Operating System: Linux
PHP Version: trunk-SVN-2011-10-10 (SVN)
-Assigned To:
+Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-10-12 01:24:27] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=318042
Log: - Fixed bug #60033 (Incorrectly merged PDO dblib patches break uniqueidentifier column type)
------------------------------------------------------------------------
[2011-10-10 22:26:35] warezthebeef at gmail dot com
Just clarifying that this bug report/patch applies to the dblib driver
------------------------------------------------------------------------
[2011-10-10 22:23:26] warezthebeef at gmail dot com
Description:
------------
The following patches have been merged into trunk
https://bugs.php.net/bug.php?id=50755
https://bugs.php.net/bug.php?id=54167
However they're slightly incompatible, #50755 changed the structure of the dbconvert() calls
and when the merge was made the patch from #54167 wasn't updated to reflect this.
With the attached patch applied the trunk driver is working great.
5.3.x is fine as the changes from #50755 aren't in that branch yet.
Test script:
---------------
Simply query any uniqueidentifier column value, the wrong value is returned.
Expected result:
----------------
The correct value for uniqueidentifier is returned.
Actual result:
--------------
An unrelated sequence of bytes is encoded and returned instead of the expected uniqueidentifier.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60033&edit=1