Re: internals Digest 21 May 2012 21:48:46 -0000 Issue 2690
| From: | Rasmus Schultz | Date: | Mon, 21 May 2012 22:19:03 +0000 |
| Subject: | Re: internals Digest 21 May 2012 21:48:46 -0000 Issue 2690 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60646@lists.php.net to get a copy of this message | ||
oh, wow! so this was already implemented in 5.4, and without introducing
some kind of base-class to enable it. who knew... fantastic, thanks for the
info!
case closed :-)
- Rasmus
From: "Gustavo Lopes" <glopes@nebm.ist.utl.pt>
To: internals@lists.php.net
Cc:
Date: Mon, 21 May 2012 21:13:52 +0200
Subject: Re: [PHP-DEV] memory usage ouchy
On Mon, 21 May 2012 20:47:51 +0200, Rasmus Schultz <rasmus@mindplay.dk>
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.