summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2016-10-15 14:53:38 +0100
committerDavid Carlier <devnexen@gmail.com>2016-10-15 14:53:38 +0100
commit2464dbd5f3dda7ab69f9217d802d08af0334ec71 (patch)
treee8a6abc5848f686c0c5f116845c58ae679f6170a /main/php.h
parent2bd34885da3ccbab5b0007870b4f1e2a93052702 (diff)
downloadphp-git-2464dbd5f3dda7ab69f9217d802d08af0334ec71.tar.gz
import explicit_bzero + strlc* functions update
since 1999 algorithms have changed and register k/w not necessary anymore.
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/php.h b/main/php.h
index 32ab59386f..b9b091d58e 100644
--- a/main/php.h
+++ b/main/php.h
@@ -136,6 +136,14 @@ END_EXTERN_C()
#define strlcat php_strlcat
#endif
+#ifndef HAVE_STRLCAT
+BEGIN_EXTERN_C()
+PHPAPI void php_explicit_bzero(void *dst, size_t siz);
+END_EXTERN_C()
+#undef explicit_bzero
+#define explicit_bzero php_explicit_bzero
+#endif
+
#ifndef HAVE_STRTOK_R
BEGIN_EXTERN_C()
char *strtok_r(char *s, const char *delim, char **last);