Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DomCrawler] Catch expected ValueError#36906

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@derrabus
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets#36872
LicenseMIT
Doc PRN/A

mb_convert_encoding() raises aValueError on php 8 if an unknown character set is passed. This causes trouble with the whole test suite because the temporary error handler is not deregistered in that case.

Since the previously raised warning was actively ignored by that error handler, I'm now ignoring theValueError as well. Also, I've wrapped therestore_error_handler() call into afinally statement to make the whole construct a bit more robust.

@derrabusderrabusforce-pushed thebugfix/dom-crawler-value-error branch from4eb13be tob1db137CompareMay 22, 2020 19:35
@nicolas-grekas
Copy link
Member

Thank you@derrabus.

@nicolas-grekasnicolas-grekas merged commit475a715 intosymfony:3.4May 23, 2020
nicolas-grekas added a commit that referenced this pull requestMay 23, 2020
This PR was merged into the 4.4 branch.Discussion----------[DomCrawler] Catch expected ValueError| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |#36872| License       | MIT| Doc PR        | N/AThis is#36906 ported to the 4.4 branch.Commits-------32691e5 [DomCrawler] Catch expected ValueError.
@derrabusderrabus deleted the bugfix/dom-crawler-value-error branchMay 23, 2020 07:38
This was referencedMay 26, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@derrabus@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp