Skip to content

Define attribute signatures - #5631

Merged
jordikroon merged 6 commits into
php:masterfrom
jordikroon:attribute-definition
Sep 11, 2026
Merged

Define attribute signatures#5631
jordikroon merged 6 commits into
php:masterfrom
jordikroon:attribute-definition

Conversation

@jordikroon

@jordikroon jordikroon commented Jun 22, 2026

Copy link
Copy Markdown
Member

Depends on php/phd#256

Planning on working out more attributes before finalising this PR.

Update the #[\Deprecated] attribute to include the 'since' parameter specifying version 8.1, providing clearer documentation of when this function was deprecated.
@jordikroon
jordikroon marked this pull request as draft June 23, 2026 19:09
@jordikroon
jordikroon marked this pull request as ready for review June 23, 2026 21:18
@jordikroon jordikroon changed the title Draft: Define attribute signatures Define attribute signatures Jun 23, 2026
@jordikroon

Copy link
Copy Markdown
Member Author

These have been synced with gen_stub.php targeting PHP 8.5 branch.

@jordikroon
jordikroon removed the request for review from ndossche June 23, 2026 21:21
@jordikroon
jordikroon merged commit 8dc5bef into php:master Sep 11, 2026
4 checks passed
KentarouTakeda added a commit to php/doc-ja that referenced this pull request Sep 13, 2026
php/doc-en@8dc5bef8php/doc-en#5631)に追従しました。変更箇所は属性シグネチャと
`<refentry>` の属性順のみで、日本語の訳文は変更していません。

### `#[\Deprecated]` に since / message を付与(55件)

reference/ 配下: zip (10), reflection (6), datetime (6), mysqli (5), mhash (5),
spl (4), enchant (4), openssl (3), xml (2), strings (2), curl (2), uodbc (1),
shmop (1), random (1), libxml (1), image (1), fileinfo (1)

### `#[\SensitiveParameter]` を付与(3件)

reference/openssl/functions/openssl-password-hash.xml,
reference/openssl/functions/openssl-password-verify.xml,
reference/pgsql/functions/pg-change-password.xml

### `<refentry>` の属性順を `xml:id` → `xmlns` に変更(6件・上記 55 件に含む)

reference/enchant/functions/* (4), reference/fileinfo/functions/finfo-close.xml,
reference/shmop/functions/shmop-close.xml

### その他

reference/uodbc/functions/odbc-result-all.xml は ja 側に `#[\Deprecated]` 行が
無かったため、置換ではなく追加で反映しています。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants