Skip to content

Commit

Permalink
Update documentation link references
Browse files Browse the repository at this point in the history
The documentation links annotated in the code comments of various functions and structures have been updated. They have been revised to more current, accurate, or relevant pages from the PHP internals manual. This ensures developers can refer to the correct and up-to-date resources when needed.
  • Loading branch information
koriym committed Jun 27, 2024
1 parent 08e2cba commit f714ca7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/rayaop.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/**
* インターセプト情報を保持する構造体
* @link https://www.php.net/manual/en/internals2.opcodes.php
* @link https://www.phpinternalsbook.com/php5/classes_objects/internal_structures_and_implementation.html
*/
typedef struct _intercept_info {
zend_string *class_name; // インターセプト対象のクラス名
Expand Down Expand Up @@ -45,7 +45,7 @@ static zend_class_entry *zend_ce_ray_aop_interceptedinterface; // インター

/**
* カスタム zend_execute_ex 関数
* @link https://www.phpinternalsbook.com/php7/extensions_design/zend_execute_ex.html
* @link http://php.adamharvey.name/manual/ja/migration55.internals.php
*/
static void rayaop_zend_execute_ex(zend_execute_data *execute_data)
{
Expand Down Expand Up @@ -173,7 +173,7 @@ PHP_FUNCTION(method_intercept)

/**
* インターセプト情報を解放する関数
* @link https://www.phpinternalsbook.com/php7/internal_structure/hash_tables.html
* @link https://www.phpinternalsbook.com/php7/internal_types/strings/zend_strings.html
*/
static int efree_intercept_info(zval *zv)
{
Expand All @@ -197,7 +197,7 @@ static int efree_intercept_info(zval *zv)

/**
* 拡張機能の初期化関数
* @link https://www.phpinternalsbook.com/php7/extensions_design/php_minit_function.html
* @link https://www.phpinternalsbook.com/php7/extensions_design/hooks.html
*/
PHP_MINIT_FUNCTION(rayaop)
{
Expand All @@ -215,7 +215,7 @@ PHP_MINIT_FUNCTION(rayaop)

/**
* 拡張機能のシャットダウン関数
* @link https://www.phpinternalsbook.com/php7/extensions_design/php_mshutdown_function.html
* @link https://www.phpinternalsbook.com/php7/extensions_design/hooks.html
*/
PHP_MSHUTDOWN_FUNCTION(rayaop)
{
Expand All @@ -235,7 +235,7 @@ PHP_MSHUTDOWN_FUNCTION(rayaop)

/**
* 拡張機能の情報表示関数
* @link https://www.phpinternalsbook.com/php7/extensions_design/php_minfo_function.html
* @link https://www.phpinternalsbook.com/php7/extensions_design/extension_infos.html
*/
PHP_MINFO_FUNCTION(rayaop)
{
Expand All @@ -250,14 +250,15 @@ static const zend_function_entry rayaop_functions[] = {
PHP_FE_END
};

// @link https://www.phpinternalsbook.com/php7/extensions_design/extension_infos.html
zend_module_entry rayaop_module_entry = {
STANDARD_MODULE_HEADER,
"rayaop", // 拡張機能の名前
rayaop_functions, // 拡張機能が提供する関数
PHP_MINIT(rayaop), // 拡張機能の初期化関数
PHP_MSHUTDOWN(rayaop), // 拡張機能のシャットダウン関数
NULL,
NULL,
NULL, /* Request init */
NULL, /* Request shutdown */
PHP_MINFO(rayaop), // 拡張機能の情報表示関数
PHP_RAYAOP_VERSION, // 拡張機能のバージョン
STANDARD_MODULE_PROPERTIES
Expand Down

0 comments on commit f714ca7

Please sign in to comment.