Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca53d3e

Browse files
Merge branch '4.0'
* 4.0: fix merge
2 parents8659ba9 +a24fa39 commitca53d3e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎src/Symfony/Component/Cache/Traits/RedisTrait.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ public static function createConnection($dsn, array $options = array())
120120
$redis =new$class();
121121

122122
$initializer =function ($redis)use ($connect,$params,$dsn,$auth) {
123-
@$redis->{$connect}($params['host'],$params['port'],$params['timeout'],$params['persistent_id'],$params['retry_interval']);
123+
try {
124+
@$redis->{$connect}($params['host'],$params['port'],$params['timeout'],$params['persistent_id'],$params['retry_interval']);
125+
}catch (\RedisException$e) {
126+
thrownewInvalidArgumentException(sprintf('Redis connection failed (%s): %s',$e->getMessage(),$dsn));
127+
}
124128

125129
if (@!$redis->isConnected()) {
126130
$e = ($e =error_get_last()) &&preg_match('/^Redis::p?connect\(\): (.*)/',$e['message'],$e) ?sprintf(' (%s)',$e[1]) :'';

‎src/Symfony/Component/Security/Core/Tests/Authentication/Provider/LdapBindAuthenticationProviderTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testEmptyPasswordShouldThrowAnException()
5252
publicfunctiontestNullPasswordShouldThrowAnException()
5353
{
5454
$userProvider =$this->getMockBuilder('Symfony\Component\Security\Core\User\UserProviderInterface')->getMock();
55-
$ldap =$this->getMockBuilder('Symfony\Component\Ldap\LdapClientInterface')->getMock();
55+
$ldap =$this->getMockBuilder('Symfony\Component\Ldap\LdapInterface')->getMock();
5656
$userChecker =$this->getMockBuilder('Symfony\Component\Security\Core\User\UserCheckerInterface')->getMock();
5757

5858
$provider =newLdapBindAuthenticationProvider($userProvider,$userChecker,'key',$ldap);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp