php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ZendAccelerator.c File Reference
#include "main/php.h"
#include "main/php_globals.h"
#include "zend.h"
#include "zend_extensions.h"
#include "zend_compile.h"
#include "ZendAccelerator.h"
#include "zend_persist.h"
#include "zend_shared_alloc.h"
#include "zend_accelerator_module.h"
#include "zend_accelerator_blacklist.h"
#include "zend_list.h"
#include "zend_execute.h"
#include "zend_vm.h"
#include "zend_inheritance.h"
#include "zend_exceptions.h"
#include "zend_mmap.h"
#include "zend_observer.h"
#include "main/php_main.h"
#include "main/SAPI.h"
#include "main/php_streams.h"
#include "main/php_open_temporary_file.h"
#include "zend_API.h"
#include "zend_ini.h"
#include "zend_virtual_cwd.h"
#include "zend_accelerator_util_funcs.h"
#include "zend_accelerator_hash.h"
#include "zend_file_cache.h"
#include "ext/pcre/php_pcre.h"
#include "ext/standard/basic_functions.h"
#include <netdb.h>
#include <sys/time.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/ipc.h>
#include <pwd.h>
#include <grp.h>
#include <sys/stat.h>
#include <errno.h>

Go to the source code of this file.

Data Structures

struct  preload_error
 

Macros

#define ZCG_KEY_LEN   (MAXPATHLEN * 8)
 
#define zend_accel_get_time()
 
#define STRTAB_INVALID_POS   0
 
#define STRTAB_HASH_TO_SLOT(tab, h)
 
#define STRTAB_STR_TO_POS(tab, s)
 
#define STRTAB_POS_TO_STR(tab, pos)
 
#define STRTAB_COLLISION(s)
 
#define STRTAB_STR_SIZE(s)
 
#define STRTAB_NEXT(s)
 
#define ZEND_AUTOGLOBAL_MASK_SERVER   (1 << 0)
 
#define ZEND_AUTOGLOBAL_MASK_ENV   (1 << 1)
 
#define ZEND_AUTOGLOBAL_MASK_REQUEST   (1 << 2)
 

Functions

 ZEND_EXTENSION ()
 
void zend_accel_schedule_restart_if_necessary (zend_accel_restart_reason reason)
 
zend_string *ZEND_FASTCALL accel_new_interned_string (zend_string *str)
 
accel_time_t zend_get_file_handle_timestamp (zend_file_handle *file_handle, size_t *size)
 
zend_result validate_timestamp_and_record (zend_persistent_script *persistent_script, zend_file_handle *file_handle)
 
zend_result validate_timestamp_and_record_ex (zend_persistent_script *persistent_script, zend_file_handle *file_handle)
 
zend_stringaccel_make_persistent_key (zend_string *str)
 
zend_result zend_accel_invalidate (zend_string *filename, bool force)
 
zend_op_arraypersistent_compile_file (zend_file_handle *file_handle, int type)
 
 ZEND_RINIT_FUNCTION (zend_accelerator)
 
zend_result accel_post_deactivate (void)
 
void accel_shutdown (void)
 
void zend_accel_schedule_restart (zend_accel_restart_reason reason)
 
zend_result accelerator_shm_read_lock (void)
 
void accelerator_shm_read_unlock (void)
 

Variables

zend_accel_globals accel_globals
 
zend_accel_shared_globalsaccel_shared_globals = NULL
 
bool accel_startup_ok = false
 
const char * zps_api_failure_reason = NULL
 
bool file_cache_only = false
 
ZEND_EXT_API zend_extension zend_extension_entry
 

Macro Definition Documentation

◆ STRTAB_COLLISION

#define STRTAB_COLLISION ( s)
Value:
uint32_t zend_string_table_pos_t
char s[4]
Definition cdf.c:77

Definition at line 418 of file ZendAccelerator.c.

◆ STRTAB_HASH_TO_SLOT

#define STRTAB_HASH_TO_SLOT ( tab,
h )
Value:
((zend_string_table_pos_t*)((char*)(tab) + sizeof(*(tab)) + ((h) & (tab)->nTableMask)))

Definition at line 412 of file ZendAccelerator.c.

◆ STRTAB_INVALID_POS

#define STRTAB_INVALID_POS   0

Definition at line 410 of file ZendAccelerator.c.

◆ STRTAB_NEXT

#define STRTAB_NEXT ( s)
Value:
((zend_string*)((char*)(s) + STRTAB_STR_SIZE(s)))
#define STRTAB_STR_SIZE(s)
struct _zend_string zend_string

Definition at line 422 of file ZendAccelerator.c.

◆ STRTAB_POS_TO_STR

#define STRTAB_POS_TO_STR ( tab,
pos )
Value:
((zend_string*)((char*)(tab) + ((uintptr_t)(pos) * ZEND_STRING_TABLE_POS_ALIGNMENT)))
#define ZEND_STRING_TABLE_POS_ALIGNMENT
unsigned const char * pos
Definition php_ffi.h:52

Definition at line 416 of file ZendAccelerator.c.

◆ STRTAB_STR_SIZE

