Skip to content

Commit

Permalink
Merge pull request #205 from Hadis-Fard/issue#182Windows
Browse files Browse the repository at this point in the history
Issue#182 windows
  • Loading branch information
ulvii authored Dec 15, 2016
2 parents 6497c23 + 47e13b3 commit 9f678e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pdo_sqlsrv/core_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,8 +1990,8 @@ void finalize_output_parameters( sqlsrv_stmt* stmt TSRMLS_DC )
// adjust the length of the string to the value returned by SQLBindParameter in the ind_ptr parameter
char* str = Z_STRVAL_P( value_z );
SQLLEN str_len = stmt->param_ind_ptrs[ output_param->param_num ];
if( str_len == SQL_NULL_DATA ) {
zend_string_release( Z_STR_P( value_z ));
if( str_len == SQL_NULL_DATA || str_len == 0 ) {
zend_string_release( Z_STR_P( value_z ));
ZVAL_NULL( value_z );
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions sqlsrv/core_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,8 +1990,8 @@ void finalize_output_parameters( sqlsrv_stmt* stmt TSRMLS_DC )
// adjust the length of the string to the value returned by SQLBindParameter in the ind_ptr parameter
char* str = Z_STRVAL_P( value_z );
SQLLEN str_len = stmt->param_ind_ptrs[ output_param->param_num ];
if( str_len == SQL_NULL_DATA ) {
zend_string_release( Z_STR_P( value_z ));
if( str_len == SQL_NULL_DATA || str_len == 0 ) {
zend_string_release( Z_STR_P( value_z ));
ZVAL_NULL( value_z );
continue;
}
Expand Down

0 comments on commit 9f678e6

Please sign in to comment.