Patch bug53317 for MSSQL related Bug #53317
Patch version 2010-11-20 15:57 UTC
Return to Bug #53317 |
Download this patch
Patch Revisions:
Developer: Kalle@php.net
Index: php_mssql.c
===================================================================
--- php_mssql.c (revision 305558)
+++ php_mssql.c (working copy)
@@ -2054,11 +2054,21 @@
maxlen=-1;
switch (type) {
+ case SQLDATETIME:
+ case SQLDATETIM4:
+ case SQLDATETIMN:
+ convert_to_string_ex(var);
+ value = (LPBYTE)(&Z_STRVAL_PP(var));
+ break;
+
case SQLFLT4:
case SQLFLT8:
case SQLFLTN:
+ case SQLMONEY4:
+ case SQLMONEY:
+ case SQLMONEYN:
convert_to_double_ex(var);
- value=(LPBYTE)(&Z_DVAL_PP(var));
+ value = (LPBYTE)(&Z_DVAL_PP(var));
break;
case SQLBIT:
@@ -2066,7 +2076,7 @@
case SQLINT2:
case SQLINT4:
convert_to_long_ex(var);
- value=(LPBYTE)(&Z_LVAL_PP(var));
+ value = (LPBYTE)(&Z_LVAL_PP(var));
break;
default:
|