Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30348 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57367 invoked by uid 1010); 28 Jun 2007 20:14:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57352 invoked from network); 28 Jun 2007 20:14:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2007 20:14:46 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:1293] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/72-21924-2B614864 for ; Thu, 28 Jun 2007 16:14:44 -0400 Received: (qmail 95456 invoked by uid 98); 28 Jun 2007 20:14:42 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3545. Clear:RC:1(127.0.0.1):. Processed in 0.075773 secs); 28 Jun 2007 20:14:42 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 28 Jun 2007 20:14:42 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 28 Jun 2007 15:14:42 -0500 (CDT) Message-ID: <33489.216.230.84.67.1183061682.squirrel@www.l-i-e.com> In-Reply-To: <10845a340706190138u65c868ccifcd8db7d8fb726cb@mail.gmail.com> References: <00.05.25319.F9955764@pb1.pair.com> <14.EA.00919.65307764@pb1.pair.com> <1182239257.3364.890.camel@johannes.nop> <10845a340706190138u65c868ccifcd8db7d8fb726cb@mail.gmail.com> Date: Thu, 28 Jun 2007 15:14:42 -0500 (CDT) To: RQuadling@GoogleMail.com Cc: Johannes =?iso-8859-1?Q?Schl=C3=BCter?= , "muquaddim" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: documentation of php5ts.dll and .NET wrapper From: ceo@l-i-e.com ("Richard Lynch") On Tue, June 19, 2007 3:38 am, Richard Quadling wrote: > On 19/06/07, Johannes Schlüter 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?