Skip to content

Commit

Permalink
Enabled Spectre Mitigations
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam committed Aug 24, 2018
1 parent 6a688b3 commit 32be280
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/pdo_sqlsrv/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ if( PHP_PDO_SQLSRV != "no" ) {
ADD_FLAG( "CFLAGS_PDO_SQLSRV", "/Zi" );
if (PHP_DEBUG != "yes") ADD_FLAG( "CFLAGS_PDO_SQLSRV", "/guard:cf /O2" );
ADD_FLAG( "CFLAGS_PDO_SQLSRV", "/D ZEND_WIN32_FORCE_INLINE" );
if (VCVERS >= 1913) {
ADD_FLAG("CFLAGS_PDO_SQLSRV", "/Qspectre");
}
ADD_EXTENSION_DEP('pdo_sqlsrv', 'pdo');
EXTENSION("pdo_sqlsrv", pdo_sqlsrv_src_class, PHP_PDO_SQLSRV_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
} else {
Expand Down
3 changes: 3 additions & 0 deletions source/sqlsrv/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ if( PHP_SQLSRV != "no" ) {
ADD_FLAG( "CFLAGS_SQLSRV", "/EHsc" );
ADD_FLAG( "CFLAGS_SQLSRV", "/GS" );
ADD_FLAG( "CFLAGS_SQLSRV", "/Zi" );
if (VCVERS >= 1913) {
ADD_FLAG("CFLAGS_SQLSRV", "/Qspectre");
}
if (PHP_DEBUG != "yes") ADD_FLAG( "CFLAGS_SQLSRV", "/guard:cf /O2" );
EXTENSION("sqlsrv", sqlsrv_src_class , PHP_SQLSRV_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
} else {
Expand Down

0 comments on commit 32be280

Please sign in to comment.