From 35b30a8d0c506c861475fa5ce394900adfb2f0ed Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Fri, 26 Nov 1999 17:07:41 +0000 Subject: Add reentrant versions of ctime, localtime, gmtime, asctime. These cannot be implemented platform-independent, so we fall back to the native non-reentrant versions, but lock during each access (only if ZTS is used). To initialize/destroy the used data structures, you need to call reentrancy_startup() before sapi_startup(), and reentrancy_shutdown() after sapi_shutdown(). --- main/php.h | 1 + 1 file changed, 1 insertion(+) (limited to 'main/php.h') diff --git a/main/php.h b/main/php.h index 61743a050e..ea59e21a47 100644 --- a/main/php.h +++ b/main/php.h @@ -343,6 +343,7 @@ PHPAPI int cfg_get_string(char *varname, char **result); #define PHP_CONNECTION_ABORTED 1 #define PHP_CONNECTION_TIMEOUT 2 +#include "php_reentrancy.h" /* Finding offsets of elements within structures. * Taken from the Apache code, which in turn, was taken from X code... -- cgit v1.2.1