Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21688 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59651 invoked by uid 1010); 26 Jan 2006 18:56:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59635 invoked from network); 26 Jan 2006 18:56:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2006 18:56:00 -0000 X-Host-Fingerprint: 64.233.162.196 zproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.162.196:13326] helo=zproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F8/34-06819-E3B19D34 for ; Thu, 26 Jan 2006 13:55:59 -0500 Received: by zproxy.gmail.com with SMTP id o1so439339nzf for ; Thu, 26 Jan 2006 10:55:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=VKZopU6zqiGdM96WJSv/yum048cQRFfbwyN4W1mLLxDn29RTeQ99oibHpBgvE2+SPJBSXKz5kSiSRFo7sCL9MJgc0qS1XsGFXE9qXssWSfw03cg5RcVWqHJGsyCV2VJcxJ/1OGSfxC2pySb1CzcdXqd130S+xqvIZzKKD2Ic6qk= Received: by 10.36.104.15 with SMTP id b15mr1688938nzc; Thu, 26 Jan 2006 10:55:55 -0800 (PST) Received: by 10.36.104.7 with HTTP; Thu, 26 Jan 2006 10:55:55 -0800 (PST) Message-ID: <90e24d4e0601261055p7d2aafe6oe05f5c56c89d1612@mail.gmail.com> Date: Thu, 26 Jan 2006 10:55:55 -0800 To: Kiput Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6386_26289960.1138301755300" References: Subject: Re: [PHP-DEV] Need help in defining a class from C code. From: phpdev@gmail.com (Jeremy Johnstone) ------=_Part_6386_26289960.1138301755300 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Kiput, Even if you are right about the state of the PHP/Zend code/documentation (which I am not commenting on either way), it's definitely not a wise idea to insult the very people who wrote that code when asking for their assistance. With that said, if no one else steps up with a code snippet before I get home this evening, I would be happy to provide you with one. -Jeremy On 1/25/06, Kiput 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 =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. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- --------------------------- Jeremy Johnstone http://www.jeremyjohnstone.com jsjohnst@php.net ------=_Part_6386_26289960.1138301755300--