ID:               45481
 Updated by:       [EMAIL PROTECTED]
 Reported By:      xufei_ok at 126 dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: redhat linux  2.6.18-8.el5
 PHP Version:      5.2.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Ask such questions on the mailing lists. For example
[EMAIL PROTECTED] 


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

[2008-07-11 07:59:18] xufei_ok at 126 dot com

Description:
------------
In the php extension moduld the function PHP_MSHUTDOWN_FUNCTION was
called by every process of apache while PHP_MINIT_FUNCTION only was
called one time by the parent process of apache.

It cause the whold module only was  initialized one times but was
finalized several times.

Reproduce code:
---------------
PHP_MINIT_FUNCTION(zraidapi)
{
        /* If you have INI entries, uncomment these lines 
        REGISTER_INI_ENTRIES();
        */
        ZA_DBG_Init( "" );
      if( FALSE == zRaidApiInit() ) // 0 - SILENT_MODE, 1 -
BUZZER_MODE
      {
               zend_error( E_ERROR, "zRaidApiInit() failed!!" );
               return FAILURE;
      }
      STORE_KEY(PHP_ZRAIDAPI, 1, 0, 0, 18);
        return SUCCESS;
}

PHP_MSHUTDOWN_FUNCTION(zraidapi)
{
        /* uncomment this line if you have INI entries
        UNREGISTER_INI_ENTRIES();
        */
        zRaidApiShutdown();
        ZA_DBG_Shutdown();
        return SUCCESS;
}

Expected result:
----------------
I want to get some explaination about when the PHP_MINIT_FUNCTION and
PHP_MSHUTDOWN_FUNCTION were called , and whether it is a bug of php or
apache2. 



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


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

Reply via email to