Help: Calling userland functions from within an extension
| From: | Dario Gonzalez | Date: | Sun, 18 Jan 2004 23:47:43 +0000 |
| Subject: | Help: Calling userland functions from within an extension | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-352@lists.php.net to get a copy of this message | ||
Hi all,
I've just finished a PHP extension and now I need to
know how to call a userland PHP function from it. I
need to use Headers() to be able to download a file
that is generated by my extension. So far I've used
this function from the php-script that uses my
extension, but I'd like to embed this functionallity
into it.
I've searched the php-sources to see the
implementation of headers(), but the function that
seems to do the job (at SAPI.h):
SAPI_API int sapi_header_op(
sapi_header_op_enum op,
void *arg
TSRMLS_DC);
...fails at link time complaining about an undefined
symbol related to sapi_header_op_enum (which is also
declared in that header). Do I need a SAPI *.so or
*.a module?
I apologyze if this is not the right place to ask
this, if it isn't, please point me to the correct one.
Thanks in advance.
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus