Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34005 invoked by uid 1010); 5 Mar 2006 21:28:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33988 invoked from network); 5 Mar 2006 21:28:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2006 21:28:52 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:56518] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4F/5A-22029-2185B044 for ; Sun, 05 Mar 2006 16:28:50 -0500 Received: from [192.168.1.3] (dslb-084-063-024-042.pools.arcor-ip.net [84.63.24.42]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 4849035C1CE; Sun, 5 Mar 2006 22:28:46 +0100 (CET) Date: Sun, 5 Mar 2006 22:28:54 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <917546376.20060305222854@marcus-boerger.de> To: "Andrew Mather (BT Std)" Cc: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RESOLVED: Private data in C/C++ generated classes - example From: helly@php.net (Marcus Boerger) Hello Andrew, yes helly that's me :-) Sunday, March 5, 2006, 9:56:38 PM, you wrote: > Have compiled and run the sample suggested by Marcus Boerger, > (aka helly ??). Greatly appreciated. > For info, I couldn't find talk at http://talks.php.net, but found it at a > previous link he'd supplied, at: > http://talks.marcus-boerger.de > aka: > http://somabo.de/talks/ > Example is at: > http://somabo.de/php/ext/util/ > Simple test script below > ---- > // written by Andrew Mather - ie: not an authorised test! > // (Does work however - I leave it to you to change the target dir) > $path = "/home/andrew"; > $u = new dirs($path); > $upath = $u->getPath(); > echo("obj->path(): $upath\n
"); > > $u->next(); > while($u->valid()) > { > $cur = $u->current(); > echo("Current: $cur\n
"); > //nb: \n
- so I get a line break in both browser and shell... > $u->next(); > } > --- Best regards, Marcus