diff options
-rw-r--r-- | TSRM/tsrm_win32.c | 11 | ||||
-rw-r--r-- | ext/mssql/php_mssql.c | 3 |
2 files changed, 7 insertions, 7 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index dccf86e851..00efb9136e 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -84,11 +84,12 @@ TSRM_API void tsrm_win32_shutdown(void) TSRM_API int tsrm_win32_access(const char *pathname, int mode) { SHFILEINFO sfi; - if (mode == 1 /*X_OK*/) - return access(pathname, 0)==0 && - SHGetFileInfo(pathname,0,&sfi,sizeof(SHFILEINFO),SHGFI_EXETYPE)!=0?0:-1; - else + if (mode == 1 /*X_OK*/) { + return access(pathname, 0) == 0 && + SHGetFileInfo(pathname, 0, &sfi, sizeof(SHFILEINFO), SHGFI_EXETYPE) != 0 ? 0 : -1; + } else { return access(pathname, mode); + } } @@ -370,4 +371,4 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) { return -1; } } -#endif
\ No newline at end of file +#endif diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 38e30a355c..9b86af4a89 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -275,8 +275,7 @@ static void php_mssql_init_globals(zend_mssql_globals *mssql_globals) } else { mssql_globals->get_column_content = php_mssql_get_column_content_with_type; } - } - else { + } else { mssql_globals->get_column_content = php_mssql_get_column_content_with_type; } } |