Bug #79755 [NEW]: Php process might hang on fatal error if proc from proc_open is not closed

From: Date: Sun, 28 Jun 2020 13:57:51 +0000
Subject: Bug #79755 [NEW]: Php process might hang on fatal error if proc from proc_open is not closed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227710@lists.php.net to get a copy of this message
From: michael dot vorisek at email dot cz Operating system: Windows PHP version: 7.4.7 Package: Scripting Engine problem Bug Type: Bug Bug description:Php process might hang on fatal error if proc from proc_open is not closed Description: ------------ reproducible with quote complex code on Windows platform with PHP 7.4.7 NTS issue has gone if processes were stopped properly in the script before a fatal error is thrown php code needs to be checked, it seems, that after a fatal error not all child processes are terminated properly Test script: --------------- // start several processes with proc_open and keep them running // now throw some fatal error like with class with invalid method signature // notice, that PHP process will not finish Expected result: ---------------- php process finishes and there are no child processes left Actual result: -------------- php process hang -- Edit bug report at https://bugs.php.net/bug.php?id=79755&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79755&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79755&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79755&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79755&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79755&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79755&r=support Expected behavior: https://bugs.php.net/fix.php?id=79755&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79755&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79755&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79755&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79755&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79755&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79755&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79755&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79755&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79755&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79755&r=mysqlcfg

« previous php.bugs (#227710) next »