mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
* Get rid of php3_rqst, use SG(server_context) instead (there's still Apache-specific code, but it nuked a global)
22 lines
397 B
C
22 lines
397 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_functions_struct sapi_functions;
|
|
|
|
void sapi_startup(sapi_functions_struct *sf)
|
|
{
|
|
sapi_functions = *sf;
|
|
#ifdef ZTS
|
|
sapi_globals_id = ts_allocate_id(sizeof(sapi_globals_struct), NULL, NULL);
|
|
#endif
|
|
} |