Skip to content

Commit

Permalink
Add new reference links in rayaop.c
Browse files Browse the repository at this point in the history
New reference links have been added in the rayaop.c file, providing more context and help over the struct functionality and the registration of the method intercept function. These links lead to additional resources on PHP internals and extension design.
  • Loading branch information
koriym committed Jun 27, 2024
1 parent f714ca7 commit 21037ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rayaop.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/**
* インターセプト情報を保持する構造体
* @link https://www.phpinternalsbook.com/php5/classes_objects/internal_structures_and_implementation.html
* @link http://php.adamharvey.name/manual/ja/internals2.variables.tables.php
*/
typedef struct _intercept_info {
zend_string *class_name; // インターセプト対象のクラス名
Expand Down Expand Up @@ -245,6 +246,7 @@ PHP_MINFO_FUNCTION(rayaop)
php_info_print_table_end(); // 情報テーブルの終了
}

// https://www.phpinternalsbook.com/php7/extensions_design/php_functions.html
static const zend_function_entry rayaop_functions[] = {
PHP_FE(method_intercept, arginfo_method_intercept) // method_intercept関数の登録
PHP_FE_END
Expand Down

0 comments on commit 21037ed

Please sign in to comment.