if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &flag) == FAILURE) {
return;
}
Especially what's ZEND_NUM_ARGS() TSRMLS_CC
doing?
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &flag) == FAILURE) {
return;
}
Especially what's ZEND_NUM_ARGS() TSRMLS_CC
doing?
It looks like TSRMLS_CC is a macro that might expand to nothing or it might expand to an extra argument with a comma thrown in there:
http://blog.golemon.com/2006/06/what-heck-is-tsrmlscc-anyway.html
This Zend article says:
The bulk of the zend_parse_parameters() block will almost always look the same. ZEND_NUM_ARGS() provides a hint to the Zend Engine about the parameters which are to be retrieved, TSRMLS_CC is present to ensure thread safety
TSRMLS_CC
? –
Moats © 2022 - 2024 — McMap. All rights reserved.