Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:6538
php5.openSUSE_Leap_42.2_Update
php-odbc-cmp-int-cast.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-odbc-cmp-int-cast.patch of Package php5.openSUSE_Leap_42.2_Update
https://bugs.php.net/bug.php?id=53007 Index: ext/odbc/php_odbc.c =================================================================== --- ext/odbc/php_odbc.c.orig 2015-09-02 14:55:18.156673247 +0200 +++ ext/odbc/php_odbc.c 2015-09-02 14:58:03.711981310 +0200 @@ -1749,7 +1749,7 @@ if (rc == SQL_SUCCESS_WITH_INFO) { Z_STRLEN_P(tmp) = result->longreadlen; - } else if (result->values[i].vallen == SQL_NULL_DATA) { + } else if ((int)result->values[i].vallen == (int)SQL_NULL_DATA) { ZVAL_NULL(tmp); break; } else { @@ -1759,7 +1759,7 @@ break; default: - if (result->values[i].vallen == SQL_NULL_DATA) { + if ((int)result->values[i].vallen == (int)SQL_NULL_DATA) { ZVAL_NULL(tmp); break; } @@ -1900,7 +1900,7 @@ } if (rc == SQL_SUCCESS_WITH_INFO) { Z_STRLEN_P(tmp) = result->longreadlen; - } else if (result->values[i].vallen == SQL_NULL_DATA) { + } else if ((int)result->values[i].vallen == (int)SQL_NULL_DATA) { ZVAL_NULL(tmp); break; } else { @@ -1910,7 +1910,7 @@ break; default: - if (result->values[i].vallen == SQL_NULL_DATA) { + if ((int)result->values[i].vallen == (int)SQL_NULL_DATA) { ZVAL_NULL(tmp); break; } @@ -2129,7 +2129,7 @@ RETURN_FALSE; } - if (result->values[field_ind].vallen == SQL_NULL_DATA) { + if ((int)result->values[field_ind].vallen == (int)SQL_NULL_DATA) { efree(field); RETURN_NULL(); } else if (rc == SQL_NO_DATA_FOUND) { @@ -2148,7 +2148,7 @@ break; default: - if (result->values[field_ind].vallen == SQL_NULL_DATA) { + 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); @@ -2172,7 +2172,7 @@ RETURN_FALSE; } - if (result->values[field_ind].vallen == SQL_NULL_DATA) { + if ((int)result->values[field_ind].vallen == (int)SQL_NULL_DATA) { efree(field); RETURN_NULL(); } @@ -2276,7 +2276,7 @@ } if (rc == SQL_SUCCESS_WITH_INFO) { PHPWRITE(buf, result->longreadlen); - } else if (result->values[i].vallen == SQL_NULL_DATA) { + } else if ((int)result->values[i].vallen == (int)SQL_NULL_DATA) { php_printf("<td>NULL</td>"); break; } else { @@ -2285,7 +2285,7 @@ php_printf("</td>"); break; default: - if (result->values[i].vallen == SQL_NULL_DATA) { + if ((int)result->values[i].vallen == (int)SQL_NULL_DATA) { php_printf("<td>NULL</td>"); } else { php_printf("<td>%s</td>", result->values[i].value);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor