# Registering PPP methods

- Thread: https://externals.io/message/645
- Original archive: https://news-web.php.net/php.internals/645
- Started by Andrei Zmievski on 2003-04-03T18:42:57+00:00
- Messages: 3
- 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

---

## #645 — Andrei Zmievski — 2003-04-03T18:42:57+00:00

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

Today I ran into a problem because I needed to register an internal
class that had some protected methods. Currently, the only way to do it
is by doing a zend_hash_find() on ce->function_table after registration
and updating fn_flags field manually. We should find an easier way to
specify fn_flags before registration. What does everyone think of adding
an extra field to zend_function_entry structure that would contain
initial flags for the method?

-Andrei                                       http://www.gravitonic.com/

"I still find each day too short for all the thoughts I want to think, 
all the walks I want to take, all the books I want to read, and all the
friends I want to see." 
              -John Burroughs

---

## #650 — marcus.boerger@t-online.de — 2003-04-03T20:27:10+00:00

URL: https://externals.io/message/645#650 · In reply to: #645

At 20:42 03.04.2003, Andrei Zmievski wrote:
>Today I ran into a problem because I needed to register an internal
>class that had some protected methods. Currently, the only way to do it
>is by doing a zend_hash_find() on ce->function_table after registration
>and updating fn_flags field manually. We should find an easier way to
>specify fn_flags before registration. What does everyone think of adding
>an extra field to zend_function_entry structure that would contain
>initial flags for the method?


Agreed!
Please make a new PHP_FE_EX or PHP_METHOD macro for that...

marcus

---

## #659 — Timm Friebe — 2003-04-04T09:26:28+00:00

URL: https://externals.io/message/645#659 · In reply to: #645

> Today I ran into a problem because I needed to register an internal
> class that had some protected methods. Currently, the only way to do it
> is by doing a zend_hash_find() on ce->function_table after registration
> and updating fn_flags field manually. We should find an easier way to
> specify fn_flags before registration. What does everyone think of adding
> an extra field to zend_function_entry structure that would contain
> initial flags for the method?

Good idea!

- Timm
