diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-09 11:19:38 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-09 11:19:38 +0000 |
commit | cdce334c5657de5d9805c10bc2ba1e7eb99815f4 (patch) | |
tree | 796f03b2c9f209083239db5d8b8d5c6181e92391 /Zend/zend_alloc.c | |
parent | cc26d0e60940b7a317768f86a07580b457069b0e (diff) | |
download | php-git-cdce334c5657de5d9805c10bc2ba1e7eb99815f4.tar.gz |
*** empty log message ***
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r-- | Zend/zend_alloc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index b6fcbfc6ba..2b12a5312b 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -19,6 +19,12 @@ #include "zend.h" #include "zend_alloc.h" #include "zend_globals.h" +#if HAVE_SIGNAL_H +#include <signal.h> +#endif +#if HAVE_UNISTD_H +#include <unistd.h> +#endif #ifndef ZTS static zend_alloc_globals alloc_globals; @@ -116,7 +122,7 @@ ZEND_API void *_emalloc(size_t size) if (!p) { fprintf(stderr,"FATAL: emalloc(): Unable to allocate %ld bytes\n", (long) size); -#if !(WIN32||WINNT) && ZEND_DEBUG +#if ZEND_DEBUG && HAVE_KILL && HAVE_GETPID kill(getpid(), SIGSEGV); #else exit(1); @@ -226,7 +232,7 @@ ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure) if (!p) { if (!allow_failure) { fprintf(stderr,"FATAL: erealloc(): Unable to allocate %ld bytes\n", (long) size); -#if !(WIN32||WINNT) && ZEND_DEBUG +#if ZEND_DEBUG && HAVE_KILL && HAVE_GETPID kill(getpid(), SIGSEGV); #else exit(1); |