Bug #68343 [NEW]: CLI shutdown process exits mid-shutdown
From: Danack at basereality dot com
Operating system: N/A
PHP version: 5.6.2
Package: CGI/CLI related
Bug Type: Bug
Bug description:CLI shutdown process exits mid-shutdown
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 bug report at https://bugs.php.net/bug.php?id=68343&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68343&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68343&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68343&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68343&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68343&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68343&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68343&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68343&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68343&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68343&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68343&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68343&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68343&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68343&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68343&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68343&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68343&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68343&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68343&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68343&r=mysqlcfg
Thread (3 messages)
- Danack at basereality dot com