summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-26 17:07:41 +0000
committerSascha Schumann <sas@php.net>1999-11-26 17:07:41 +0000
commit35b30a8d0c506c861475fa5ce394900adfb2f0ed (patch)
tree262f8ec640709e73f5249b5691df06c632a48ed9 /main/php.h
parent2f6ded9ac9bb8826eb9b3b79b8cdc018c90aff54 (diff)
downloadphp-git-35b30a8d0c506c861475fa5ce394900adfb2f0ed.tar.gz
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().
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h1
1 files changed, 1 insertions, 0 deletions
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...