8000 AppVeyor: Reduce upload_max_filesize below PHP_INT_MAX by derrabus · Pull Request #42629 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

AppVeyor: Reduce upload_max_filesize below PHP_INT_MAX #42629

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

Closed
wants to merge 1 commit into from

Conversation

derrabus
Copy link
Member
@derrabus derrabus commented Aug 18, 2021
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

The changes from #42618 made the tests on AppVeyor fail. The reason is that the test depends on the php.ini setting upload_max_filesize. The test picks the highest integer value available (PHP_INT_MAX), assuming that this value is higher than upload_max_filesize in Bytes. On AppVeyor, we test with a 32bit build of PHP and a upload_max_filesize setting of 4G. The fact that 4 Gigabytes in Bytes produce a number that cannot be represented with a 32bit integer contradicts with that assumption.

This PR lowers upload_max_filesize to 1G so that we have a chance to test with integer values that are higher than this setting.

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@carsonbot carsonbot added this to the 4.4 milestone Aug 18, 2021
@derrabus derrabus changed the title WIP: AppVeyor: Reduce upload_max_filesize below PHP_INT_MAX AppVeyor: Reduce upload_max_filesize below PHP_INT_MAX Aug 18, 2021
@nicolas-grekas
Copy link
Member

Doesn't this reduce the coverage on 32b?

@derrabus
Copy link
Member Author

Does it?

@nicolas-grekas
Copy link
Member

I think it does: these ini values have been added in #39633 to cover parsing upload_max_filesize to a float.

@derrabus
Copy link
Member Author

I see. Shall I skip the failing test on 32bit instead?

@chalasr
Copy link
Member
chalasr commented Aug 20, 2021

👍 to skip it

@nicolas-grekas
Copy link
Member

Closing in favor of #42718, thanks for the PR.

@derrabus derrabus deleted the bugfix/app-veyor-upload branch August 25, 2021 08:15
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.

4 participants
0