Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21890 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29932 invoked by uid 1010); 17 Feb 2006 00:11:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29917 invoked from network); 17 Feb 2006 00:11:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2006 00:11:46 -0000 X-Host-Fingerprint: 69.15.229.169 unknown Received: from ([69.15.229.169:19622] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 6E/C0-24520-1C415F34 for ; Thu, 16 Feb 2006 19:11:46 -0500 Message-ID: <6E.C0.24520.1C415F34@pb1.pair.com> To: internals@lists.php.net Reply-To: "l0t3k" References: <49.81.03593.F1463F34@pb1.pair.com> <1355657626.20060215225041@marcus-boerger.de> Date: Thu, 16 Feb 2006 19:09:37 -0500 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-Posted-By: 69.15.229.169 Subject: Re: [PHP-DEV] C Level Iterators and Userland Classes From: cshmoove@hotmail.com ("l0t3k") Marcus, one last question ... > You should never touch the data member of that iterator does this mean that i should make a copy of whatever i get from the get_current_data() handler ? There seems to be a bit of inconsistency in dealing with the current element in the iterators For example, the TextIterator reuses the same zval value, whereas the classes in SPL call zval_ptr_dtor() between iterations. clayton