So, when would it ever be "right" to use the _C version?
When you have function that its one (possible) argument is TRSM pointer.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED] http://www.zend.com/
(408)253-8829 MSN: [EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Develop
On Tue, June 19, 2007 3:38 am, Richard Quadling wrote:
> On 19/06/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote:
>> 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 enabl
So I have to write my own Sapi module in PHP way :-(
It looks like too tough for me. And its the right way.
My intention is to implement a simple funcion
int execute(char *filename); //filename is a php file
For I have to write a sapi module. No matter I'll at least try it.
Now the big question.
On Jun 19, 2007, at 4:38 AM, Richard Quadling wrote:
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.
Why have ...
TSRMLS_CC
when ...
, TSRMLS_C
actually looks
Richard Quadling wrote:
On 19/06/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote:
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.
Why have ...
TSRMLS_CC
when ...
On 19/06/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote:
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.
Why have ...
TSRMLS_CC
when ...
, TSRMLS_C
actually lo
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
> #d
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 m