Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Config] In XmlUtils, avoid converting from octal every string starting with a 0 #44537

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
Dec 15, 2021

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #41532
License MIT
Doc PR N/A

One word on the use of intval instead of octdec: octdec leads to deprecation notices when testing a non-octal string:

Invalid characters passed for attempted conversion, these have been ignored

While intval doesn't, which worth the use in my opinion.

@carsonbot carsonbot added this to the 4.4 milestone Dec 9, 2021
@alexandre-daubois alexandre-daubois force-pushed the fix/xml-octal-parsing branch 2 times, most recently from cff633c to 0489889 Compare December 9, 2021 16:22
@fabpot
Copy link
Member

fabpot commented Dec 15, 2021

Thank you @alexandre-daubois.

@fabpot fabpot merged commit ab1e9b9 into symfony:4.4 Dec 15, 2021
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.

5 participants