Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22381 invoked by uid 1010); 5 Mar 2006 20:56:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22366 invoked from network); 5 Mar 2006 20:56:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2006 20:56:45 -0000 X-Host-Fingerprint: 194.73.73.220 c2bthomr05.btconnect.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([194.73.73.220:26349] helo=C2bthomr05.btconnect.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F4/19-22029-B805B044 for ; Sun, 05 Mar 2006 15:56:43 -0500 Received: from va517slx ([81.134.174.53]) by C2bthomr05.btconnect.com (MOS 3.5.9-GR) with ESMTP id DNU88743; Sun, 5 Mar 2006 20:56:31 GMT To: helly@php.net Date: Sun, 5 Mar 2006 20:56:38 +0000 User-Agent: KMail/1.8 Cc: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200603052056.38935.> Subject: RESOLVED: Private data in C/C++ generated classes - example From: an.dromeda@btconnect.com ("Andrew Mather (BT Std)") 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(); } ---