# RESOLVED: Private data in C/C++ generated classes - example

- Thread: https://externals.io/message/22127
- Original archive: https://news-web.php.net/php.internals/22127
- Started by Andrew Mather BT Std on 2006-03-05T20:56:38+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #22127 — Andrew Mather BT Std — 2006-03-05T20:56:38+00:00

URL: https://externals.io/message/22127#22127

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<br>");
    
    $u->next();

    while($u->valid())
    {
        $cur = $u->current();
        echo("Current: $cur\n<br>"); 
	//nb: \n<br> - so I get a line break in both browser and shell...
        $u->next();
    }
