[php-src] PR #25531: gen_stub: arg --replace-predefined-constants on entries with several constants
| From: | jordikroon | Date: | Tue, 17 Nov 2026 18:34:46 +0000 |
| Subject: | [php-src] PR #25531: gen_stub: arg --replace-predefined-constants on entries with several constants | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40741@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25531
Author: jordikroon
build/gen_stub.php --replace-predefined-constants crashes in
replacePredefinedConstants() with
```
Uncaught Error: Call to a member function replaceChild() on null
```
This happens when a table <entry> in the manual lists more than one
<constant>. For example DOM_INDEX_SIZE_ERR / Dom\INDEX_SIZE_ERR in
reference/dom/constants.xml.
To reproduce:
> build/gen_stub.php --replace-predefined-constants . /path/to/doc-en/