what means is 'CC' and 'DC' in the 'TSRMLS_CC' and 'TSRMLS_DC' ?

php.internals

Yan Ben

19 years ago
Hi! I know that the 'TSRMLS' is an abbreviation of 'Thread Safe Resource Manager Local Storage', but what means is 'CC' and 'DC' in the 'TSRMLS_CC' and 'TSRMLS_DC' ?

Johannes Schlueter

19 years ago
Hi, On Mon, 2007-01-22 at 04:11 +0800, yAnbiN wrote:
> Hi! > I know that the 'TSRMLS' is an abbreviation of 'Thread Safe Resource Manager > Local Storage', but what means is 'CC' and 'DC' in the 'TSRMLS_CC' and > 'TSRMLS_DC' ?
This has been asked multiple times before on this list, but once again: _CC - call with comma _C - call (without comma) _DC - declaration with comma _D - declaration (w/o comma) johannes

Tim Starling

19 years ago
Johannes Schlüter wrote:
> Hi, > > On Mon, 2007-01-22 at 04:11 +0800, yAnbiN wrote: >> Hi! >> I know that the 'TSRMLS' is an abbreviation of 'Thread Safe Resource Manager >> Local Storage', but what means is 'CC' and 'DC' in the 'TSRMLS_CC' and >> 'TSRMLS_DC' ? > > This has been asked multiple times before on this list, but once again: > > _CC - call with comma > _C - call (without comma) > _DC - declaration with comma > _D - declaration (w/o comma) > > johannes
RTFM http://www.php.net/manual/en/tsrm.php Hmmm.... OK, maybe someone should WTFM. Well in the meantime, we can always just read the detailed comments in the source, right? -- Tim Starling

Sara Golemon

19 years ago
>>> I know that the 'TSRMLS' is an abbreviation of 'Thread Safe Resource Manager >>> Local Storage', but what means is 'CC' and 'DC' in the 'TSRMLS_CC' and >>> 'TSRMLS_DC' ? >> This has been asked multiple times before on this list, but once again: >> >> _CC - call with comma >> _C - call (without comma) >> _DC - declaration with comma >> _D - declaration (w/o comma) >> >> johannes > > RTFM > > http://www.php.net/manual/en/tsrm.php > > Hmmm.... OK, maybe someone should WTFM. Well in the meantime, we can > always just read the detailed comments in the source, right? >
Feel free to copy/paste: http://blog.libssh2.org/index.php?/archives/22-What-the-heck-is-TSRMLS_CC-anyway.html -Sara