# [patch] extending internal functions with module information

- Thread: https://externals.io/message/18490
- Original archive: https://news-web.php.net/php.internals/18490
- Started by Johannes Schlueter on 2005-08-27T12:34: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

---

## #18490 — Johannes Schlueter — 2005-08-27T12:34:49+00:00

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

Hi Andi et al.,

the attached patch adds the module registering an internal function to the 
zend_internal_function structure. This information can be (and is by this 
patch) used by the reflection API - currently it's quite hard to get the 
extension defining a function. I additionally used this information to make a 
more verbose error messages when redefining an internal function.

Please take a look at it and commit at will.

johannes

p.s. If the patch doesn't reach the list it's available at 
http://svn.schlueters.de/phpatches/HEAD/zend_function_module.diff, too.

p.p.s. In Steph's PAT directory is my ReflectionProptery::getLinenumber() 
patch still waiting, too ;-) http://www.zend.com/zend/week/pat/pat26.txt

---

## #18547 — Andi Gutmans — 2005-08-30T05:20:49+00:00

URL: https://externals.io/message/18490#18547 · In reply to: #18490

Hi Johannes,

I think this patch is useful and I see no reason not to include it. 
Due to API breakage I suggest we only put this into HEAD.

Andi

At 05:34 AM 8/27/2005, Johannes Schlueter wrote:
>Hi Andi et al.,
>
>the attached patch adds the module registering an internal function to the
>zend_internal_function structure. This information can be (and is by this
>patch) used by the reflection API - currently it's quite hard to get the
>extension defining a function. I additionally used this information to make a
>more verbose error messages when redefining an internal function.
>
>Please take a look at it and commit at will.
>
>johannes
>
>p.s. If the patch doesn't reach the list it's available at
>http://svn.schlueters.de/phpatches/HEAD/zend_function_module.diff, too.
>
>p.p.s. In Steph's PAT directory is my ReflectionProptery::getLinenumber()
>patch still waiting, too ;-) http://www.zend.com/zend/week/pat/pat26.txt
