Reputation: 16325
I'm coding an extension to change the way PHP handles errors. Where is 'tsrm_ls' declared? I can't find it.
P.S. I think it is a 'typedef'
Edit: Still can't find it. Is it declared locally? I think it is used in the EG macro.
Upvotes: 3
Views: 1131
Reputation: 16325
Figured it out.
TSRMLS_FETCH();
Have to run it before calling any of those macros.
Upvotes: 2
Reputation: 8003
You might find this explanation quite helpful: http://blog.golemon.com/2006/06/what-heck-is-tsrmlscc-anyway.html
Upvotes: 4
Reputation: 52372
http://lxr.php.net/search?q=tsrm_ls&project=PHP_5_3&defs=&refs=&path=&hist=
Upvotes: 1