krb
krb

Reputation: 16325

Where is 'tsrm_ls' in PHP sources?

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

Answers (4)

krb
krb

Reputation: 16325

Figured it out.

TSRMLS_FETCH();

Have to run it before calling any of those macros.

Upvotes: 2

mfonda
mfonda

Reputation: 8003

You might find this explanation quite helpful: http://blog.golemon.com/2006/06/what-heck-is-tsrmlscc-anyway.html

Upvotes: 4

Steve
Steve

Reputation: 1402

From what I can gather it might be in php_apache.c

Upvotes: 0

Related Questions