Skip to content

ext/zlib: Refactor tests #18887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

ext/zlib: Refactor tests #18887

wants to merge 1 commit into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Jun 20, 2025

  • Use INI sections
  • Use CGI sections
  • Move data into a subfolder
  • Remove ZPP tests
  • Fix various bugs within tests
  • Simplify some

Found while working on #18879

@Girgias Girgias force-pushed the zlib-tests branch 2 times, most recently from da342a3 to d27b117 Compare June 20, 2025 19:16
@Girgias Girgias marked this pull request as ready for review June 20, 2025 21:50
- Move data into a subfolder
- Remove ZPP tests
- Fix various bugs within tests
- Simplify some
@@ -45,7 +45,7 @@ function test($case) {
// The gzdecode() function applied to the corrupted compressed data always
// detects the error:
// --> gzdecode(): PHP Fatal error: Uncaught ErrorException: gzdecode(): data error in ...
echo "gzdecode(): ", rawurldecode(gzdecode($compressed)), "\n";
echo "gzdecode(): ", rawurldecode((string) gzdecode($compressed)), "\n";
Copy link
Member

Choose a reason for hiding this comment

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

Why was this cast added

Copy link
Member Author

Choose a reason for hiding this comment

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

Because gzdecode() can return false, and I didn't really want to bother figuring out why

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.

2 participants