downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Header File Inclusions> <Troubleshooting
[edit] Last updated: Mon, 01 Nov 2010

view this page in

Cap. 33. Source Discussion

Now that you've got a safe build environment and you're able to include the modules into PHP files, it's time to discuss how everything works.

Module Structure

All PHP modules follow a common structure:

  • Header file inclusions (to include all required macros, API definitions, etc.)

  • C declaration of exported functions (required to declare the Zend function block)

  • Declaration of the Zend function block

  • Declaration of the Zend module block

  • Implementation of get_module()

  • Implementation of all exported functions



add a note add a note User Contributed Notes Source Discussion
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites