Need help in defining a class from C code.
| From: | Kiput | Date: | Wed, 25 Jan 2006 14:31:07 +0000 |
| Subject: | Need help in defining a class from C code. | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-21684@lists.php.net to get a copy of this message | ||
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.