[php-src] Issue #11565: proc_get_status() always returns running=false with GNU screen

From: Date: Fri, 30 Jun 2023 09:11:34 +0000
Subject: [php-src] Issue #11565: proc_get_status() always returns running=false with GNU screen
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244841@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11565
Author: marcomarsala

### Description

If launching a GNU screen with proc_open, subsequent calls to proc_get_status always return
(wrongly) running = false

$descriptorspec = array(
	 0 => array("pipe", "r"),  // stdin
	 1 => array("pipe", "w"),  // stdout
	 2 => array("pipe", "w") // stderr
);
$p = proc_open('screen ...', $descriptorspec, $pipes);
var_dump(proc_get_status($p)['running']); // false (wrong)

### PHP Version

7.4

### Operating System

Ubuntu 18


Thread (1 message)

  • marcomarsala
« previous php.bugs (#244841) next »