# Removing reserved main::

- Thread: https://externals.io/message/3063
- Original archive: https://news-web.php.net/php.internals/3063
- Started by Sterling Hughes on 2003-06-30T19:55:49+00:00
- Messages: 2
- 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

---

## #3063 — Sterling Hughes — 2003-06-30T19:55:49+00:00

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

Hey,

Edin pointed out that we no longer need to reserve the "main" keyword in
zend engine 2.  As the main:: keyword was only reserved for the main::
namespace in the first place.  We no longer have namespaces, therefore
we no longer need to reserve main.

Attached is a patch to zend_compile.c that removes main.  I'll commit it
to zend_compile.c unless someone objects.

-Sterling

-- 
"A business that makes nothing but money is a poor kind of business." 
    - Henry Ford

---

## #3064 — Andi Gutmans — 2003-06-30T21:25:50+00:00

URL: https://externals.io/message/3063#3064 · In reply to: #3063

Nuke along.

At 03:55 PM 30/6/2003 -0400, Sterling Hughes wrote:
>Hey,
>
>Edin pointed out that we no longer need to reserve the "main" keyword in
>zend engine 2.  As the main:: keyword was only reserved for the main::
>namespace in the first place.  We no longer have namespaces, therefore
>we no longer need to reserve main.
>
>Attached is a patch to zend_compile.c that removes main.  I'll commit it
>to zend_compile.c unless someone objects.
>
>-Sterling
>
>--
>"A business that makes nothing but money is a poor kind of business."
>     - Henry Ford
