diff options
author | Sterling Hughes <sterling@php.net> | 2003-04-27 21:57:07 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2003-04-27 21:57:07 +0000 |
commit | a294f9b2d14cdee24123e57cda497abc356203ec (patch) | |
tree | 6903747660a2020ad861ce7b7b58a193ceddfc36 /sapi/cli/php_cli.c | |
parent | 8820a9cdcc4aafe47e266ff4e34026d948a50ba6 (diff) | |
download | php-git-a294f9b2d14cdee24123e57cda497abc356203ec.tar.gz |
add TSRMLS_FETCH_CTX which allows you to map a variable to a ts context.
This is useful when you are mapping callbacks, you can simply associate
a struct member to a thread context:
void mycallback(my_struct *user) {
TSRMLS_FETCH_CTX(user->thread_ctx);
}
Diffstat (limited to 'sapi/cli/php_cli.c')
0 files changed, 0 insertions, 0 deletions