# beginer's questions for source code(1)

- Thread: https://externals.io/message/14855
- Original archive: https://news-web.php.net/php.internals/14855
- Started by taft on 1997-12-31T20:50:11+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #14855 — taft — 1997-12-31T20:50:11+00:00

URL: https://externals.io/message/14855#14855

Hi~ I am  a new comer for the internals.
1.  #ifdef ZTS  what does this mean? ZTS stands for what?
2.  can any one kindly give me a detail introduction for the TSRM mechanism

---

## #14868 — Alan Knowles — 2005-02-12T14:59:17+00:00

URL: https://externals.io/message/14855#14868 · In reply to: #14855

Zend Thread Safety  AFAIR,

The Basics of the thread saftey stuff are using global arrays indexed on 
the thread id, rather than just plain globals (no thread safe builds, 
eg. for apache or cli etc.)

There are a few good books with introductions to Internals (Georges, 
Advanced PHP,  is very good, and I think someone will point you towards 
at least 2 others)

There is a section in the manual - Zend API that covers quite alot, and 
lxr.php.net is very usefull..

Although it would be nice if the source used comments that could be run 
through doxgen.. (although I'm not voluteering to add them ;)

Regards
Alan

taft wrote:

>Hi~ I am  a new comer for the internals.
>1.  #ifdef ZTS  what does this mean? ZTS stands for what?
>2.  can any one kindly give me a detail introduction for the TSRM mechanism

---

## #14875 — taft — 2005-02-12T17:13:24+00:00

URL: https://externals.io/message/14855#14875 · In reply to: #14868

Thank you Alan. Could some one get more detail info on Zend Thread Safety?
Any document would be fine.
"Alan Knowles" <alan@akbkhome.com> ????
news:420E19C5.8030600@akbkhome.com...
> Zend Thread Safety  AFAIR,
>
> The Basics of the thread saftey stuff are using global arrays indexed on
> the thread id, rather than just plain globals (no thread safe builds,
> eg. for apache or cli etc.)
>
> There are a few good books with introductions to Internals (Georges,
> Advanced PHP,  is very good, and I think someone will point you towards
> at least 2 others)
>
> There is a section in the manual - Zend API that covers quite alot, and
> lxr.php.net is very usefull..
>
> Although it would be nice if the source used comments that could be run
> through doxgen.. (although I'm not voluteering to add them ;)
>
> Regards
> Alan
>
> taft wrote:
>
> > […]
mechanism

---

## #14887 — Alan Knowles — 2005-02-13T01:19:22+00:00

URL: https://externals.io/message/14855#14887 · In reply to: #14875

taft wrote:

>Thank you Alan. Could some one get more detail info on Zend Thread Safety?
>  
>
Probably the only resource is the source (some of the php books may 
cover it)
This has a nice introduction to thread concepts.
http://www.llnl.gov/computing/tutorials/workshops/workshop/pthreads/MAIN.html

Regards
Alan

>Any document would be fine.
>"Alan Knowles" <alan@akbkhome.com> ????
>news:420E19C5.8030600@akbkhome.com...
>  
>
> > […]
>mechanism
