diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | Zend/tests/bug36568.phpt | 15 | ||||
-rw-r--r-- | Zend/zend.h | 2 | ||||
-rw-r--r-- | Zend/zend_config.w32.h | 19 | ||||
-rw-r--r-- | win32/build/config.w32.h.in | 6 |
5 files changed, 27 insertions, 16 deletions
@@ -7,6 +7,7 @@ PHP NEWS - Fixed bug #36629 (SoapServer::handle() exits on SOAP faults). (Dmitry) - Fixed bug #36697 (Transparency is lost when using imagecreatetruecolor). (Pierre) +- Fixed bug #36568 (memory_limit setting on win32 has no effect). (Dmitry) 09 Mar 2006, PHP 5.1.3RC1 - Updated PCRE to version 6.6. (Andrei) diff --git a/Zend/tests/bug36568.phpt b/Zend/tests/bug36568.phpt new file mode 100755 index 0000000000..d621491a4c --- /dev/null +++ b/Zend/tests/bug36568.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #36568 (memory_limit has no effect) +--SKIPIF-- +<?php + if (!function_exists('memory_get_usage')) die('skip PHP is configured without memory_limit'); +?> +--INI-- +memory_limit=16M +--FILE-- +<?php +ini_set("memory_limit", "32M"); +echo ini_get("memory_limit"); +?> +--EXPECT-- +32M diff --git a/Zend/zend.h b/Zend/zend.h index d965cb4e13..0a5a00491f 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -91,7 +91,7 @@ const char *zend_mh_bundle_error(void); #endif /* HAVE_MACH_O_DYLD_H */ -#if defined(HAVE_LIBDL) && !defined(HAVE_MACH_O_DYLD_H) +#if defined(HAVE_LIBDL) && !defined(HAVE_MACH_O_DYLD_H) && !defined(ZEND_WIN32) # ifndef RTLD_LAZY # define RTLD_LAZY 1 /* Solaris 1, FreeBSD's (2.1.7.1 and older) */ diff --git a/Zend/zend_config.w32.h b/Zend/zend_config.w32.h index 236e99652f..59a812c836 100644 --- a/Zend/zend_config.w32.h +++ b/Zend/zend_config.w32.h @@ -5,7 +5,7 @@ | Copyright (c) 1998-2006 Zend Technologies Ltd. (http://www.zend.com) | +----------------------------------------------------------------------+ | This source file is subject to version 2.00 of the Zend license, | - | that is bundled with this package in the file LICENSE, and is | + | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.zend.com/license/2_00.txt. | | If you did not receive a copy of the Zend license and are unable to | @@ -23,8 +23,9 @@ #define ZEND_CONFIG_W32_H #define USE_ZEND_ALLOC 1 -#define HAVE_ALLOCA 1 -#define HAVE_LIMITS_H 1 + +#include <../main/config.w32.h> + #define _CRTDBG_MAP_ALLOC #include <malloc.h> @@ -44,19 +45,9 @@ typedef unsigned long ulong; typedef unsigned int uint; -#undef HAVE_KILL -#define HAVE_GETPID 1 -/* #define HAVE_ALLOCA_H 1 */ -#define HAVE_MEMCPY 1 -#define HAVE_STRDUP 1 -#define HAVE_SYS_TYPES_H 1 #define HAVE_STDIOSTR_H 1 #define HAVE_CLASS_ISTDIOSTREAM #define istdiostream stdiostream -#define HAVE_STDARG_H 1 -#define HAVE_SNPRINTF 1 -#define HAVE_VSNPRINTF 1 -#define HAVE_STRCOLL 1 #define snprintf _snprintf #define vsnprintf _vsnprintf @@ -87,7 +78,7 @@ typedef unsigned int uint; #define ZEND_DLEXPORT __declspec(dllexport) #define ZEND_DLIMPORT __declspec(dllimport) -/* 0x00200000L is MB_SERVICE_NOTIFICATION, which is only supported under Windows NT +/* 0x00200000L is MB_SERVICE_NOTIFICATION, which is only supported under Windows NT * (and requires _WIN32_WINNT to be defined, which prevents the resulting executable * from running under Windows 9x * Windows 9x should silently ignore it, so it's being used here directly diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index e251d96f53..512afe9177 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -107,7 +107,11 @@ #undef HAVE_SYS_WAIT_H #define HAVE_SYSLOG_H 1 #undef HAVE_UNISTD_H -#define HAVE_LIBDL 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_STDARG_H 1 +#undef HAVE_ALLOCA_H +#undef HAVE_KILL +#define HAVE_GETPID 1 #define HAVE_LIBM 1 #define HAVE_CUSERID 0 #undef HAVE_RINT |