Skip to content

imagick: fix broken methodsynopsis xpointers in exception classes#5700

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/imagick-exception-xpointers
Open

imagick: fix broken methodsynopsis xpointers in exception classes#5700
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/imagick-exception-xpointers

Conversation

@lacatoire

@lacatoire lacatoire commented Jul 23, 2026

Copy link
Copy Markdown
Member

The five Imagick exception classes had broken <xi:include> xpointers masked
by empty <xi:fallback/>: an own-methods include pointing at a non-existent
refentry, and an inherited-methods include using the class name as
methodsynopsis role instead of Exception. Both selected an empty node set,
so the pages rendered with their inherited methods missing.

Fixed by mirroring the working jsonexception.xml pattern.

Related:

@alfsb alfsb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Plan to merge this after the bigger one, that also removes xi:fallback.

These five exception classes have no own methods, so the &Methods; include
pointed at a non-existent refentry. The &InheritedMethods; include used the
class's own name as methodsynopsis role instead of 'Exception', so both
selected an empty node set, which older libxml (2.9, CI) reports as a failed
XInclude while newer libxml (2.15) silently swallows.

Drop the own-methods include and mirror the working jsonexception pattern:
inherit the Exception constructor and methods with role='Exception'.
@lacatoire
lacatoire force-pushed the fix/imagick-exception-xpointers branch from 12b89d9 to 8a01eb8 Compare July 24, 2026 08:21
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