1--TEST-- 2FPM: bug76922 - FCGI conn termination after FCGI_GET_VALUES 3--SKIPIF-- 4<?php include "skipif.inc"; ?> 5--FILE-- 6<?php 7 8require_once "tester.inc"; 9 10$cfg = <<<EOT 11[global] 12error_log = {{FILE:LOG}} 13[unconfined] 14listen = {{ADDR}} 15pm = static 16pm.max_children = 1 17catch_workers_output = yes 18EOT; 19 20$code = <<<EOT 21<?php 22echo 1; 23EOT; 24 25$tester = new FPM\Tester($cfg, $code); 26$tester->start(); 27$tester->expectLogStartNotices(); 28$tester->requestValues(connKeepAlive: true)->expectValue('FCGI_MPXS_CONNS', '0'); 29$tester->request(connKeepAlive: true)->expectBody('1'); 30$tester->requestValues(connKeepAlive: true)->expectValue('FCGI_MPXS_CONNS', '0'); 31$tester->terminate(); 32$tester->close(); 33 34?> 35Done 36--EXPECT-- 37Done 38--CLEAN-- 39<?php 40require_once "tester.inc"; 41FPM\Tester::clean(); 42?> 43<?php 44