#
85dbbe19 |
| 03-Jan-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix #71465: PHAR doesn't know about litespeed We should perhaps look into a generic system to ask the SAPI whether a feature should be supported or not. Or, we should look into making
Fix #71465: PHAR doesn't know about litespeed We should perhaps look into a generic system to ask the SAPI whether a feature should be supported or not. Or, we should look into making a denylist instead of an allowlist. Anyway, let's not try doing anything fancy on stable branches. Closes GH-13070.
show more ...
|
#
b71a9613 |
| 08-May-2023 |
Ilija Tovilo |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix use-of-uninitialized value in phar_object.c
|
#
78ec64af |
| 07-May-2023 |
Ilija Tovilo |
Fix use-of-uninitialized value in phar_object.c resource would stay uninitialized if the first call to zend_parse_parameters fails, but the value is still passed to phar_add_file(). It's
Fix use-of-uninitialized value in phar_object.c resource would stay uninitialized if the first call to zend_parse_parameters fails, but the value is still passed to phar_add_file(). It's not used there if cont_str is provided and so didn't cause any issues. Closes GH-11202
show more ...
|
#
ec377c68 |
| 15-Jan-2023 |
George Peter Banyard |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix wrong flags check for compression method in phar_object.c Fix missing check for xmlTextWriterEndElement Fix substr_replac
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix wrong flags check for compression method in phar_object.c Fix missing check for xmlTextWriterEndElement Fix substr_replace with slots in repl_ht being UNDEF
show more ...
|
#
347b7c36 |
| 15-Jan-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix wrong flags check for compression method in phar_object.c I found this issue using static analysis tools, it reported that the condition was always false. We can see that flags is as
Fix wrong flags check for compression method in phar_object.c I found this issue using static analysis tools, it reported that the condition was always false. We can see that flags is assigned in the switch statement above, but a mistake was made in the comparison. Closes GH-10328 Signed-off-by: George Peter Banyard <girgias@php.net>
show more ...
|
#
6ab897c8 |
| 22-Jul-2022 |
Máté Kocsis |
Declare ext/phar constants in stubs (#9094) |
#
7cd8879d |
| 21-Jun-2022 |
George Peter Banyard |
Refactor spl_filesystem_object_get_path() to return zend_string* |
#
90b7bde6 |
| 03-Nov-2021 |
Dmitry Stogov |
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[i] instead of ht->arData[i] - in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes (ZEND_HASH_MAP_FOREACH_*) - introduced an additional family of macros to access elements of array (packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX, ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT - zend_hash_minmax() prototype was changed to compare only values Because of smaller data set, this patch may show performance improvement on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser) TODO: - sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET). - zend_hash_sort_ex() may require converting packed arrays to hash.
show more ...
|
#
18ebe158 |
| 24-Aug-2021 |
Stanislav Malyshev |
Merge branch 'PHP-8.0' * PHP-8.0: Update NEWS Fix #81211: Symlinks are followed when creating PHAR archive
|
#
33e4174d |
| 24-Aug-2021 |
Stanislav Malyshev |
Merge branch 'PHP-7.4' into PHP-8.0 * PHP-7.4: Update NEWS Fix #81211: Symlinks are followed when creating PHAR archive
|
#
40db8947 |
| 24-Aug-2021 |
Stanislav Malyshev |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Update NEWS Fix #81211: Symlinks are followed when creating PHAR archive
|
#
2ff853aa |
| 23-Aug-2021 |
Christoph M. Becker |
Fix #81211: Symlinks are followed when creating PHAR archive It is insufficient to check whether the `base` is contained in `fname`; we also need to ensure that `fname` is properly separ
Fix #81211: Symlinks are followed when creating PHAR archive It is insufficient to check whether the `base` is contained in `fname`; we also need to ensure that `fname` is properly separated. And of course, `fname` has to start with `base`.
show more ...
|
#
c51af22f |
| 05-Aug-2021 |
Remi Collet |
implement openssl_256 and openssl_512 for phar singatures |
#
edb6b375 |
| 16-Jul-2021 |
Nikita Popov |
Don't return bool from Phar::offsetUnset() This violates the ArrayAccess interface. Use offsetExists() to check if an entry exists. |
#
aff36587 |
| 29-Jun-2021 |
Patrick Allaert |
Fixed some spaces used instead of tabs |
#
83916e83 |
| 28-May-2021 |
Máté Kocsis |
Declare tentative return types for ext/phar (#7052) |
#
0224cc83 |
| 27-May-2021 |
Máté Kocsis |
Merge branch 'PHP-8.0' * Add a few missing RETURN_THROWS(); * Fix a few ext/phar return types
|
#
2d47447d |
| 27-May-2021 |
Máté Kocsis |
Add a few missing RETURN_THROWS(); Only PharFileInfo::compress() really needs it though. |
#
f57526a0 |
| 27-May-2021 |
Nikita Popov |
Store base path as zend_string in Phar::buildFrom* This also removes the need to check for length overflow, as the length is now size_t. |
#
8c192c71 |
| 27-May-2021 |
Nikita Popov |
Accept regex as zend_string in Phar::buildFromDirectory() No need to copy it... |
#
e7135cb8 |
| 14-May-2021 |
George Peter Banyard |
Use zend_string_equals_* API in a couple of more place Closes GH-6979 |
#
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 ...
|
#
5caaf40b |
| 29-Sep-2020 |
George Peter Banyard |
Introduce pseudo-keyword ZEND_FALLTHROUGH And use it instead of comments |
#
c732ab40 |
| 16-Mar-2021 |
Dmitry Stogov |
Change Zend Stream API to use zend_string* instead of char*. This allows to eliminate re-calculation of string lenght and hash value. See the detailed list of changes in UPGRADING.INTERN
Change Zend Stream API to use zend_string* instead of char*. This allows to eliminate re-calculation of string lenght and hash value. See the detailed list of changes in UPGRADING.INTERNALS.
show more ...
|
#
13e4ce38 |
| 25-Feb-2021 |
Dmitry Stogov |
Improve SPL directory and stat() cache using zend_srting* instead of char* |