Back to index

php5  5.3.10
Classes | Defines | Typedefs | Functions
php_win32_globals.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _php_win32_core_globals

Defines

#define PW32G(v)   (the_php_win32_core_globals.v)

Typedefs

typedef struct _php_win32_core_globals

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)

Class Documentation

struct _php_win32_core_globals

Definition at line 36 of file php_win32_globals.h.

Collaboration diagram for _php_win32_core_globals:
Class Members
__int64 freq
__int64 lasttime
char * log_header
HANDLE log_source
HashTable * registry_directories
HANDLE registry_event
HKEY registry_key

Define Documentation

#define PW32G (   v)    (the_php_win32_core_globals.v)

Definition at line 32 of file php_win32_globals.h.


Typedef Documentation

Definition at line 26 of file php_win32_globals.h.


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: