Skip to content

Fix return type for 5 misc functions: bool -> true#5357

Open
lacatoire wants to merge 2 commits intophp:masterfrom
lacatoire:fix/misc-return-true-sync-src
Open

Fix return type for 5 misc functions: bool -> true#5357
lacatoire wants to merge 2 commits intophp:masterfrom
lacatoire:fix/misc-return-true-sync-src

Conversation

@lacatoire
Copy link
Contributor

Summary

Fix return type from bool to true for 5 functions from various extensions that always return true (or throw on error):

  • finfo_close (fileinfo)
  • ftp_set_option (ftp)
  • libxml_set_external_entity_loader (libxml)
  • shm_detach (shmop)
  • array_multisort (standard)

Reference

These functions always return true (or throw on error):
- finfo_close (fileinfo)
- ftp_set_option (ftp)
- libxml_set_external_entity_loader (libxml)
- shm_detach (shmop)
- array_multisort (standard)
@lacatoire lacatoire requested a review from ndossche as a code owner February 6, 2026 13:56
@ndossche
Copy link
Member

ndossche commented Feb 6, 2026

Don't you also need a changelog entry for this?

Copy link
Member

@ndossche ndossche left a comment

Choose a reason for hiding this comment

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

Take for example the libxml_set_external_entity_loader() function: the changelog says it changed in PHP 8.2 but that's not true. You may have the same issue on other places too

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.

2 participants

Comments