Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ PHP NEWS

- Fileinfo:
. Upgrade to file 5.46. (nielsdos)
. Change return type of finfo_close() to true. (timwolla)

- FPM:
. Fixed GH-17645 (FPM with httpd ProxyPass does not decode script path).
Expand Down
3 changes: 3 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ PHP 8.5 UPGRADE NOTES

- Fileinfo:
. Upgraded to file 5.46.
. The return type of finfo_close() has been changed to true, rather
than bool.


- PCRE:
. Upgraded to pcre2lib from 10.44 to 10.45.
Expand Down
2 changes: 1 addition & 1 deletion ext/fileinfo/fileinfo.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function set_flags(int $flags): true {}
/** @refcount 1 */
function finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null): finfo|false {}

function finfo_close(finfo $finfo): bool {}
function finfo_close(finfo $finfo): true {}

function finfo_set_flags(finfo $finfo, int $flags): true {}

Expand Down
4 changes: 2 additions & 2 deletions ext/fileinfo/fileinfo_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading