mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
7942eaf381
* Changed PHP4 to compile as a DLL, both ISAPI and the the CGI run with the same DLL. * Switched to using the DLL runtime library under Win32. PHP will NOT work if compiled against the static library! * Removed yesterday's php4libts project (with php4dllts, it's obsolete). This *does* affect thread-unsafe Windows as well - the thread unsafe CGI is also dependant on the thread-unsafe DLL.
20 lines
357 B
C
20 lines
357 B
C
#include "SAPI.h"
|
|
#ifdef ZTS
|
|
#include "TSRM.h"
|
|
#endif
|
|
|
|
|
|
#ifdef ZTS
|
|
SAPI_API int sapi_globals_id;
|
|
#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
|
|
} |