#define STRTAB_STR_SIZE ( s)
Value:
#define ZEND_MM_ALIGNED_SIZE_EX(size, alignment)
Definition zend_alloc.h:37
#define _ZSTR_STRUCT_SIZE(len)
#define ZSTR_LEN(zstr)
Definition zend_string.h:69

Definition at line 420 of file ZendAccelerator.c.

◆ STRTAB_STR_TO_POS

#define STRTAB_STR_TO_POS ( tab,
s )
Value:

Definition at line 414 of file ZendAccelerator.c.

◆ ZCG_KEY_LEN

#define ZCG_KEY_LEN   (MAXPATHLEN * 8)

Definition at line 148 of file ZendAccelerator.c.

◆ zend_accel_get_time

#define zend_accel_get_time ( )
Value:
#define NULL
Definition gdcache.h:45
time()

Definition at line 193 of file ZendAccelerator.c.

◆ ZEND_AUTOGLOBAL_MASK_ENV

#define ZEND_AUTOGLOBAL_MASK_ENV   (1 << 1)

Definition at line 1696 of file ZendAccelerator.c.

◆ ZEND_AUTOGLOBAL_MASK_REQUEST

#define ZEND_AUTOGLOBAL_MASK_REQUEST   (1 << 2)

Definition at line 1697 of file ZendAccelerator.c.

◆ ZEND_AUTOGLOBAL_MASK_SERVER

#define ZEND_AUTOGLOBAL_MASK_SERVER   (1 << 0)

Definition at line 1695 of file ZendAccelerator.c.

Function Documentation

◆ accel_make_persistent_key()

zend_string * accel_make_persistent_key ( zend_string * str)

Definition at line 1192 of file ZendAccelerator.c.

◆ accel_new_interned_string()

zend_string *ZEND_FASTCALL accel_new_interned_string ( zend_string * str)

Definition at line 506 of file ZendAccelerator.c.

◆ accel_post_deactivate()

zend_result accel_post_deactivate ( void )

Definition at line 2779 of file ZendAccelerator.c.

◆ accel_shutdown()

void accel_shutdown ( void )

Definition at line 3398 of file ZendAccelerator.c.

◆ accelerator_shm_read_lock()

zend_result accelerator_shm_read_lock ( void )

Definition at line 3497 of file ZendAccelerator.c.

◆ accelerator_shm_read_unlock()

void accelerator_shm_read_unlock ( void )

Definition at line 3520 of file ZendAccelerator.c.

◆ persistent_compile_file()

zend_op_array * persistent_compile_file ( zend_file_handle * file_handle,
int type )

Definition at line 1992 of file ZendAccelerator.c.

◆ validate_timestamp_and_record()

zend_result validate_timestamp_and_record ( zend_persistent_script * persistent_script,
zend_file_handle * file_handle )

Definition at line 1165 of file ZendAccelerator.c.

◆ validate_timestamp_and_record_ex()

zend_result validate_timestamp_and_record_ex ( zend_persistent_script * persistent_script,
zend_file_handle * file_handle )

Definition at line 1180 of file ZendAccelerator.c.

◆ zend_accel_invalidate()

zend_result zend_accel_invalidate ( zend_string * filename,
bool force )

Definition at line 1400 of file ZendAccelerator.c.

◆ zend_accel_schedule_restart()

void zend_accel_schedule_restart ( zend_accel_restart_reason reason)

Definition at line 3447 of file ZendAccelerator.c.

◆ zend_accel_schedule_restart_if_necessary()

void zend_accel_schedule_restart_if_necessary ( zend_accel_restart_reason reason)

Definition at line 243 of file ZendAccelerator.c.

◆ ZEND_EXTENSION()

ZEND_EXTENSION ( )

◆ zend_get_file_handle_timestamp()

accel_time_t zend_get_file_handle_timestamp ( zend_file_handle * file_handle,
size_t * size )

Definition at line 1016 of file ZendAccelerator.c.

◆ ZEND_RINIT_FUNCTION()

ZEND_RINIT_FUNCTION ( zend_accelerator )

Definition at line 2633 of file ZendAccelerator.c.

Variable Documentation

◆ accel_globals

zend_accel_globals accel_globals

Definition at line 103 of file ZendAccelerator.c.

◆ accel_shared_globals

zend_accel_shared_globals* accel_shared_globals = NULL

Definition at line 112 of file ZendAccelerator.c.

◆ accel_startup_ok

bool accel_startup_ok = false

Definition at line 118 of file ZendAccelerator.c.

◆ file_cache_only

bool file_cache_only = false

Definition at line 121 of file ZendAccelerator.c.

◆ zend_extension_entry

ZEND_EXT_API zend_extension zend_extension_entry
Initial value:
= {
"Zend Technologies",
"http://www.zend.com/",
"Copyright (c)",
accel_startup,
NULL,
accel_activate,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
#define ACCELERATOR_PRODUCT_NAME
#define PHP_VERSION
Definition php_version.h:7
#define STANDARD_ZEND_EXTENSION_PROPERTIES

Definition at line 4970 of file ZendAccelerator.c.

◆ zps_api_failure_reason

const char* zps_api_failure_reason = NULL

Definition at line 120 of file ZendAccelerator.c.