php-src/main/SAPI.c
Zeev Suraski 7942eaf381 * Plenty of thread safety and Win32 work.
* 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.
1999-04-26 14:00:49 +00:00

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
}