Include PHP modules for MSSQL database. Resolves T6849
Details
Details
- Reviewers
JoshStrobl - Group Reviewers
Triage Team - Maniphest Tasks
- T6849: Microsoft PHP 7.1 & 7.2 SQL Server Driver Package
- Make sure the MS SQL ODBC driver is working (sqlcmd)
- Execute a query via PHP - sample code:
<?php echo "\n"; $serverName = "tcp:192.168.103.66,1433"; $connectionOptions = array("Database"=>"master", "Uid"=>"sysop", "PWD"=>"Password"); //Establishes the connection $conn = sqlsrv_connect($serverName, $connectionOptions); //Select Query $tsql = "SELECT * FROM dbo.MSreplication_options"; //Executes the query $getProducts = sqlsrv_query($conn, $tsql); var_dump(sqlsrv_fetch_array($getProducts, SQLSRV_FETCH_ASSOC)); die();
Output:
array(6) {
'optname' =>
string(13) "transactional"
'value' =>
int(1)
'major_version' =>
int(90)
'minor_version' =>
int(0)
'revision' =>
int(0)
'install_failures' =>
int(0)
}Diff Detail
Diff Detail
- Branch
- master
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
| package.yml | ||
|---|---|---|
| 23–26 | Shouldn't be necessary, autoreconf does this, which we call in our %reconfigure macro. | |
Comment Actions
Thanks for your comment Josh!
On another note - do you have any suggestions for the naming conventions or are these names okay?
| package.yml | ||
|---|---|---|
| 23–26 | If I replace this block with %reconfigure --with-$plugin I have problems in the build step: libtool: Version mismatch error. This is libtool 2.4.6, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6 libtool: and run autoconf again. make: *** [Makefile:194: pdo_dbh.lo] Error 63 Is this a problem with the macro? | |
| package.yml | ||
|---|---|---|
| 15–16 | Does this not need msodbcsql? It's not listed in abi_used_libs. | |