Skip to content
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

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

Merged
merged 1 commit into from Dec 15, 2021

Conversation

@alexandre-daubois
Copy link
Contributor

@alexandre-daubois alexandre-daubois commented Dec 9, 2021

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 Dec 9, 2021
src/Symfony/Component/Config/Util/XmlUtils.php Outdated Show resolved Hide resolved
@alexandre-daubois alexandre-daubois force-pushed the fix/xml-octal-parsing branch from 0f7ccdb to 30c3913 Dec 12, 2021
@fabpot
Copy link
Member

@fabpot fabpot commented Dec 15, 2021

Thank you @alexandre-daubois.

@fabpot fabpot merged commit ab1e9b9 into symfony:4.4 Dec 15, 2021
6 of 11 checks passed
@fabpot fabpot mentioned this pull request Dec 29, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
@fabpot fabpot mentioned this pull request Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants