History log of /PHP-8.2/ext/fileinfo/fileinfo.c (Results 1 – 25 of 151)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# b0ba368d 22-Jun-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-11408: Unable to build PHP 8.3.0 alpha 1 / fileinfo extension

On some configurations, the COMPILE_DL_FILEINFO must come from the
config.h file. If the COMPILE_DL_FILEINFO macro is

Fix GH-11408: Unable to build PHP 8.3.0 alpha 1 / fileinfo extension

On some configurations, the COMPILE_DL_FILEINFO must come from the
config.h file. If the COMPILE_DL_FILEINFO macro is not set, the build
won't include the ZEND_GET_MODULE block necessary for building this
extension as a shared object.

Closes GH-11505.

show more ...


# 7936c808 23-Jan-2023 Máté Kocsis

Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)


# a3dd514d 15-Sep-2022 Anatol Belski

fileinfo: Introduce php_libmagic.* to simplify patch

Signed-off-by: Anatol Belski <ab@php.net>


# a01dd9fe 14-Sep-2022 Bob Weinand

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included i

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.

show more ...


# 94ee4f98 24-Aug-2022 Bob Weinand

Port all internally used classes to use default_object_handlers

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>


# debd38f8 02-Jun-2022 Máté Kocsis

Add support for sensitive parameters in stubs


# d457519b 04-Jun-2022 Máté Kocsis

Declare ext/fileinfo constants in stubs (#8701)


# 8de75fa7 15-Apr-2022 Anatol Belski

fileinfo: Re-add Apple flag

It is not supported for all kinds of data, but it is definitely usable.

Signed-off-by: Anatol Belski <ab@php.net>


# 0ea38b95 20-Sep-2021 George Peter Banyard

Fix Bug #81462 mime_content_type() indicates wrong arg num on TypeError


# 570d9b63 20-Jul-2021 Joe Watkins

Not serializable flag permeation


# 5dc31e0c 14-Jun-2021 Nikita Popov

Fixed bug #80197

Use "libmagic/magic.h" rather than <magic.h> to make sure that we
use the bundled libmagic, even if there is a system libmagic on the
include path.


# 01b3fc03 06-May-2021 KsaR

Update http->https in license (#6945)

1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as

Update http->https in license (#6945)

1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |

show more ...


# fd5ff37d 10-Feb-2021 Nikita Popov

Make finfo_open() $magic_database nullable

Empty string was interpreted as a special value here, which indicates
that the default magic database should be used. It makes more sense
t

Make finfo_open() $magic_database nullable

Empty string was interpreted as a special value here, which indicates
that the default magic database should be used. It makes more sense
to use null for this purpose.

The documentation also explicitly mentions that null can be used.

show more ...


# 98fb565c 05-Feb-2021 Máté Kocsis

Generate class entries from stubs for another batch of extensions

Closes GH-6669


# b85f0d1c 18-Dec-2020 Christoph M. Becker

Convert file_info resources to objects

Besides our general desire to get rid of the legacy resource types,
this is particularly appealing for fileinfo, because there are already
resp

Convert file_info resources to objects

Besides our general desire to get rid of the legacy resource types,
this is particularly appealing for fileinfo, because there are already
respective objects.

Closes GH-5987.

show more ...


# 6d3695a2 26-Oct-2020 Nikita Popov

Deny serialization of finfo objects

The resulting objects were already unusable, make it error out
earlier.


# 7817fc07 26-Oct-2020 Nikita Popov

Deny cloning of fileinfo objects

Using a cloned finfo object will crash.


# f3c58a5e 25-Sep-2020 Dik Takken

Make handling of NULL bytes in file paths more consistent (WIP)

Not all extensions consistently throw exceptions when the user passes
a path name containing null bytes. Also, some extens

Make handling of NULL bytes in file paths more consistent (WIP)

Not all extensions consistently throw exceptions when the user passes
a path name containing null bytes. Also, some extensions would throw
a ValueError while others would throw a TypeError. Error messages
also varied.

Now a ValueError is thrown after all failed path checks, at least for
as far as these occur in functions that are exposed to userland.

Closes GH-6216.

show more ...


# 41b096b3 25-Sep-2020 Máté Kocsis

Promote a few forgotten warnings to exceptions

Closes GH-6211


# 196f8fdf 06-Aug-2020 George Peter Banyard

Promote warnings to Error in FileInfo extension

Closes GH-5914


# 2b5de6f8 01-Jul-2020 Max Semenik

Remove proto comments from C files

Closes GH-5758


# 3fe49d81 11-Apr-2020 Máté Kocsis

Generate method entries from stubs for a couple of extensions

Closes GH-5368


# 7c307873 04-Apr-2020 Máté Kocsis

Generate function entries from stubs for a couple of extensions

Closes GH-5347


# bbcfa66e 03-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_fetch_resource*()


# 382a038e 30-Dec-2019 Máté Kocsis

Use ZEND_THROWS() during ZPP in enchant, exif, fileinfo, filter, and FTP extensions


1234567