Re: Need help in defining a class from C code.

From: Date: Thu, 26 Jan 2006 19:30:29 +0000
Subject: Re: Need help in defining a class from C code.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-21689@lists.php.net to get a copy of this message
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

« previous php.internals (#21689) next »