Refactored ext/ldap

This commit is contained in:
Xinchen Hui 2014-05-20 11:26:26 +08:00
parent a816032285
commit e1317ed517
5 changed files with 205 additions and 225 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,6 +37,6 @@ Warning: ldap_unbind() expects parameter 1 to be resource, %unicode_string_optio
bool(false)
bool(true)
Warning: ldap_unbind(): %d is not a valid ldap link resource in %s on line %d
Warning: ldap_unbind(): supplied resource is not a valid ldap link resource in %s on line %d
bool(false)
===DONE===

View File

@ -46,7 +46,7 @@ $stmt->execute();
var_dump($stmt->fetchAll(PDO::FETCH_CLASS, 'TestBase'));
$stmt->execute();
var_dump($stmt->fetchAll(PDO::FETCH_CLASS, 'TestDerived', array(0)));
var_dump($stmt->fetchAll(PDO::FETCH_CLASS, 'TestDerived', array("")));
?>
--EXPECTF--
@ -151,4 +151,4 @@ array(3) {
["val2"]=>
string(2) "CC"
}
}
}

View File

@ -18,7 +18,7 @@ if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
$config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
}
} else {
$config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=root password=';
$config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres';
}
return $config;

View File

@ -6,7 +6,7 @@ if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
$config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
}
} else {
$config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=root password=';
$config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres';
}
foreach ($config['ENV'] as $k => $v) {