if (!p) {
fprintf(stderr,"FATAL: emalloc(): Unable to allocate %ld bytes\n", (long) size);
+#if !(WIN32||WINNT) && ZEND_DEBUG
+ kill(getpid(), SIGSEGV);
+#else
exit(1);
+#endif
HANDLE_UNBLOCK_INTERRUPTIONS();
return (void *)p;
}
if (!p) {
if (!allow_failure) {
fprintf(stderr,"FATAL: erealloc(): Unable to allocate %ld bytes\n", (long) size);
+#if !(WIN32||WINNT) && ZEND_DEBUG
+ kill(getpid(), SIGSEGV);
+#else
exit(1);
+#endif
}
ADD_POINTER_TO_LIST(orig);
HANDLE_UNBLOCK_INTERRUPTIONS();