beginer's questions for source code(1)

php.internals

taft

28 years ago
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

Alan Knowles

21 years ago
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:

Mikey

21 years ago
> There is a section in the manual - Zend API that covers quite > alot, and lxr.php.net is very usefull..
This is a great resource - how come it isn't mentioned anywhere in the manual? Mikey

taft

21 years ago
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: > > >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

Alan Knowles

21 years ago
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