FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Generator::getTitle(): improve `libxml` cross-version compatibility by jrfnl · Pull Request #1485 · PHPCSStandards/PHP_CodeSniffer · GitHub

Generator::getTitle(): improve libxml cross-version compatibility - #1485

Merged
jrfnl merged 1 commit into
3.xfrom
php-8.6/generator-gettitle-make-libxml-cross-version-compatible
Aug 17, 2026
Merged

Generator::getTitle(): improve libxml cross-version compatibility#1485
jrfnl merged 1 commit into
3.xfrom
php-8.6/generator-gettitle-make-libxml-cross-version-compatible

Conversation

jrfnl commented Aug 16, 2026

Copy link
Copy Markdown
Member

Description

The format of the DOMDocument::$documentURI value on PHP 8.6 on Windows has changed due to changes in libxml 21500.

This commit updates the code in the Generator::getTitle() method to handle the filename format in a manner which is cross-version compatible with both libxml < 21500 and well as >= 21500 and should work on both *nix as well as Windows.

This change should fix the test failure for PHP 8.6 on Windows.

Refs:

Suggested changelog entry

  • Generators: the fallback for missing document titles to use the file name was broken on Windows when PHP was compiled with libxml >= 21500 (as it will be in PHP 8.6).

The format of the `DOMDocument::$documentURI` value on PHP 8.6 on Windows has changed due to changes in `libxml` `21500`.

This commit updates the code in the `Generator::getTitle()` method to handle the filename format in a manner which is cross-version compatible with both `libxml` < 21500 and well as >= 21500 and should work on both *nix as well as Windows.

This change should fix the test failure for PHP 8.6 on Windows.

Refs:
* php/php-src#23326
* php/php-src@bc7537d
jrfnl added this to the 3.13.7 milestone Aug 16, 2026
jrfnl mentioned this pull request Aug 16, 2026
13 tasks
jrfnl merged commit 2d143e9 into 3.x Aug 17, 2026
83 checks passed
jrfnl deleted the php-8.6/generator-gettitle-make-libxml-cross-version-compatible branch August 17, 2026 00:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL