#ifdef ZTS
#include <stdio.h>
-#include <stdlib.h>
#if HAVE_STDARG_H
#include <stdarg.h>
#ifdef WIN32
# define TSRM_WIN32
+# include "tsrm_config.w32.h"
#endif
#ifdef TSRM_WIN32
#define HAVE_UTIME 1
#define HAVE_ALLOCA 1
+#define _CRTDBG_MAP_ALLOC
+
+#include <malloc.h>
+#include <stdlib.h>
+#include <crtdbg.h>
#undef inline
#ifdef ZEND_WIN32_FORCE_INLINE
# include <sys/param.h>
#endif
-#ifdef TSRM_WIN32
-#include <malloc.h>
-#endif
-
/* AIX requires this to be the first thing in the file. */
#ifndef __GNUC__
# if HAVE_ALLOCA_H
/* $Id$ */
-#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include "TSRM.h"
#ifdef TSRM_WIN32
-#include <windows.h>
#include "tsrm_win32.h"
#ifdef ZTS
#define TSRM_WIN32_H
#include "TSRM.h"
-
-#ifdef TSRM_WIN32
#include <windows.h>
struct ipc_perm {
# define TWG(v) (win32_globals.v)
#endif
-#endif
-
#define IPC_PRIVATE 0
#define IPC_CREAT 00001000
#define IPC_EXCL 00002000
+----------------------------------------------------------------------+
*/
-
-#include <stdlib.h>
-
#include "zend.h"
#include "zend_alloc.h"
#include "zend_globals.h"
#ifndef ZEND_CONFIG_W32_H
#define ZEND_CONFIG_W32_H
+#define HAVE_ALLOCA 1
+#define HAVE_LIMITS_H 1
+#define _CRTDBG_MAP_ALLOC
+
+#include <malloc.h>
+#include <stdlib.h>
+#include <crtdbg.h>
#include <string.h>
#include <windows.h>
typedef unsigned long ulong;
typedef unsigned int uint;
-#define HAVE_ALLOCA 1
-#define HAVE_LIMITS_H 1
-#include <malloc.h>
-
#undef HAVE_KILL
#define HAVE_GETPID 1
/* #define HAVE_ALLOCA_H 1 */
#include "zend.h"
-#include <stdio.h>
-
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
#define HANDLE_NUMERIC(key, length, func) { \
register char *tmp=key; \
\
+----------------------------------------------------------------------+
*/
-
-#include <stdlib.h>
-
#include "zend.h"
#include "zend_qsort.h"
#include "zend_API.h"
#ifndef ZEND_LLIST_H
#define ZEND_LLIST_H
-#include <stdlib.h>
-
typedef struct _zend_llist_element {
struct _zend_llist_element *next;
struct _zend_llist_element *prev;
+----------------------------------------------------------------------+
*/
-#include <stdlib.h>
-#include <string.h>
#include "zend.h"
#include "zend_mm.h"
+----------------------------------------------------------------------+
*/
-
-#include <stdio.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <math.h>
-
#include "zend.h"
#include "zend_operators.h"
#include "zend_variables.h"
+----------------------------------------------------------------------+
*/
-#include <stdlib.h>
+//#include <stdlib.h>
#include "zend_static_allocator.h"