Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78792 invoked by uid 1010); 26 Jan 2006 19:28:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78777 invoked from network); 26 Jan 2006 19:28:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2006 19:28:27 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:51695] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 1C/47-06819-AD229D34 for ; Thu, 26 Jan 2006 14:28:26 -0500 Received: from [192.168.1.3] (dslb-084-063-007-114.pools.arcor-ip.net [84.63.7.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 921F835C1BF; Thu, 26 Jan 2006 20:28:23 +0100 (CET) Date: Thu, 26 Jan 2006 20:30:29 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1291119761.20060126203029@marcus-boerger.de> To: Kiput Cc: internals@lists.php.net In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Need help in defining a class from C code. From: helly@php.net (Marcus Boerger) Hello Kiput, look into ext/spl/spl_array.c or here: http://talks.somabo.de & nobody stops you from making it less messy if you think it is, this is all open source. Wednesday, January 25, 2006, 3:31:07 PM, you wrote: > Hi. > I'm currently working on a tiny "wrapper" in C++ which will aid in > easy embeding PHP in C++ apps. Till now I managed to work on it > without any help, but this time I need your help guys - I'm tired of > that messy, undocumented PHP/Zend code. Could anyone (I'm sure it's 5 > minutes of work, since most of you work with PHP/Zend frequently) > write me a snippet of code in C which would be equal to following PHP > code: > class Foobar > { > function __set( $name, $value ) > { > echo( "$name = $value" ); > } > function __get( $name ) > { > echo( "$name" ); > } > } > I was working, but since I've implemented resource zval type into my > lib it somehow (I even didn't noticed) stopped. =( > If this is wrong list then I'm sorry, thought my question is closely > tied to PHP's internals after all. =) > Thanks. Best regards, Marcus