mirror of https://github.com/grpc/grpc.git
parent
906c85b47a
commit
3107cda311
4 changed files with 66 additions and 23 deletions
@ -0,0 +1,15 @@ |
||||
--TEST-- |
||||
Ensure default ini settings |
||||
--SKIPIF-- |
||||
<?php if (!extension_loaded("grpc")) print "skip"; ?> |
||||
--FILE-- |
||||
<?php |
||||
if (ini_get('grpc.enable_fork_support')) { |
||||
die('grpc.enable_fork_support not off by default'); |
||||
} |
||||
if (ini_get('grpc.poll_strategy') !== "") { |
||||
die('grpc.poll_strategy not empty by default'); |
||||
} |
||||
echo 'ok'; |
||||
--EXPECT-- |
||||
ok |
@ -0,0 +1,24 @@ |
||||
--TEST-- |
||||
Ensure ini settings are handled |
||||
--SKIPIF-- |
||||
<?php if (!extension_loaded("grpc")) print "skip"; ?> |
||||
--INI-- |
||||
grpc.enable_fork_support = 1 |
||||
grpc.poll_strategy = epoll1 |
||||
--FILE-- |
||||
<?php |
||||
if (!ini_get('grpc.enable_fork_support')) { |
||||
die('grpc.enable_fork_support not set'); |
||||
} |
||||
if (!getenv('GRPC_ENABLE_FORK_SUPPORT')) { |
||||
die('env GRPC_ENABLE_FORK_SUPPORT not set'); |
||||
} |
||||
if (ini_get('grpc.poll_strategy') !== 'epoll1') { |
||||
die('grpc.poll_strategy !== epoll1'); |
||||
} |
||||
if (getenv('GRPC_POLL_STRATEGY') !== 'epoll1') { |
||||
die('env GRPC_POLL_STRATEGY not epoll1'); |
||||
} |
||||
echo 'ok'; |
||||
--EXPECT-- |
||||
ok |
Loading…
Reference in new issue