#22110 [Opn->Bgs]: ini_get ("memory_limit"); not working

From: Date: Sat, 08 Feb 2003 05:06:45 +0000
Subject: #22110 [Opn->Bgs]: ini_get ("memory_limit"); not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32441@lists.php.net to get a copy of this message
ID: 22110 Updated by: sniper@php.net Reported By: ek@aperion.net -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: freeBSD 4.7 PHP Version: 4.3.0 New Comment: empty string is returned for any ini setting that isn't set. Not bug. Previous Comments: ------------------------------------------------------------------------ [2003-02-07 10:48:23] philip@php.net Here's how I see it. You must have used --enable-memory-limit to use this directive at all so it essentially isn't being used so it returns an empty string. I believe this is intentional but ideally a php-dev person will answer: Why doesn't it return the default value? Whether that be 8M or -1 (not sure which it is :) ... when not compiled in. An empty string seems misleading. ------------------------------------------------------------------------ [2003-02-07 10:29:28] ek@aperion.net ini_get ("memory_limit"); does not return anything. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22110&edit=1

« previous php.bugs (#32441) next »