Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22115 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44898 invoked by uid 1010); 5 Mar 2006 11:28:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44883 invoked from network); 5 Mar 2006 11:28:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2006 11:28:32 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:55307] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 33/C4-22029-F5BCA044 for ; Sun, 05 Mar 2006 06:28:31 -0500 Received: from [192.168.1.3] (dslb-084-063-027-114.pools.arcor-ip.net [84.63.27.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id DB47635C1BD; Sun, 5 Mar 2006 12:28:27 +0100 (CET) Date: Sun, 5 Mar 2006 12:28:34 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1772553169.20060305122834@marcus-boerger.de> To: Andrew Mather Cc: Internals PHP Mailing List In-Reply-To: <003401c6403f$c3db6310$ca5f8a51@VaioCen> References: <003401c6403f$c3db6310$ca5f8a51@VaioCen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Private data in C/C++ generated classes for Php - example? From: helly@php.net (Marcus Boerger) Hello Andrew, nearly all classes in ext SPL have payload fields. Also SimpleXML, PDO, SQLite, MySqlI, DOM and a bunch of other extensions have. To add another shameless plug, all my extension writing talks contain an example available in full source code that shows it. If you take the last one, PHP Code Camp, it is slide 62. See http://talks.php.net Sunday, March 5, 2006, 11:29:57 AM, you wrote: > Further to my earlier mail, does anyone have/know of a > working example that demonstrates private data held in > C/C++ and encapsulated within a Php/Zend object for > storage, exposing a Php class, per George Schlossnagle's > recommendation/example? > Cheers, > Andrew. Best regards, Marcus