Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Gustavo Lopes <glopes <at> nebm.ist.utl.pt>
Subject: Re: [PHP-DEV] memory usage ouchy
Newsgroups: gmane.comp.php.devel
Date: Monday 21st May 2012 19:13:52 UTC (over 4 years ago)
On Mon, 21 May 2012 20:47:51 +0200, Rasmus Schultz   
wrote:

> I just realized something that never occurred to me before - every
> property is actually stored as a hash.
>
> This test-script will demonstrate:
>
>   [snip]

The test-script contains no information about the version of PHP you're  
using. Starting with PHP 5.4, the properties hash table is only created if 

you're storing dynamic properties (i.e. assigning undeclared properties)  
or if it otherwise requested. Otherwise, they're stored in an array.

-- 
Gustavo Lopes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
 
CD: 2ms