Hi again,

On Mon, 2007-06-18 at 18:12 -0400, muquaddim wrote:
> I think the configure option "--disable-zts" will work on the following 
> lines.
> 
> #ifdef ZTS
> #define TSRMLS_D void ***tsrm_ls
> #define TSRMLS_DC , TSRMLS_D
> #define TSRMLS_C tsrm_ls
> #define TSRMLS_CC , TSRMLS_C
> #else
> #define TSRMLS_D
> #define TSRMLS_DC
> #define TSRMLS_C
> #define TSRMLS_CC
> 
> In that case my function definition will be easily understandable as I don't 
> understand the TSRMLS_DC part.

Sara has a nice article about TSRM:
http://blog.libssh2.org/index.php?/archives/22-What-the-heck-is-TSRMLS_CC-anyway.html
 and since you're using php5ts.dll you have zts enabled.

> I am planning to call the php5nsapi.dll entry points. those were most easy 
> for me.
> Just tell me someone, Is it the right way?

When using php5nsapi.dll you're application has to offer the nsapi stuff
PHP uses then.

As said in my last post: The best is to build a custom SAPI which fit's
your need. I mentioned sapi/embed, Wez had a few suggestions about
activescript.

Just calling some random API functions will most likely not work, you
should first write a (small) sapi in C giving you the API you need for
your needs.

johannes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to