Patch dblib_stmt.diff for PDO related Bug #60033
Patch version 2011-10-10 22:24 UTC
Return to Bug #60033 |
Download this patch
Patch Revisions:
Developer: warezthebeef@gmail.com
Index: ext/pdo_dblib/dblib_stmt.c
===================================================================
--- ext/pdo_dblib/dblib_stmt.c (revision 317847)
+++ ext/pdo_dblib/dblib_stmt.c (working copy)
@@ -235,9 +235,9 @@
/* uniqueidentifier is a 16-byte binary number, convert to 32 char hex string */
#ifdef SQLUNIQUE
- *len = dbconvert(NULL, SQLUNIQUE, ptr, *len, SQLCHAR, tmp_ptr, *len);
+ *len = dbconvert(NULL, SQLUNIQUE, *ptr, *len, SQLCHAR, tmp_ptr, *len);
#else
- *len = dbconvert(NULL, 36, ptr, *len, SQLCHAR, tmp_ptr, *len);
+ *len = dbconvert(NULL, 36, *ptr, *len, SQLCHAR, tmp_ptr, *len);
#endif
php_strtoupper(tmp_ptr, *len);
*ptr = tmp_ptr;
|