Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59062 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97831 invoked from network); 19 Mar 2012 20:54:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2012 20:54:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain l-i-e.com designates 67.139.134.202 as permitted sender) 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:4475] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/72-19822-9EC976F4 for ; Mon, 19 Mar 2012 15:54:04 -0500 Received: (qmail 86642 invoked by uid 98); 19 Mar 2012 20:54:03 -0000 Received: from localhost by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.05 ( Clear:RC:1(127.0.0.1):. Processed in 0.03687 secs); 19 Mar 2012 20:54:03 -0000 Received: from localhost (HELO www.l-i-e.com) (127.0.0.1) by localhost with SMTP; 19 Mar 2012 20:54:03 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 19 Mar 2012 15:54:03 -0500 Message-ID: In-Reply-To: <4F678CE3.4030902@gmail.com> References: <4F678CE3.4030902@gmail.com> Date: Mon, 19 Mar 2012 15:54:03 -0500 To: internals@lists.php.net User-Agent: SquirrelMail/1.4.21 [SVN] 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] TSRMLS_* keywords in PHP source From: ceo@l-i-e.com ("Richard Lynch") On Mon, March 19, 2012 2:45 pm, Barbu Paul Gheorghe wrote: > What role does the keywords TSRMLS_CC, TSRMLS_DC, TSRMLS_D have when > passed > along with a argument in PHP's source? > For example in this random file: > > http://lxr.php.net/opengrok/xref/PHP_5_4/ext/intl/formatter/formatter_data.c > > > I don't even know if "keyword" is the right technical term for it > because it's > the first time I see this kind of call in C: It's a macro. You can find it in the zend / tsrm files. If I recall correctly the _CC and _DC and _D have to do with whether you need a comma (,) after the macro or not... It's been awhile, so don't quote me on that. -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE