> I'm currently working on a tiny "wrapper" > in C++ which will aid in easy embeding PHP > in C++ apps. > What functionality is it that you feel is lacking from sapi/embed? I know that C != C++, but C++ can certainly link against C libraries and using sapi/embed is pretty well dirt-simple. Or were you planning on dumbing it down to the point where the C++ developer doesn't need to know what zval* is, let alone how to interact with script 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: > That depends very largely on whether or not you want it to be PHP4 compatable. The structure is similar enough that PHP4 classes will work in PHP5, but if you're willing to eschew PHP4 support, it'd be best to go with a clean PHP5 design.... Wait.... are you planning on giving your PHP scripts direct access to your C++ object instances? Thats.... daring... -Sara -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php