php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22110 ini_get ("memory_limit"); not working
Submitted: 2003-02-07 10:29 UTC Modified: 2003-02-07 23:06 UTC
From: ek at aperion dot net Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.0 OS: freeBSD 4.7
Private report: No CVE-ID: None
 [2003-02-07 10:29 UTC] ek at aperion dot net
ini_get ("memory_limit"); does not return anything.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-07 10:48 UTC] 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 23:06 UTC] sniper@php.net
empty string is returned for any ini setting that isn't set.
Not bug.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 09:01:29 2024 UTC