ID:               42453
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hans at parse dot nl
-Status:           Open
+Status:           Assigned
 Bug Type:         CGI related
 Operating System: Linux
 PHP Version:      5.2.4RC3
-Assigned To:      
+Assigned To:      jani


Previous Comments:
------------------------------------------------------------------------

[2007-08-28 09:14:20] hans at parse dot nl

Description:
------------
The CGI SAPI initializes extensions through the regular MINIT/RINIT
functions, but lacks a call to php_request_shutdown() for proper
extension shutdown on some command line options. This is the case for
command line options -v, -i and -m, which call exit(0) without
requesting module/extension shutdown first.

The CLI SAPI *does* clean up nicely after -v/-i/-m and does not exhibit
this behavior.

Reproduce code:
---------------
With CGI SAPI:

# php-cgi -v
PHP 5.2.4RC3 (cgi-fcgi) (built: Aug 27 2007 16:51:33)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with eAccelerator v0.9.6-dev, Copyright (c) 2004-2007 eAccelerator,
by eAccelerator
[23661] EACCELERATOR: PHP unclean shutdown


With CLI SAPI:

# php -v
PHP 5.2.4RC3 (cli) (built: Aug 27 2007 16:51:49)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with eAccelerator v0.9.6-dev, Copyright (c) 2004-2007 eAccelerator,
by eAccelerator


Expected result:
----------------
nice clean shutdown through RSHUTDOWN/MSHUTDOWN.

Actual result:
--------------
exit(0) without shutting down modules/extensions


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42453&edit=1

Reply via email to