Source Discussion

PHP マニュアル
前のページ |  | 次のページ

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