# adding functions to existing extensions

- Thread: https://externals.io/message/14074
- Original archive: https://news-web.php.net/php.internals/14074
- Started by Binam on 2004-12-15T17:53:40+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

---

## #14074 — Binam — 2004-12-15T17:53:40+00:00

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

I added the ftp_get_resp() function I was talking about. Everything
compiles fine, but when try to use it I get "Fatal error: Call to
undefined function ftp_get_resp() in /opt/php-dev/bin/test.php on line
4" any ideas on what I am missing? I did make clean, and recompiled but
still the same. I am pretty sure I have everything setup right, I have
the PHP_FUNCTION(ftp_get_resp); in php_ftp.h, and have the definition in
php_ftp.c.
 
tia,
Jess

---

## #14075 — Wez Furlong — 2004-12-15T18:24:47+00:00

URL: https://externals.io/message/14074#14075 · In reply to: #14074

You need to add a PHP_FE(ftp_get_resp, NULL) into the function table;
search for PHP_FE to find the other entries.

--Wez.


On Wed, 15 Dec 2004 10:53:40 -0700, Binam, Jesse
<Jesse.Binam@simplot.com> wrote:
>  
> I added the ftp_get_resp() function I was talking about. Everything compiles
> fine, but when try to use it I get "Fatal error: Call to undefined function
> ftp_get_resp() in /opt/php-dev/bin/test.php on line 4" any ideas on what I
> am missing? I did make clean, and recompiled but still the same. I am pretty
> sure I have everything setup right, I have the PHP_FUNCTION(ftp_get_resp);
> in php_ftp.h, and have the definition in php_ftp.c. 
>   
> tia, 
> Jess
