Skip to content

ext/phar: reclassify various exception#21766

Draft
Girgias wants to merge 3 commits intophp:masterfrom
Girgias:2026-04-phar-reclassify-exceptions
Draft

ext/phar: reclassify various exception#21766
Girgias wants to merge 3 commits intophp:masterfrom
Girgias:2026-04-phar-reclassify-exceptions

Conversation

@Girgias
Copy link
Copy Markdown
Member

@Girgias Girgias commented Apr 15, 2026

Main purpose is to use ValueError/TypeError in cases that are about value/type validation. This fixes the wording to match the more usual wording.

Secondly use Error when an object is not initialized or one attemps to call the constructor twice, similar to other extensions

We also fix some of the phar test stubs. Which we regenerate by running the .phar.inc file.

Main purpose is to use ValueError/TypeError in cases that are about value/type validation.
This fixes the wording to match the more usual wording.

Secondly use Error when an object is not initialized or one attemps to call the constructor twice, similar to other extensions
Girgias added 2 commits April 15, 2026 18:20
TODO: It seems like one needs to copy the files from ext/phar/tests/files/ to ext/phar/tests/cache_list/files/ and that they were out of sync
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