php-src/ext/fileinfo
Niels Dossche 642e11140c
Minor pcre optimizations (#12923)
* Update signature of pcre API

This changes the variables that are bools to actually be bools instead
of ints, which allows some additional optimization by the compiler (e.g.
removing some ternaries and move extensions).

It also gets rid of the use_flags argument because that's just the same
as flags == 0. This reduces the call frame.

* Use zend_string_release_ex where possible

* Remove duplicate symbols from strchr

* Avoid useless value conversions

* Use a raw HashTable* instead of a zval

* Move condition

* Make for loop cheaper by reusing a recently used value as start iteration index

* Remove useless condition

This can't be true if the second condition is true because it would
require the string to occupy the entire address space.

* Upgrading + remark
2023-12-11 19:43:26 +01:00
..
libmagic Minor pcre optimizations (#12923) 2023-12-11 19:43:26 +01:00
tests fileinfo: Backport svg detection patch 2023-09-30 18:22:14 +02:00
config.m4 fileinfo: Introduce php_libmagic.* to simplify patch 2022-10-02 03:02:47 +02:00
config.w32 fileinfo: Introduce php_libmagic.* to simplify patch 2022-10-02 03:02:47 +02:00
create_data_file.php Apply tidy formatting 2020-02-03 13:41:31 +01:00
CREDITS It looks like i should've taken joint response on ext/fileinfo long ago 2017-10-11 22:21:34 +02:00
data_file.c fileinfo: Backport svg detection patch 2023-09-30 18:22:14 +02:00
fileinfo.c Fix GH-11408: Unable to build PHP 8.3.0 alpha 1 / fileinfo extension 2023-06-23 17:43:52 +02:00
fileinfo.stub.php Rename @cname to @cvalue in stubs (#9043) 2022-07-19 15:11:42 +02:00
fileinfo_arginfo.h Do not generate CONST_CS when registering constants (#9439) 2022-08-28 08:27:19 +02:00
generate_patch.sh fileinfo: libmagic: Apply libmagic.patch 2022-10-02 03:02:46 +02:00
libmagic.patch Use new ZSTR_INIT_LITERAL macro (#10879) 2023-03-20 16:19:05 +01:00
magicdata.patch fileinfo: Backport svg detection patch 2023-09-30 18:22:14 +02:00
Makefile.frag Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
php_fileinfo.h fileinfo: Introduce php_libmagic.* to simplify patch 2022-10-02 03:02:47 +02:00
php_libmagic.c fileinfo: Introduce php_libmagic.* to simplify patch 2022-10-02 03:02:47 +02:00
php_libmagic.h libmagic: Follow up fixes for 5.43 2022-10-02 16:11:50 +02:00