mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
5dbe924660
- Some work on moving stuff to SAPI.
22 lines
394 B
C
22 lines
394 B
C
#include "SAPI.h"
|
|
#ifdef ZTS
|
|
#include "TSRM.h"
|
|
#endif
|
|
|
|
|
|
#ifdef ZTS
|
|
SAPI_API int sapi_globals_id;
|
|
#else
|
|
sapi_globals_struct sapi_globals;
|
|
#endif
|
|
|
|
/* A true global (no need for thread safety) */
|
|
sapi_module_struct sapi_module;
|
|
|
|
SAPI_API void sapi_startup(sapi_module_struct *sf)
|
|
{
|
|
sapi_module = *sf;
|
|
#ifdef ZTS
|
|
sapi_globals_id = ts_allocate_id(sizeof(sapi_globals_struct), NULL, NULL);
|
|
#endif
|
|
} |