Back to index

php5  5.3.10
Functions | Variables
globals.c File Reference
#include "php.h"
#include "php_win32_globals.h"
#include "syslog.h"

Go to the source code of this file.

Functions

void php_win32_core_globals_ctor (void *vg TSRMLS_DC)
void php_win32_core_globals_dtor (void *vg TSRMLS_DC)
 PHP_RSHUTDOWN_FUNCTION (win32_core_globals)

Variables

php_win32_core_globals the_php_win32_core_globals

Function Documentation

PHP_RSHUTDOWN_FUNCTION ( win32_core_globals  )

Definition at line 57 of file globals.c.

{
       php_win32_core_globals *wg =
#ifdef ZTS
              ts_resource(php_win32_core_globals_id)
#else
              &the_php_win32_core_globals
#endif
              ;

       closelog();
       wg->starttime.tv_sec = 0;
       wg->lasttime = 0;

       return SUCCESS;
}

Here is the call graph for this function:

void php_win32_core_globals_ctor ( void *vg  TSRMLS_DC)

Definition at line 31 of file globals.c.

{
       php_win32_core_globals *wg = (php_win32_core_globals*)vg;
       memset(wg, 0, sizeof(*wg));
}

Here is the caller graph for this function:

void php_win32_core_globals_dtor ( void *vg  TSRMLS_DC)

Definition at line 37 of file globals.c.

{
       php_win32_core_globals *wg = (php_win32_core_globals*)vg;

       if (wg->registry_key) {
              RegCloseKey(wg->registry_key);
              wg->registry_key = NULL;
       }
       if (wg->registry_event) {
              CloseHandle(wg->registry_event);
              wg->registry_event = NULL;
       }
       if (wg->registry_directories) {
              zend_hash_destroy(wg->registry_directories);
              free(wg->registry_directories);
              wg->registry_directories = NULL;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

php_win32_core_globals the_php_win32_core_globals

Definition at line 28 of file globals.c.