Patch create-odbc-null-crash.patch for ODBC related Bug #53007
Patch version 2010-10-07 07:22 UTC
Return to Bug #53007 |
Download this patch
Patch Revisions:
Developer: crewone@gmail.com
--- php_odbc.c 2010-10-07 09:17:40.140555101 +0200
+++ php_odbc_new.c 2010-10-07 09:20:14.560449989 +0200
@@ -2104,7 +2104,8 @@
break;
default:
- if (result->values[field_ind].vallen == SQL_NULL_DATA) {
+ // Cast both sides to account for byte-size differences.
+ if ((int)result->values[field_ind].vallen == (int)SQL_NULL_DATA) {
RETURN_NULL();
} else {
RETURN_STRINGL(result->values[field_ind].value, result->values[field_ind].vallen, 1);
|