Skip to content

Conversation

ddevsr
Copy link
Collaborator

@ddevsr ddevsr commented Aug 14, 2025

Description
Based php/php-src#18396 and related to #9664

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@ddevsr ddevsr added enhancement PRs that improve existing functionalities 4.7 refactor Pull requests that refactor code and removed enhancement PRs that improve existing functionalities labels Aug 14, 2025
Copy link
Member

@michalsn michalsn left a comment

Choose a reason for hiding this comment

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

Can we use unset() instead?

@ddevsr ddevsr mentioned this pull request Aug 14, 2025
13 tasks
@ddevsr
Copy link
Collaborator Author

ddevsr commented Aug 19, 2025

Can we use unset() instead?

@michalsn Is needed unset($finfo)? i think no

@ddevsr
Copy link
Collaborator Author

ddevsr commented Aug 19, 2025

Read from https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_no-op_functions_from_the_resource_to_object_conversion, all function in that RFC no need call again since we required minimum PHP 8.1

refactor: remove `finfo_close` has no effect since PHP 8.0
@ddevsr ddevsr changed the title refactor: finfo_close automatically freed in PHP 8.5 refactor: remove finfo_close has no effect since PHP 8.1 Aug 19, 2025
@paulbalandan paulbalandan merged commit ae08d14 into codeigniter4:4.7 Aug 19, 2025
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.7 refactor Pull requests that refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants