File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5
5
"keywords" : [" rpc" ],
6
6
"homepage" : " https://grpc.io" ,
7
7
"license" : " Apache-2.0" ,
8
- "version" : " 1.25 .0" ,
8
+ "version" : " 1.26 .0" ,
9
9
"require" : {
10
10
"php" : " >=5.5.0"
11
11
},
Original file line number Diff line number Diff line change @@ -43,10 +43,12 @@ class BaseStub
43
43
*/
44
44
public function __construct ($ hostname , $ opts , $ channel = null )
45
45
{
46
- $ ssl_roots = file_get_contents (
47
- dirname (__FILE__ ).'/../../etc/roots.pem '
48
- );
49
- ChannelCredentials::setDefaultRootsPem ($ ssl_roots );
46
+ if (!ChannelCredentials::isDefaultRootsPemSet ()) {
47
+ $ ssl_roots = file_get_contents (
48
+ dirname (__FILE__ ).'/../../../../etc/roots.pem '
49
+ );
50
+ ChannelCredentials::setDefaultRootsPem ($ ssl_roots );
51
+ }
50
52
51
53
$ this ->hostname = $ hostname ;
52
54
$ this ->update_metadata = null ;
You can’t perform that action at this time.
0 commit comments