PHP 手冊
上一頁 |  | 下一頁

# 章 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

上一頁 | 最開頭 | 下一頁
Troubleshooting | 上一層 | Header File Inclusions