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

Fix getMaxFilesize() returning zero#33157

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.4fromausi:fix/get-max-filesize
Aug 14, 2019

Conversation

@ausi
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#32790
LicenseMIT

With#32790 a BC break got introduced. Previously an emptyupload_max_filesize returnedPHP_INT_MAX but after the changes from#32790 it returns0.

Settingupload_max_filesize orpost_max_size to0 or'' disables the limit so for both casesPHP_INT_MAX should be returned.

@ausi
Copy link
ContributorAuthor

I didn’t find a way to mock theini_get() function to create better tests. I tried a similar approach as theClockMock class from the phpunit-bridge but it didn’t work as it seems thatini_get() cannot be overwritten with a namespaced function on the fly.

@fabpot
Copy link
Member

Thank you@ausi.

@fabpotfabpot merged commitf4c2ea5 intosymfony:3.4Aug 14, 2019
fabpot added a commit that referenced this pull requestAug 14, 2019
This PR was merged into the 3.4 branch.Discussion----------Fix getMaxFilesize() returning zero| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#32790| License       | MITWith#32790 a BC break got introduced. Previously an empty `upload_max_filesize` returned `PHP_INT_MAX` but after the changes from#32790 it returns `0`.Setting `upload_max_filesize` or `post_max_size` to `0` or `''` disables the limit so for both cases `PHP_INT_MAX` should be returned.Commits-------f4c2ea5 Fix getMaxFilesize() returning zero
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneAug 14, 2019
This was referencedAug 26, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@ausi@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp