php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14479 ini_get('memory_limit') returns empty string (Not FALSE or so)
Submitted: 2001-12-13 05:07 UTC Modified: 2001-12-13 05:27 UTC
From: bs_php at infeer dot com Assigned: derick (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.0 OS: W2k
Private report: No CVE-ID: None
 [2001-12-13 05:07 UTC] bs_php at infeer dot com
ini_get('memory_limit') returns empty string (Not FALSE or so).

I understand that it may not be possable to set 'memory_limit' but at least it should be possable to read it. 

I would like to use it, to set a buffer size in % to the available memory.

Also 
  ini_get('any value that is not in php.ini')
returns an empty string too. I would have expected FALSE.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-13 05:14 UTC] derick@php.net
checking this out
 [2001-12-13 05:16 UTC] bs_php at infeer dot com
I'v managed to get the value with 
  get_cfg_var('memory_limit')

So it is more a documentation issu. :o)

I'v added a "User Contributed Notes" to ini_get() 
 [2001-12-13 05:27 UTC] derick@php.net
Fixed in CVS (the documentation CVS)

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 28 09:01:28 2024 UTC