Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51224 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32131 invoked from network); 5 Jan 2011 17:30:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2011 17:30:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:34757] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/1A-10843-AAAA42D4 for ; Wed, 05 Jan 2011 12:30:19 -0500 Received: by ewy1 with SMTP id 1so6570582ewy.29 for ; Wed, 05 Jan 2011 09:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=2NAqjg4AH3+EMUyC0zirshsCu8bKoZbhrmwQbtPw6x8=; b=U4+c0RawNJMR/qM44d5vr3HNx5gbnkwfPfUNN3e+IifNPdMFRGMpdoAYskddzzzI9c W4hYtlknndy2TVn4Fb3i3gtVk/DaD4QEJhtLhDoBZxct4gdecQNgmJn6MMxHYLLr4f94 NvMtGPsrC4o9FWNycu0C6OZKNXAE2VSKLunrg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=G0or/GtwIHCFf9e20WM4TyR/bsXGcUJN+b1KCasMqFtuKmC5EelITW5PbSIkp5Xhi4 XEyyKswtl2WFI1jBu3f1kPKlnRQWhqQTMnVs6xx58T1T4z9n7rFrFiSEIA9Hie/gW2F5 8NeUaZk4rYrh2XY0tbbFoNpLoghUV9yfKeRAQ= MIME-Version: 1.0 Received: by 10.213.30.13 with SMTP id s13mr14038624ebc.34.1294248615414; Wed, 05 Jan 2011 09:30:15 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.213.35.208 with HTTP; Wed, 5 Jan 2011 09:30:15 -0800 (PST) Date: Wed, 5 Jan 2011 18:30:15 +0100 X-Google-Sender-Auth: 1CXMVlzIcvLwwtriqAz9pI1zg8s Message-ID: To: PHP Development Content-Type: text/plain; charset=UTF-8 Subject: Memory usage and refcount From: patrickallaert@php.net (Patrick ALLAERT) Hi, While debugging some memory usage stuff I came across the fact that: will display a refcount of 5 while: will display a refcount of 1. Can someone explain me why a real copy is made in the 2nd case? Is this on purpose? Regards, -- Patrick Allaert --- http://code.google.com/p/peclapm/ - Alternative PHP Monitor