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

Appearance settings

[AssetMapper] Throw exception in Javascript compiler when PCRE error #54113

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

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

smnandre
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

preg_match_callback can return null when a PCRE error occured, leading there to a TypeError.

Let's throw an exception and expose the error message.

(follows #54078 / complementary to #54079 )

@carsonbot carsonbot added this to the 6.4 milestone Feb 29, 2024
@smnandre smnandre force-pushed the feat/throw-exception-on-preg-error branch from 91ed84e to 0384254 Compare February 29, 2024 15:12
@smnandre
Copy link
Member Author

smnandre commented Mar 2, 2024

(AppVeyor failures unrelated)

@fabpot fabpot force-pushed the feat/throw-exception-on-preg-error branch from 0165854 to 2333b58 Compare March 4, 2024 12:44
@fabpot
Copy link
Member

fabpot commented Mar 4, 2024

Thank you @smnandre.

@fabpot fabpot merged commit 5f78910 into symfony:6.4 Mar 4, 2024
This was referenced Mar 4, 2024
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.