--TEST-- FPM: HTTP_PROXY - CVE-2016-5385 --SKIPIF-- --FILE-- 'BAR', 'HTTP_PROXY' => 'BADPROXY', ]; $req = run_request('127.0.0.1', $port, $srcfile, '', $headers); echo strstr($req, "Test Start"); echo "Request ok\n"; } catch (Exception $e) { echo "Request error\n"; } proc_terminate($fpm); fpm_display_log($tail, -1); fclose($tail); proc_close($fpm); } ?> Done --EXPECTF-- [%s] NOTICE: fpm is running, pid %d [%s] NOTICE: ready to handle connections Test Start NULL string(3) "BAR" bool(false) string(3) "BAR" Test End Request ok [%s] NOTICE: Terminating ... [%s] NOTICE: exiting, bye-bye! Done --CLEAN--