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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bs_php at infeer dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 00:01:29 2025 UTC