Skip to content

Conversation

@h-marumoto
Copy link
Contributor

https://www.php.net/manual/ja/function.set-error-handler.php
上記ページのサンプルコード6-7行目で、

        // error_reporting 設定に含まれていないエラーコードのため、
        // 標準の PHP エラーハンドラに渡されます。

と記載されていますが、標準のPHP エラーハンドラに処理を渡すためにはfalseを返却する必要があります。
こちらを修正しましたのでご確認ください。

Copy link
Contributor

@youkidearitai youkidearitai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/php/doc-en/blame/master/reference/errorfunc/functions/set-error-handler.xml#L215 を見るとちゃんと return false; になっているのに日本語だけこうなってましたね。

Nice catch! Approveします!

@youkidearitai youkidearitai merged commit 7ad7192 into php:master Nov 19, 2025
2 checks passed
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.

2 participants