Skip to content

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

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

Successfully merging this pull request may close these issues.

3 participants