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

Rely on iconv and symfony/polyfill-*#16317

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:2.8fromnicolas-grekas:polyfill
Oct 28, 2015

Conversation

@nicolas-grekas
Copy link
Member

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed tickets#16240
LicenseMIT
Doc PR-

Status: needs work
symfony/polyfill-* packages are not ready yet. Still, review welcomed.

@xabbuh
Copy link
Member

The DoctrineBridge needs an update of thecomposer.json file.

@nicolas-grekas
Copy link
MemberAuthor

@xabbuh not sure: iconv is an implicit requirement now (same as ext-json)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This must be kept (random_bytes() is used in theSecureRandom class).

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

yep, I'm going to add random_compat to polyfill-php70 that's why it's removed from here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

okay

@xabbuh
Copy link
Member

@nicolas-grekas Is iconv even available on Windows by default?

@nicolas-grekas
Copy link
MemberAuthor

@xabbuh yes, it's bundled on Windows without adding any dll, at least in the binaries provided on windows.php.net

@Tobion
Copy link
Contributor

Is the idea also to move the Intl component to Polyfill? Isn't the Intl component not basically a Polyfill or does it do more?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

isn't this constant polyfilled?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

shouldn't we check forextension_loaded('mbstring') here ? Only the extension itself can overload functions anyway

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

the extension must be enabled for ini_get to return2 so this is equivalent

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@nicolas-grekasnicolas-grekasforce-pushed thepolyfill branch 2 times, most recently from1c39e08 toe8c5ffcCompareOctober 23, 2015 08:21
@nicolas-grekas
Copy link
MemberAuthor

@Tobion there where a few missing require for symfony/polyfill-intl-icu that I fixed. I looked at symfony/intl and it's both a shim and a utility component. I added@internal tags to the shim-related classes. Moving the code to polyfill-intl-icu could be useful as a cleanup but it's a bigger work and it won't provide much practical value so I'd like to postpone it for later if we want it.

@nicolas-grekasnicolas-grekasforce-pushed thepolyfill branch 4 times, most recently from1baf102 to11e866eCompareOctober 25, 2015 17:46
@nicolas-grekas
Copy link
MemberAuthor

Tests are green! (appveyor failure is a transient test)
Status: needs review

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why do we need that? Shouldn't it be deprecated if it is for bc? Looks like a hack.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

it's because iconv on windows doesn't accept utf8 as an encoding name: only utf-8 is supported

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

would be good to add this as comment

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

comment added

@Tobion
Copy link
Contributor

👍

Status: Reviewed

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit303f05b intosymfony:2.8Oct 28, 2015
fabpot added a commit that referenced this pull requestOct 28, 2015
This PR was merged into the 2.8 branch.Discussion----------Rely on iconv and symfony/polyfill-*| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets |#16240| License       | MIT| Doc PR        | -Status: needs worksymfony/polyfill-* packages are not ready yet. Still, review welcomed.Commits-------303f05b Rely on iconv and symfony/polyfill-*
@nicolas-grekasnicolas-grekas deleted the polyfill branchOctober 28, 2015 02:40
@ghost
Copy link

@fabpot#16363

@Tobion
Copy link
Contributor

I merged 2.8 in master and resolved all the conflicts.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is wrong:#16382

Tobion added a commit that referenced this pull requestOct 29, 2015
…5 (Tobion)This PR was merged into the 2.8 branch.Discussion----------[Serializer] polyfill for json_last_error_msg is in php 5.5| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#16317| License       | MIT| Doc PR        | -We need the polyfill for `json_last_error_msg` which is part of php 5.5, not 5.4.Commits-------fb031f1 [Serializer] polyfill for json_last_error_msg is in php 5.5
Tobion added a commit that referenced this pull requestOct 30, 2015
This PR was merged into the 3.0-dev branch.Discussion----------remove polyfills for unsupported php versions| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Remove obsolete polyfills in master as introduced in#16317Commits-------78512cc remove polyfills for unsupported php versions
@fabpotfabpot mentioned this pull requestNov 16, 2015
nicolas-grekas added a commit that referenced this pull requestDec 29, 2015
…ency (xabbuh)This PR was merged into the 2.8 branch.Discussion----------[HttpFoundation] add missing symfony/polyfill-php55 dependency| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#16317| License       | MIT| Doc PR        |The `json_last_error_msg()` function used in the `JsonResponse` classrequires PHP 5.5.Commits-------3cc4e4d add missing symfony/polyfill-php55 dependency
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

No milestone

Development

Successfully merging this pull request may close these issues.

9 participants

@nicolas-grekas@xabbuh@Tobion@fabpot@namenu@stof@dosten@Nicofuma@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp