Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

php_embed.h File Reference

#include <main/php.h>
#include <main/SAPI.h>
#include <main/php_main.h>
#include <main/php_variables.h>
#include <main/php_ini.h>
#include <zend_ini.h>

Include dependency graph for php_embed.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PTSRMLS_D
#define PTSRMLS_DC
#define PTSRMLS_C
#define PTSRMLS_CC
#define PHP_EMBED_START_BLOCK(x, y)
#define PHP_EMBED_END_BLOCK()

Functions

int php_embed_init (int argc, char **argv PTSRMLS_DC)
void php_embed_shutdown (TSRMLS_D)

Variables

sapi_module_struct php_embed_module


Define Documentation

 
#define PHP_EMBED_END_BLOCK  ) 
 

Value:

} zend_catch { \
    /* int exit_status = EG(exit_status); */ \
  } zend_end_try(); \
  php_embed_shutdown(TSRMLS_C); \
}

Definition at line 47 of file php_embed.h.

#define PHP_EMBED_START_BLOCK x,
 ) 
 

Value:

{ \
    void ***tsrm_ls; \
    php_embed_init(x, y PTSRMLS_CC); \
    zend_first_try {

Definition at line 42 of file php_embed.h.

#define PTSRMLS_C
 

Definition at line 38 of file php_embed.h.

#define PTSRMLS_CC
 

Definition at line 39 of file php_embed.h.

#define PTSRMLS_D
 

Definition at line 36 of file php_embed.h.

#define PTSRMLS_DC
 

Definition at line 37 of file php_embed.h.


Function Documentation

int php_embed_init int  argc,
char **argv  PTSRMLS_DC
 

Definition at line 133 of file php_embed.c.

References compiler_globals, core_globals, _sapi_module_struct::executable_location, executor_globals, FAILURE, NULL, O_BINARY, options(), PHP_INI_STAGE_ACTIVATE, PHP_INI_SYSTEM, php_module_shutdown(), php_register_variable(), php_request_startup(), sapi_globals, SAPI_OPTION_NO_CHDIR, sapi_startup(), SG, _sapi_module_struct::startup, stderr, stdin, stdout, SUCCESS, TSRMLS_C, TSRMLS_CC, zend_alter_ini_entry(), and zend_llist_init().

Here is the call graph for this function:

void php_embed_shutdown TSRMLS_D   ) 
 

Definition at line 209 of file php_embed.c.

References php_module_shutdown(), php_request_shutdown(), sapi_shutdown(), and TSRMLS_C.

Here is the call graph for this function:


Variable Documentation

sapi_module_struct php_embed_module
 

Definition at line 102 of file php_embed.c.