[php-src] PR #12119: Add support for verifying and syncronizing predefined constants with the manual

From: Date: Mon, 04 Sep 2023 09:03:53 +0000
Subject: [php-src] PR #12119: Add support for verifying and syncronizing predefined constants with the manual
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-23563@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12119 Author: kocsismate This adds support for automatically updating <variablelist>-style predefined constant pages with stubs (there is another one which uses tables, e.g. https://www.php.net/manual/en/errorfunc.constants.php): for now, only the constant type is affected, but in some cases, we could also display the constant value as well. The new feature is available via invoking ./build/gen_stub.php --replace-predefined-classes ./ ../doc-en. Additionally, I added support for finding undocumented global constants. A similar feature was already available for classes and functions/methods. Previously, one had to use a ./build/gen_stub.php --verify --replace-classsynopses --replace-methodsynopses ./ ../doc-en to trigger it. Now, the CLI API is slightly adjusted: a new --verify-manual option is introduced which can perform the task without any other option: ./build/gen_stub.php --verify-manual. I believe this change makes the usage more intuitive and leads to more granular control of features.

« previous php.git-pulls (#23563) next »