Bug #79464 [NEW]: ZTS builds do not properly respect max_execution_time

From: Date: Fri, 10 Apr 2020 10:19:38 +0000
Subject: Bug #79464 [NEW]: ZTS builds do not properly respect max_execution_time
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226517@lists.php.net to get a copy of this message
From: maroszek at gmx dot net Operating system: Linux, MacOS PHP version: master-Git-2020-04-10 (Git) Package: *General Issues Bug Type: Bug Bug description:ZTS builds do not properly respect max_execution_time Description: ------------ Tested against today's master. Also affects 7.x Only affects Linux and MacOS. Windows builds work fine. Please see my simple ZTS example: https://gist.github.com/paresy/3cbd4c6a469511ac7479aa0e7c42fea7 Compile: g++ php.cpp -Imain -ITSRM -IZend -I. --std=c++11 -Llibs -lphp -lresolv -ldl -pthread I used a minimal PHP build: ./configure '--disable-fpm' '--disable-cgi' '--disable-cli' '--enable-embed=static' '--enable-maintainer-zts' '--disable-all' Adding '--disable-zend-signals' does not change the result. Might correlate with this issue: https://bugs.php.net/bug.php?id=16820 Test script: --------------- <?php set_time_limit(2); for (;;) ; // Busy wait Expected result: ---------------- Fatal error: Maximum execution time of 2 seconds exceeded in /home/symcon/Downloads/php-src/test.php on line 3 FINISHED Fatal error: Maximum execution time of 2 seconds exceeded in /home/symcon/Downloads/php-src/test.php on line 3 FINISHED Fatal error: Maximum execution time of 2 seconds exceeded in /home/symcon/Downloads/php-src/test.php on line 3 FINISHED Fatal error: Maximum execution time of 2 seconds exceeded in /home/symcon/Downloads/php-src/test.php on line 3 FINISHED Fatal error: Maximum execution time of 2 seconds exceeded in /home/symcon/Downloads/php-src/test.php on line 3 FINISHED Actual result: -------------- Fatal error: Maximum execution time of 2 seconds exceeded in /home/symcon/Downloads/php-src/test.php on line 3 FINISHED (The remaining 4 threads hang indefinitely) -- Edit bug report at https://bugs.php.net/bug.php?id=79464&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79464&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79464&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79464&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79464&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79464&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79464&r=support Expected behavior: https://bugs.php.net/fix.php?id=79464&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79464&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79464&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79464&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79464&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79464&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79464&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79464&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79464&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79464&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79464&r=mysqlcfg

« previous php.bugs (#226517) next »