[php-src] PR #15505: Use php_error_docref() instead of zend_error() in session.c
| From: | cmb69 | Date: | Tue, 20 Aug 2024 11:50:02 +0000 |
| Subject: | [php-src] PR #15505: Use php_error_docref() instead of zend_error() in session.c | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28078@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15505
Author: cmb69
Using
php_error_docref() is preferable since it outputs additional details (which
function has been called and whether it is a startup or shutdown error), uses HTML markup, and also
provides a link to the documentation, if configured.
Since these deprecation warnings have been introduced recently[1][2], i.e. for PHP 8.4, there are no
BC concerns.
[1] <https://github.com/php/php-src/commit/e8ff7c70f9669f1a54c47c018ccc0f80bc0c929b>
[2] <https://github.com/php/php-src/commit/b36eac94d26bdced150d9d2178f6209893d9961f>
---
See also https://github.com/php/php-src/commit/e8ff7c70f9669f1a54c47c018ccc0f80bc0c929b#r145516647.
/cc @kocsismate and @TimWolla.