[php-src] PR #21766: ext/phar: reclassify various exception
| From: | Girgias | Date: | Wed, 15 Apr 2026 16:43:43 +0000 |
| Subject: | [php-src] PR #21766: ext/phar: reclassify various exception | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35735@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21766
Author: Girgias
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.