Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing

From: Date: Tue, 25 Apr 2017 11:28:57 +0000
Subject: Bug #70185 [Com]: php-fpm restarts master process in a loop when exec() and using ssh multiplexing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208781@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70185&edit=1 ID: 70185 Comment by: php at grindau dot com Reported by: kobenews at cox dot net Summary: php-fpm restarts master process in a loop when exec() and using ssh multiplexing Status: Open Type: Bug Package: FPM related Operating System: CentOS release 6.6 (Final) PHP Version: 5.4.43 Block user comment: N Private report: N New Comment: As everybody could have seen in my post with the timestamp: 2017-03-10 20:03 UTC. Previous Comments: ------------------------------------------------------------------------ [2017-04-25 10:24:23] php at grindau dot com This happens in the latest stable php 7.1 as well! ------------------------------------------------------------------------ [2017-04-25 05:24:03] spam2 at rhsoft dot net I am not a dev but did you realize that pho5 support is over except highly critical security bugs? ------------------------------------------------------------------------ [2017-04-24 22:49:52] php at grindau dot com Applause to the devs! Absolutely no response, this is a shame. ------------------------------------------------------------------------ [2017-04-20 09:37:09] php at grindau dot com My only working workaround looks as the follows: $cwd='/tmp'; $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/error-output.txt", "a") ); $process = proc_open('csso '.ROOT_PATH.'/tmp/style-'.$type.'-uncritical-unoptimized.css '.ROOT_PATH.'/tmp/style-'.$type.'-uncritical.css --comments none', $descriptorspec, $pipes, '/tmp'); stream_get_contents($pipes[1]); fclose($pipes[1]); ------------------------------------------------------------------------ [2017-04-17 20:21:57] jlaustill at gmail dot com I am running into this same issue on php 5.6.30 running on Ubuntu 16.04. I'm trying to call minify(node.js library). Here's the exact call I'm making. public function minifyJsFile($source, $dest) { $result = exec('minify ' . $source . ' > ' . $dest); if ($result) { return false; } else { return filemtime($dest); } } I have been unable to find a workaround. But I'm not a php expert by any stretch. My background is c/c++/C#/javascript mainly. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=70185 -- Edit this bug report at https://bugs.php.net/bug.php?id=70185&edit=1

« previous php.bugs (#208781) next »