Re: Re: documentation of php5ts.dll and .NET wrapper
| From: | Johannes Schlüter | Date: | Tue, 19 Jun 2007 07:47:36 +0000 |
| Subject: | Re: Re: documentation of php5ts.dll and .NET wrapper | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30237@lists.php.net to get a copy of this message | ||
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