Small test fixes
This commit is contained in:
parent
c18f6bcf4b
commit
aeacfeebf8
|
@ -4,7 +4,7 @@ PDO Connection Pooling Test on Unix
|
|||
This test assumes odbcinst.ini has not been modified.
|
||||
This test also requires root privileges to modify odbcinst.ini file on Linux.
|
||||
--SKIPIF--
|
||||
<?php if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') die("Skipped: Test for Linux and Mac");
|
||||
<?php if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') die("Skipped: Test for Linux and Mac"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$lines_to_add="CPTimeout=5\n[ODBC]\nPooling=Yes\n";
|
||||
|
|
|
@ -89,7 +89,7 @@ Array
|
|||
[1] => -48
|
||||
[code] => -48
|
||||
[2] => The encoding 'gibberish' is not a supported encoding for the CharacterSet connection option.
|
||||
[message] => The encoding 'jibberish' is not a supported encoding for the CharacterSet connection option.
|
||||
[message] => The encoding 'gibberish' is not a supported encoding for the CharacterSet connection option.
|
||||
)
|
||||
|
||||
)
|
||||
|
|
|
@ -5,8 +5,9 @@ variety of connection parameters.
|
|||
--FILE--
|
||||
<?php
|
||||
|
||||
require 'MsSetup.inc';
|
||||
|
||||
function connect($options=array()) {
|
||||
require 'MsSetup.inc';
|
||||
if (!isset($options['UID']) && !isset($options['uid'])) {
|
||||
$options['uid'] = $uid;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue