# Where is the EG macro defined?

- Thread: https://externals.io/message/45885
- Original archive: https://news-web.php.net/php.internals/45885
- Started by Mark Skilbeck on 2009-10-28T21:57:54+00:00
- Messages: 9
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45885 — Mark Skilbeck — 2009-10-28T21:57:54+00:00

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

I'd like to check out how the EG macro (I assume it's a macro) works. 
However, I cannot find it :(

---

## #45886 — Felipe Pena — 2009-10-28T22:00:26+00:00

URL: https://externals.io/message/45885#45886 · In reply to: #45885

Hi.


2009/10/28 Mark Skilbeck <markskilbeck@gmail.com>

> I'd like to check out how the EG macro (I assume it's a macro) works.
> However, I cannot find it :(
>
>
Take a look in Zend/zend_globals_macros.h


-- 
Regards,
Felipe Pena

---

## #45887 — Graham Kelly — 2009-10-28T22:03:12+00:00

URL: https://externals.io/message/45885#45887 · In reply to: #45885

Hi,

You might find http://lxr.php.net to be a useful tool to help with finding
definitions in the PHP code base.

- Graham Kelly

On Wed, Oct 28, 2009 at 5:57 PM, Mark Skilbeck <markskilbeck@gmail.com>wrote:

> I'd like to check out how the EG macro (I assume it's a macro) works.
> However, I cannot find it :(

---

## #45888 — Mark Skilbeck — 2009-10-28T22:30:25+00:00

URL: https://externals.io/message/45885#45888 · In reply to: #45887

Graham Kelly wrote:
> Hi,
> 
> You might find http://lxr.php.net to be a useful tool to help with finding
> definitions in the PHP code base.
> 
> - Graham Kelly
> 
> On Wed, Oct 28, 2009 at 5:57 PM, Mark Skilbeck <markskilbeck@gmail.com>wrote:
> 
> > […]
> 

Thank you very much. I did have a look for something like this, as I was 
sure I'd used it before.

Thanks again,
Mark.

---

## #45889 — Mark Skilbeck — 2009-10-28T22:31:42+00:00

URL: https://externals.io/message/45885#45889 · In reply to: #45886

Felipe Pena wrote:
> Hi.
> 
> 
> 2009/10/28 Mark Skilbeck <markskilbeck@gmail.com>
> 
> > […]
> Take a look in Zend/zend_globals_macros.h
> 
> 

Cheers, Felipe. It's funny that VS didn't find it when I searched the 
solution :S Stupid thing.

Thanks,
Mark.

---

## #45890 — mm w — 2009-10-28T22:58:38+00:00

URL: https://externals.io/message/45885#45890 · In reply to: #45887

grep is your friend, something like that grep -R "define EG("
/usr/include/php/Zend, it's a quite common issue you crossed

Best


> Hi,
>
> You might find http://lxr.php.net to be a useful tool to help with finding
> definitions in the PHP code base.
>
> - Graham Kelly
>
> On Wed, Oct 28, 2009 at 5:57 PM, Mark Skilbeck <markskilbeck@gmail.com>wrote:
>
> > […]

---

## #45891 — Keisial — 2009-10-28T23:01:08+00:00

URL: https://externals.io/message/45885#45891 · In reply to: #45885

Mark Skilbeck wrote:
> I'd like to check out how the EG macro (I assume it's a macro) works.
> However, I cannot find it :(
>
Zend/zend_globals_macros.h

EG means executor_globals. This macro provides access to the value named
in the parameter.
If running without multi-thread support, it's just a call to the struct,
else it expands for accessing the one
for the current instance (via the hidden __tsrm parameter).

---

## #45892 — Mark Skilbeck — 2009-10-28T23:41:17+00:00

URL: https://externals.io/message/45885#45892 · In reply to: #45890

mm w wrote:
> grep is your friend, something like that grep -R "define EG("
> /usr/include/php/Zend, it's a quite common issue you crossed
> 
> Best
> 
> 
> > […]

Windows :(

I did run a search with VS but funnily enough it returned no results.

Mark.

---

## #45893 — Mark Skilbeck — 2009-10-28T23:41:44+00:00

URL: https://externals.io/message/45885#45893 · In reply to: #45891

Keisial wrote:
> Mark Skilbeck wrote:
> > […]
> Zend/zend_globals_macros.h
> 
> EG means executor_globals. This macro provides access to the value named
> in the parameter.
> If running without multi-thread support, it's just a call to the struct,
> else it expands for accessing the one
> for the current instance (via the hidden __tsrm parameter).
> 

Cheers for the info :)
