# Help Calling PHP_FUNCTION's from C ( inside PHP extension's function)

- Thread: https://externals.io/message/37885
- Original archive: https://news-web.php.net/php.internals/37885
- Started by ksheera sagar on 2008-05-26T09:54:23+00:00
- Messages: 1
- 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

---

## #37885 — ksheera sagar — 2008-05-26T09:54:23+00:00

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

Hi,         Consider two *PHP* extension A and B.

     Extension A exports a PHP_FUNCTION to userspace.. Let s call it
Afunc().
     Extension B exports a PHP_FUNCTION to userspace.. Let s call it
Bfunc().

   Now, Is there any way to use Afunc1() inside the body of Bfunc()?

   I don't want to call back to userspace. I want to call the PHP_FUNCTION
of one extension in some other extension's C function.
   PHP_FUNCTION internally expands by a macro to C prototype. Am not getting
a proper idea in calling them by passing arguments
   and getting values returned.

   I have been trying hard in this regard. Please help me in this.
