1--TEST-- 2FPM: Buffered worker output decorated log with limit 64 fails because it is too low 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}} 13log_limit = 64 14[unconfined] 15listen = {{ADDR}} 16pm = dynamic 17pm.max_children = 5 18pm.start_servers = 1 19pm.min_spare_servers = 1 20pm.max_spare_servers = 3 21catch_workers_output = yes 22EOT; 23 24$code = <<<EOT 25<?php 26file_put_contents('php://stderr', str_repeat('a', 2048) . "\n"); 27EOT; 28 29$tester = new FPM\Tester($cfg, $code); 30$tester->start(); 31$tester->expectLogError('log_limit must be greater than 512'); 32$tester->close(true); 33 34?> 35Done 36--EXPECT-- 37Done 38--CLEAN-- 39<?php 40require_once "tester.inc"; 41FPM\Tester::clean(); 42?> 43