Re: Re: documentation of php5ts.dll and .NET wrapper

From: Date: Thu, 28 Jun 2007 20:14:42 +0000
Subject: Re: Re: documentation of php5ts.dll and .NET wrapper
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-30348@lists.php.net to get a copy of this message
On Tue, June 19, 2007 3:38 am, Richard Quadling wrote: > On 19/06/07, Johannes Schlüter <johannes@schlueters.de> 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). So, when would it ever be "right" to use the _C version? Someplace where the code is completely meaningless in a non-ZTS environment only?... That seems kind of an awful lot of meta-knowledge to have to carry around in one's head... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.internals (#30348) next »