#36568 [Asn->Csd]: memory_limit has no effect

From: Date: Tue, 14 Mar 2006 14:20:55 +0000
Subject: #36568 [Asn->Csd]: memory_limit has no effect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94343@lists.php.net to get a copy of this message
ID: 36568 Updated by: dmitry@php.net Reported By: dmitry@php.net -Status: Assigned +Status: Closed Bug Type: Scripting Engine problem Operating System: win32 PHP Version: 6CVS-2006-03-01 (CVS) Assigned To: dmitry New Comment: Fixed in CVS HEAD and PHP_5_1. Previous Comments: ------------------------------------------------------------------------ [2006-03-01 13:31:19] edink@php.net Windows builds are made without enabling memory limit since the dawn of time. Is there a need to change this? I didn't hear that many requests for this. ------------------------------------------------------------------------ [2006-03-01 12:39:50] dmitry@php.net Description: ------------ On windows "memory_limit" setting in php.ini has no effect. It is because of separate config file zend_config.w32.h that is not include "main/config.w32.h". The macro MEMORY_LIMIT is defined in "main/config.w32.h" and is not visible during compilation of "zend_alloc.c". Reproduce code: --------------- <?php ini_set("memory_limit", "32M"); echo ini_get("memory_limit"); ?> Expected result: ---------------- 32M Actual result: -------------- 8M ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36568&edit=1

« previous php.bugs (#94343) next »