PHP-ext devel: How to call a userland function from within a dynamic

This is a discussion on PHP-ext devel: How to call a userland function from within a dynamic within the PHP Language forums, part of the PHP Programming Forums category; Hi all, I've just finished my first dynamically-loadable-cpp-implemented PHP extension and now I need to know ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2004
Dario Gonzalez
 
Posts: n/a
Default PHP-ext devel: How to call a userland function from within a dynamic

Hi all,

I've just finished my first dynamically-loadable-cpp-implemented PHP
extension and now I need to know how to call a userland PHP function
from inside the extension. 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 newsgroup, if it isn't, please
point me to the correct one.

Thanks in advance.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0