History log of /php-src/ext/phar/phar_object.c (Results 1 – 25 of 728)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 03e2cfda 12-Sep-2024 Gina Peter Bnayard

ext/phar: Refactor flushing of archive to only take string stub file


# 01c6b48e 23-Aug-2024 Gina Peter Banyard

Phar offset exist issue with entry classes not based on PharFileInfo (#14503)

* ext/phar: expand test to cover issue with offsetGet

* ext/phar: offsetExists should return false when

Phar offset exist issue with entry classes not based on PharFileInfo (#14503)

* ext/phar: expand test to cover issue with offsetGet

* ext/phar: offsetExists should return false when file entry is not based on PharFileInfo

show more ...


# f9c69bc3 16-Aug-2024 Gina Peter Bnayard

ext/phar: Reorganise some headers


# d55074ed 16-Aug-2024 Gina Peter Bnayard

ext/phar: Use zend_string instead of char* len pair


# 6f986837 16-Aug-2024 Gina Peter Bnayard

ext/phar: Simplify a return condition in Phar::offsetExists()


# 20f7e086 16-Aug-2024 Gina Peter Bnayard

ext/phar: Use more specialized types instead of int


# 009039d4 15-Aug-2024 Gina Peter Bnayard

ext/phar: Use size_t for string lenghts

And remove useless casts


# 04320d2f 14-Aug-2024 Gina Peter Bnayard

ext/phar: Use standard C types


# a5cacba6 08-Jun-2024 Gina Peter Banyard

ext/spl: Remove spl_engine.h header (#14418)

And convert calls to spl_instantiate_arg_* to the new object_init_with_constructor() API


# e218ca21 07-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Improve error message in Phar::buildFromIterator() (#14145)


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


# 840d6655 12-Jul-2023 Máté Kocsis

Deprecate Phar::setStub(resource $stub, int $length)


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


# f89fe830 26-Apr-2023 Michael Voříšek

Minor conditions simplify (#10397)


# aae20cd1 12-Apr-2023 George Peter Banyard

ext/phar: Fix recently introduced potential NULL dereferencement segfaults (#11065)


# 4082d425 10-Apr-2023 George Peter Banyard

ext/phar: Remove duplicate cleaning-up code


# a72778b4 10-Apr-2023 George Peter Banyard

ext/phar: Prevent unnecessary known string length computation

Closes GH-11033


# 9d5f2f13 20-Mar-2023 Ilija Tovilo

Use new ZSTR_INIT_LITERAL macro (#10879)


# edae2431 14-Mar-2023 Su, Tao

Fix GH-10755: Memory leak in phar_rename_archive()

In phar_renmae_archive() context, added one reference but immediately
destroyed another, so do not need to increase refcount. With remo

Fix GH-10755: Memory leak in phar_rename_archive()

In phar_renmae_archive() context, added one reference but immediately
destroyed another, so do not need to increase refcount. With removal of
refcount++ line, PHP/Zend no longer reports memory leak.
Updated bug69958.phpt test file accordingly.

Closes GH-10856

show more ...


# d46dea16 18-Feb-2023 Max Kellermann

Make globals const (part 2) (#10610)

* Zend/zend_enum: make `forbidden_methods` static+const

* main/php_syslog: make `xdigits` static

* sapi/fpm: make several globals `cons

Make globals const (part 2) (#10610)

* Zend/zend_enum: make `forbidden_methods` static+const

* main/php_syslog: make `xdigits` static

* sapi/fpm: make several globals `const`

* sapi/phpdbg: make `OPTIONS` static

* sapi/phpdbg/help: make help texts const

* sapi/cli: make `template_map` const

* ext/ffi: make `zend_ffi_types` static

* ext/bcmath: make `ref_str` const

* ext/phar: make several globals static+const

show more ...


# c8955c07 16-Jan-2023 Christoph M. Becker

Revert GH-10220

Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>.

This reverts commit ecc880f491d66081298a16634629f149459706a9.
This reverts commit 588a07

Revert GH-10220

Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>.

This reverts commit ecc880f491d66081298a16634629f149459706a9.
This reverts commit 588a07f7371ee2b5fac17de147926780e427fae6.
This reverts commit f377e15751d3aa48b69cd9bcc366ede7803d511f.
This reverts commit b4ba16fe189b109144aff669e11d81365160104b.
This reverts commit 694ec1deea36e366b28b6349a52be49824e1a1a8.
This reverts commit 6b34de8eba9f66882ae16e6073af28783670ac53.
This reverts commit aa1cd02a4367834026ea2205ea13a2f904455aa1.
This reverts commit 308fd311ea6fcf3094b448df7f2b264f08e4fe4f.
This reverts commit 16203b53e1822a37b6ba6f2ab198bb435d05fdad.
This reverts commit 738fb5ca5412f5e833a7fab82b11519e635a3357.
This reverts commit 9fdbefacd3c382d731aa175b7bdc002ec9cb2b30.
This reverts commit cd4a7c1d90562ebb5f89caf94d00d579631b9fbe.
This reverts commit 928685eba2b2f0ded90e7f78fd806ea164002f6e.
This reverts commit 01e5ffc85cd4357fd7b5b7ceefa29f2d10ca26b7.

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


# 308fd311 04-Jan-2023 Max Kellermann

ext/{standard,json,random,...}: add missing includes


# 7b2c3c11 22-Dec-2022 Niels <7771979+nielsdos@users.noreply.github.com>

Cleanup redundant lookups in phar_object.c (#10150)


Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22
# 6ab897c8 22-Jul-2022 Máté Kocsis

Declare ext/phar constants in stubs (#9094)

12345678910>>...30