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

[Yaml] fix parsing negative octal numbers#34812

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
fabpot merged 1 commit intosymfony:3.4fromxabbuh:parse-negative-octal-numbers
Dec 7, 2019

Conversation

@xabbuh
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

@xabbuh
Copy link
MemberAuthor

while working on#34807 I realised that we actually do not correctly parse negative octal numbers

@stof
Copy link
Member

stof commentedDec 4, 2019

Based onhttps://yaml.org/spec/1.2/spec.html#id2805071, I don't think negative octal actually make sense in YAML

@stof
Copy link
Member

stof commentedDec 4, 2019

OK, according tohttps://yaml.org/type/int.html, they do make sense in YAML 1.1 (and this octal without0o is the 1.1 octal syntax). I think we need to clarify which YAML spec we follow in the component (I think the current answer is "a mix of 1.1 and 1.2, being compliant with none of the 2 due to the mix")

@xabbuh
Copy link
MemberAuthor

In#34813 I am working on a deprecation. Looks like I need to improve that a bit so that in the future we will only support the0o prefix.

@fabpot
Copy link
Member

Thank you@xabbuh.

fabpot added a commit that referenced this pull requestDec 7, 2019
This PR was merged into the 3.4 branch.Discussion----------[Yaml] fix parsing negative octal numbers| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |Commits-------7ab53f9 fix parsing negative octal numbers
@fabpotfabpot merged commit7ab53f9 intosymfony:3.4Dec 7, 2019
@xabbuhxabbuh deleted the parse-negative-octal-numbers branchDecember 7, 2019 14:03
This was referencedDec 19, 2019
This was referencedJan 21, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@stof@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp