Fixed driver names and typos
This commit is contained in:
parent
f69033f67a
commit
aec0af581c
|
@ -23,7 +23,7 @@ class PDOFetchLargeBench
|
||||||
$this->conn = PDOSqlsrvUtil::connect();
|
$this->conn = PDOSqlsrvUtil::connect();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Each iteration calls prepare, execute and fetch APIs to fetch the already populdated data
|
* Each iteration calls prepare, execute and fetch APIs to fetch the already populated data
|
||||||
*/
|
*/
|
||||||
public function benchFetchWithPrepare()
|
public function benchFetchWithPrepare()
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ class SqlsrvFetchLargeBench
|
||||||
$this->conn = SqlsrvUtil::connect();
|
$this->conn = SqlsrvUtil::connect();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Each iteration calls prepare, execute and fetch APIs to fetch the already populdated data
|
* Each iteration calls prepare, execute and fetch APIs to fetch the already populated data
|
||||||
*/
|
*/
|
||||||
public function benchFetchWithPrepare()
|
public function benchFetchWithPrepare()
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,18 +41,19 @@ $phpDir="C:\php"
|
||||||
Remove-Item $phpDir -Recurse -ErrorAction Ignore
|
Remove-Item $phpDir -Recurse -ErrorAction Ignore
|
||||||
New-Item -ItemType directory -Path $phpDir
|
New-Item -ItemType directory -Path $phpDir
|
||||||
Expand-Archive $PHP_ZIP -DestinationPath $phpDir
|
Expand-Archive $PHP_ZIP -DestinationPath $phpDir
|
||||||
Copy-Item $SQLSRV_DRIVER $phpDir\ext
|
|
||||||
Copy-Item $PDO_DRIVER $phpDir\ext
|
# copy drivers to extensions directory and rename to a standard nomenclature
|
||||||
|
# for consistency with run-perf_tests.py
|
||||||
|
Copy-Item $SQLSRV_DRIVER $phpDir\ext\php_sqlsrv.dll
|
||||||
|
Copy-Item $PDO_DRIVER $phpDir\ext\php_pdo_sqlsrv.dll
|
||||||
|
|
||||||
# setup driver
|
# setup driver
|
||||||
Copy-Item $phpDir\php.ini-production $phpDir\php.ini
|
Copy-Item $phpDir\php.ini-production $phpDir\php.ini
|
||||||
Add-Content $phpDir\php.ini "extension=$phpDir\ext\php_openssl.dll"
|
Add-Content $phpDir\php.ini "extension=$phpDir\ext\php_openssl.dll"
|
||||||
Add-Content $phpDir\php.ini "extension=$phpDir\ext\php_mbstring.dll"
|
Add-Content $phpDir\php.ini "extension=$phpDir\ext\php_mbstring.dll"
|
||||||
|
|
||||||
$driverName=Split-Path $SQLSRV_DRIVER -leaf
|
Add-Content $phpDir\php.ini "extension=$phpDir\ext\php_sqlsrv.dll"
|
||||||
Add-Content $phpDir\php.ini "extension=$phpDir\ext\$driverName"
|
Add-Content $phpDir\php.ini "extension=$phpDir\ext\php_pdo_sqlsrv.dll"
|
||||||
$driverName=Split-Path $PDO_DRIVER -leaf
|
|
||||||
Add-Content $phpDir\php.ini "extension=$phpDir\ext\$driverName"
|
|
||||||
|
|
||||||
Move-Item $phpDir\php.ini C:\Windows -force
|
Move-Item $phpDir\php.ini C:\Windows -force
|
||||||
Copy-Item $phpDir\ssleay32.dll C:\Windows -force
|
Copy-Item $phpDir\ssleay32.dll C:\Windows -force
|
||||||
|
|
Loading…
Reference in a new issue