Bug #68343 [Fbk->NoF]: CLI shutdown process exits mid-shutdown

From: Date: Sun, 26 Sep 2021 04:22:13 +0000
Subject: Bug #68343 [Fbk->NoF]: CLI shutdown process exits mid-shutdown
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236842@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68343&edit=1 ID: 68343 Updated by: php-bugs@lists.php.net Reported by: Danack at basereality dot com Summary: CLI shutdown process exits mid-shutdown -Status: Feedback +Status: No Feedback Type: Bug Package: CGI/CLI related Operating System: N/A PHP Version: 5.6.2 Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2021-09-16 14:00:06] cmb@php.net Apparently, clean_non_persistent_constants() has been removed (renamed?) as of PHP 7.2.0, so I wonder whether this issue has been fixed altogether in the meantime. ------------------------------------------------------------------------ [2014-11-04 15:28:36] Danack at basereality dot com Description: ------------ The PHP shutdown process does not seem to complete when PHP is passed a filename. Instead the function clean_non_persistent_constants appears to abort the process on this line: http://lxr.php.net/xref/PHP_5_6/Zend/zend_constants.c#142 I found this by trying to enable the Garbage Collector benchmark as described on: http://php.net/manual/en/features.gc.performance-considerations.php After recompiling PHP with export CFLAGS=-DGC_BENCH=1 I expect to see GC benchmarks after every php script is run. Instead only scripts that are piped in to PHP give benchmarks. i.e. Running php < memTest.php - this appears to exit properly and shows the GC benchmarks Running php memTest.php - this appears to exit prematurely in the clean_non_persistent_constants function. To be honest, it may have been like this for such a long time that fixing this is a bad idea...and that just moving the GC benchmark output to above where it exits early would be more appropriate. Test script: --------------- <?php echo "Hello world!"; Expected result: ---------------- GC Benchmark output after every script is run. Actual result: -------------- GC Benchmark output only after scripts are piped into PHP, rather than php running file names. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68343&edit=1

« previous php.bugs (#236842) next »