Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59055 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83632 invoked from network); 19 Mar 2012 19:50:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2012 19:50:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=jelle.zijlstra@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jelle.zijlstra@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: jelle.zijlstra@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:63765] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/91-09833-60E876F4 for ; Mon, 19 Mar 2012 14:50:31 -0500 Received: by wgbdq13 with SMTP id dq13so980205wgb.11 for ; Mon, 19 Mar 2012 12:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/wGVJ3mQMVcuVPjCOJxaYC+bcXUPbIEM4sHWhv1dnDk=; b=vQwHPdSNEffDZvI+25Xc5Zu0EPaR6hPNpBrtyJZ/oh9VwH8Z+201186fYt//fGV4xS 13Ej0jI8lNLeZ5tVEbZHC6avnX16wbBkHsk0qgj6f0lCOM74YCXfY1ROEKFLGIF30ryK I3X4uB8YOsY/G3snpaW93p3pVJPP9m7+3SedOmgGK7GWZugBijKIkQd/aVWxN5TBlHRn lcJrX9X9e89rtJY6fR26MxwKWa2vNYZayeBkSsdLVrmvu6uLIFBBGrh+XcOLsERFqZTt cg2PbwzDRTNeAOa6ZX65KfWu1fhEgYzrVexwWFq3Nzg8idkTEcaxei4v6M37gtV58wN0 UUew== MIME-Version: 1.0 Received: by 10.180.73.143 with SMTP id l15mr22391757wiv.11.1332186628172; Mon, 19 Mar 2012 12:50:28 -0700 (PDT) Received: by 10.216.153.23 with HTTP; Mon, 19 Mar 2012 12:50:28 -0700 (PDT) In-Reply-To: <4F678CE3.4030902@gmail.com> References: <4F678CE3.4030902@gmail.com> Date: Mon, 19 Mar 2012 15:50:28 -0400 Message-ID: To: Barbu Paul Gheorghe Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d043c06bcbf29d704bb9dde45 Subject: Re: [PHP-DEV] TSRMLS_* keywords in PHP source From: jelle.zijlstra@gmail.com (Jelle Zijlstra) --f46d043c06bcbf29d704bb9dde45 Content-Type: text/plain; charset=ISO-8859-1 Those are macros that are defined only if PHP's Thread-Safe Resource Manager is enabled at compile time; it passes in additional information needed by the TSRM. 2012/3/19 Barbu Paul Gheorghe > Hello! > > 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: > > foo(data_type variable_name "keyword"); > > -- > Barbu Paul - Gheorghe > Common sense is not so common - Voltaire > Visit My GitHub profile to see my open-source projects - > https://github.com/paullik > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d043c06bcbf29d704bb9dde45--