Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Accept PHP 8.1's new $_FILES['full_path'] member #264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gileri
Copy link

@gileri gileri commented Feb 24, 2022

PHP 8.1 introduced a new member to the $_FILES superglobal.

This PR allows to accept both array members.

Copy link
Collaborator

@Tybaze Tybaze left a comment

Choose a reason for hiding this comment

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

There is a Notice with PHP < 8.1 :
Notice: Undefined index: full_path in ... sfWebRequest.class.php:897
The new index full_path is only available after 8.1 😃

@alquerci
Copy link
Contributor

@Tybaze nice catch.

Did you see it from the test suite?

I wonder if it is covered.

@Tybaze
Copy link
Collaborator

Tybaze commented Jun 22, 2022

@alquerci , No, just reviewing the PR, got a doubt, make a custom test on an 7.4 env and trigger the error.

We should create a specific "adaptive" test for 8.1+ and before,
And as it is a "Notice" I don't think it will crash the test

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants