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
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: nathan dot cassano at billingconcepts dot com
New email:
PHP Version: OS:

 

 [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 11:01:33 2024 UTC