History log of /PHP-8.1/ext/phar/phar_object.c (Results 1 – 25 of 703)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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 ...


# 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 ...


Revision tags: php-8.1.7RC1, php-8.1.4RC1, php-8.1.3, php-8.1.2RC1, php-8.1.0, php-7.3.33, php-7.3.32, php-7.3.31, php-7.3.30
# 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.

Revision tags: php-7.3.29
# 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 ...

Revision tags: php-7.3.28, php-7.3.27, php-7.3.26, php-7.3.26RC1, php-7.3.25, php-7.3.25RC1, php-7.3.24, php-7.3.24RC1
# 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*

# 5b5bfd6b 14-Feb-2021 Máté Kocsis

Generate class entries from stubs for phar, posix, pspell, readline, reflection, session, shmop

Closes GH-6692

# ccc70ec5 09-Feb-2021 Nikita Popov

Merge branch 'PHP-8.0'

* PHP-8.0:
Make Phar $fileNotFoundScript nullable


# 44192ce8 09-Feb-2021 Nikita Popov

Make Phar $fileNotFoundScript nullable

While "" is already treated the same way as absence, null is the
logically correct default here. Making this one argument non-nullable
is parti

Make Phar $fileNotFoundScript nullable

While "" is already treated the same way as absence, null is the
logically correct default here. Making this one argument non-nullable
is particularly pecular when considering that the preceding $alias
and $index arguments are both nullable.

show more ...

# e1a1918f 19-Jan-2021 Christoph M. Becker

Merge branch 'PHP-8.0'

* PHP-8.0:
Fix #69279: Compressed ZIP Phar extractTo() creates garbage files


# cfae999f 19-Jan-2021 Christoph M. Becker

Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
Fix #69279: Compressed ZIP Phar extractTo() creates garbage files


# 68f5289e 18-Dec-2020 Christoph M. Becker

Fix #69279: Compressed ZIP Phar extractTo() creates garbage files

When extracting compressed files from an uncompressed Phar, we must not
use the direct file pointer, but rather get an u

Fix #69279: Compressed ZIP Phar extractTo() creates garbage files

When extracting compressed files from an uncompressed Phar, we must not
use the direct file pointer, but rather get an uncompressed file
pointer.

We also add a test to show that deflated and stored entries are
properly extracted.

This also fixes #79912, which appears to be a duplicate of #69279.

Co-authored-by: Anna Filina <afilina@gmail.com>

Closes GH-6599.

show more ...

12345678910>>...29