Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuraski committed Jul 9, 1999
1 parent cc26d0e commit cdce334
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Zend/config.w32.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ typedef unsigned int uint;

#define HAVE_DIRENT_H 0

#define HAVE_KILL 0
#define HAVE_GETPID 1

#ifdef inline
#undef inline
#endif
Expand All @@ -35,4 +38,4 @@ typedef unsigned int uint;
# define ZEND_API __declspec(dllimport)
#endif

#endif /* _ZEND_CONFIG_W32_H */
#endif /* _ZEND_CONFIG_W32_H */
2 changes: 1 addition & 1 deletion Zend/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ AC_CHECK_SIZEOF(void *, 4)

dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(memcpy memmove strdup strerror strcasecmp strstr flock lockf putenv tempnam usleep setlocale gettimeofday setvbuf srand48 lrand48 srandom random link symlink regcomp getlogin cuserid vsnprintf snprintf gcvt utime crypt setitimer rint unsetenv strftime setsockopt tzset statvfs statfs inet_aton)
AC_CHECK_FUNCS(memcpy memmove strdup strerror strcasecmp strstr flock lockf putenv tempnam usleep setlocale gettimeofday setvbuf srand48 lrand48 srandom random link symlink regcomp getlogin cuserid vsnprintf snprintf gcvt utime crypt setitimer rint unsetenv strftime setsockopt tzset statvfs statfs inet_aton getpid kill)
AC_FUNC_UTIME_NULL
AC_FUNC_ALLOCA
AC_BROKEN_SPRINTF
Expand Down
10 changes: 8 additions & 2 deletions Zend/zend_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cdce334

Please sign in to comment.