Fixed location of isPooled.php

This commit is contained in:
David Puglielli 2017-06-20 18:30:12 -07:00
parent efe15ee344
commit 51a3c08146
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ file_put_contents("odbcinst.ini", $current);
shell_exec("sudo cp odbcinst.ini $odbcinst_ini");
//Creating a new php process, because for changes in odbcinst.ini file to affect pooling, drivers must be reloaded.
print_r(shell_exec(PHP_BINARY." ./test/pdo_sqlsrv/isPooled.php"));
print_r(shell_exec(PHP_BINARY." ".dirname(__FILE__)."/isPooled.php"));
//disable pooling by modifying the odbcinst.ini file
$current = file_get_contents($odbcinst_ini);
@ -32,7 +32,7 @@ $current = str_replace($lines_to_add,'',$current);
file_put_contents("odbcinst.ini", $current);
shell_exec("sudo cp odbcinst.ini $odbcinst_ini");
print_r(shell_exec(PHP_BINARY." ./test/pdo_sqlsrv/isPooled.php"));
print_r(shell_exec(PHP_BINARY." ".dirname(__FILE__)."/isPooled.php"));
?>
--CLEAN--
<?php

View file

@ -24,7 +24,7 @@ file_put_contents("odbcinst.ini", $current);
shell_exec("sudo cp odbcinst.ini $odbcinst_ini");
//Creating a new php process, because for changes in odbcinst.ini file to affect pooling, drivers must be reloaded.
print_r(shell_exec(PHP_BINARY." ./test/sqlsrv/isPooled.php"));
print_r(shell_exec(PHP_BINARY." ".dirname(__FILE__)."/isPooled.php"));
//disable pooling by modifying the odbcinst.ini file
$current = file_get_contents($odbcinst_ini);
@ -32,7 +32,7 @@ $current = str_replace($lines_to_add,'',$current);
file_put_contents("odbcinst.ini", $current);
shell_exec("sudo cp odbcinst.ini $odbcinst_ini");
print_r(shell_exec(PHP_BINARY." ./test/sqlsrv/isPooled.php"));
print_r(shell_exec(PHP_BINARY." ".dirname(__FILE__)."/isPooled.php"));
?>
--CLEAN--
<?php