com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/pdo_dbl ib/dblib_stmt.c
| From: | Anatol Belski | Date: | Wed, 16 Mar 2016 07:11:50 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/pdo_dbl ib/dblib_stmt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91357@lists.php.net to get a copy of this message | ||
Commit: ffe82dd775c2fc4b76e2339f893d2fd1d27bf916
Author: Remi Collet <remi@php.net> Wed, 16 Mar 2016 07:18:09 +0100
Committer: Anatol Belski <ab@php.net> Wed, 16 Mar 2016 08:11:50 +0100
Parents: 89919b5ec502594f7b085f8f45bb839223b6baa6
Branches: PHP-7.0.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ffe82dd775c2fc4b76e2339f893d2fd1d27bf916
Log:
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
fix #ifdef usage
Changed paths:
M ext/pdo_dblib/dblib_stmt.c
Diff:
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index 0eff494..8d7762a 100644
--- a/ext/pdo_dblib/dblib_stmt.c
+++ b/ext/pdo_dblib/dblib_stmt.c
@@ -277,7 +277,7 @@ static int pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr,
dbdatecrack(H->link, &di, &dt);
*len = spprintf((char**) &tmp_ptr, 20, "%d-%02d-%02d %02d:%02d:%02d",
-#ifdef PHP_DBLIB_IS_MSSQL || MSDBLIB
+#if defined(PHP_DBLIB_IS_MSSQL) || defined(MSDBLIB)
di.year, di.month, di.day, di.hour, di.minute, di.second
#else
di.dateyear, di.datemonth+1, di.datedmonth, di.datehour, di.dateminute, di.datesecond