summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2003-04-27 21:57:07 +0000
committerSterling Hughes <sterling@php.net>2003-04-27 21:57:07 +0000
commita294f9b2d14cdee24123e57cda497abc356203ec (patch)
tree6903747660a2020ad861ce7b7b58a193ceddfc36 /sapi/cli/php_cli.c
parent8820a9cdcc4aafe47e266ff4e34026d948a50ba6 (diff)
downloadphp-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