Re: TSRM clarifications

From: Date: Thu, 29 Jul 2004 10:11:10 +0000
Subject: Re: TSRM clarifications
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-11609@lists.php.net to get a copy of this message
Hi,
Do I have to worry about these macros in my own functions ? Do I have to worry about them when doing lookups in zend hash tables (which I do to get cookie- and request data) ? It's just annoying not knowing much about them =).
TSRM macros are for accessing thread safe globals. If your code makes use of f.e. EG(foo) or PG(bar) or similiar, then you need the handles. You also need the handles if your function is called from another function that calls it with the TSRM macros, or if you call yourself a function that expects to get the TSRM handles passed. You can test your code with: --enable-maintainer-zts (PHP5) --enable-experimental-zts (PHP4) Stefan

« previous php.internals (#11609) next »