Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70403 invoked by uid 1010); 25 Jan 2006 14:31:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70388 invoked from network); 25 Jan 2006 14:31:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2006 14:31:10 -0000 X-Host-Fingerprint: 64.233.184.198 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.198:32292] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2C/80-06819-EAB87D34 for ; Wed, 25 Jan 2006 09:31:10 -0500 Received: by wproxy.gmail.com with SMTP id i13so190678wra for ; Wed, 25 Jan 2006 06:31:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Mzv6c/EME1heNJO7vn2rS5al08UIc1hfvK+eSEzF+b2mDvL3dmiGfuDikXdA4fYvb/v6NaBFr8lABmBGTIS6sgVL4u2RinOBdlvv1mbyZHMxRrxqtg/T7rdi69zXpQ+z/hYCKE9OjFiKWUvrgPH5V+7LOuSVoC6PU/8zaMIuZ3o= Received: by 10.65.74.1 with SMTP id b1mr292431qbl; Wed, 25 Jan 2006 06:31:07 -0800 (PST) Received: by 10.65.192.14 with HTTP; Wed, 25 Jan 2006 06:31:07 -0800 (PST) Message-ID: Date: Wed, 25 Jan 2006 15:31:07 +0100 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Need help in defining a class from C code. From: kiputnik@gmail.com (Kiput) 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 =3D $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. =3D( If this is wrong list then I'm sorry, thought my question is closely tied to PHP's internals after all. =3D) Thanks.