php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25278 Get variable memory size function
Submitted: 2003-08-27 13:36 UTC Modified: 2003-08-27 15:32 UTC
From: nathan dot cassano at billingconcepts dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.3 OS: Linux 2.2
Private report: No CVE-ID: None
 [2003-08-27 13:36 UTC] nathan dot cassano at billingconcepts dot com
Description:
------------
I'm per posing that a function be created to return the size of a variable in bytes, for the purpose memory management tracking.

Possible name for this function:

size()
memsize()
bytesize()

Comments welcome.

Nathan


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-27 15:32 UTC] derick@php.net
See http://www.php.net/memory_get_usage ;)

Derick
 [2010-07-07 17:24 UTC] funkyphil27 at hotmail dot com
@ derick@php.net 

Memory_get_usage seems to give the entire memory used but not for a specific variable. Not quite what Nathan asked for.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 26 09:01:30 2024 UTC