Skip to content

Promote a few remaining errors in ext/standard #6110

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

Closed
wants to merge 8 commits into from

Conversation

kocsismate
Copy link
Member

@kocsismate kocsismate commented Sep 10, 2020

I improved a few error messages in the meanwhile.

Also, I did a few related changes in ext/mbstring for the sake of consistency.

@kocsismate kocsismate changed the title Promote warnings to exceptions in ext/standard Promote the last remaining error in ext/standard Sep 10, 2020
@kocsismate kocsismate changed the title Promote the last remaining error in ext/standard Promote a few remaining errors in ext/standard Sep 10, 2020
@kocsismate kocsismate force-pushed the standard-warning branch 4 times, most recently from 4def16d to 11f882e Compare September 10, 2020 22:33
@nikic
Copy link
Member

nikic commented Sep 13, 2020

Looks like the openssl parameter renames snuck in here :)

@kocsismate
Copy link
Member Author

Thanks for noticing, I'm working on the renames indeed. Also, I'll fix the tests, I haven't updated them yet.

@kocsismate kocsismate force-pushed the standard-warning branch 2 times, most recently from 730490c to 08a6000 Compare September 13, 2020 23:12
Subject: Test Subject

A Message
TypeError: Header "orig-date" must be of type string, array given
Copy link
Member

Choose a reason for hiding this comment

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

We're losing test coverage here, as previously multiple errors were checked with one call...

efree(posix_mode);
RETURN_FALSE;
RETURN_THROWS();
Copy link
Member

Choose a reason for hiding this comment

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

As this now throws ValueError, we should make it consistent between Linux & Windows. I.e. move this outside the ifndef, but also allow b (I think we may require that first char is r/w and only allow b as second).

Copy link
Member Author

Choose a reason for hiding this comment

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

Hopefully I managed to find the condition you imagined ^^

@php-pulls php-pulls closed this in c37a1cd Sep 15, 2020
@kocsismate kocsismate deleted the standard-warning branch September 15, 2020 12:29
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.

3 participants