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 more "correct" when you're reading the code ...
php_myextension_globals_ctor(&myextension_globals TSRMLS_CC);
vs
php_myextension_globals_ctor(&myextension_globals , TSRMLS_C);
I'm not saying change anything, but from someone trying to make
headway with the source, it just looks right (parameters are separated
by a comma not a space).
Because with ZTS off, this would result in:
php_myextension_globals_ctor(&myextension_globals, );
Which would be a syntax error.
-- Gwynne, Daughter of the Code
"This whole world is an asylum for the incurable."
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php