]> granicus.if.org Git - php/commit
Add reentrant versions of ctime, localtime, gmtime, asctime.
authorSascha Schumann <sas@php.net>
Fri, 26 Nov 1999 17:07:41 +0000 (17:07 +0000)
committerSascha Schumann <sas@php.net>
Fri, 26 Nov 1999 17:07:41 +0000 (17:07 +0000)
commit35b30a8d0c506c861475fa5ce394900adfb2f0ed
tree262f8ec640709e73f5249b5691df06c632a48ed9
parent2f6ded9ac9bb8826eb9b3b79b8cdc018c90aff54
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().
Makefile.am
configure.in
main/php.h
main/php_globals.h
main/php_reentrancy.h [new file with mode: 0644]
main/reentrancy.c [new file with mode: 0644]
sapi/aolserver/aolserver.c