| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
* PHP-7.3:
Fix #79424 ext/zip: don't use gl_pathc after call to globfree
|
| |
| |
| |
| |
| | |
This breaks on Linux with the musl libc, since it zeroes out gl_pathc during
globfree.
|
|\ \
| |/
| |
| |
| |
| | |
* PHP-7.3:
NEWS
Fix Bug #79296 ZipArchive::open fails on empty file
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
- add ZipArchive::LIBZIP_VERSION
- skip bug53885.phpt with libzip 1.6.0 (empty file is no more valid archive)
|
| | |
|
| |
| |
| |
| |
| |
| | |
This causes a warning on GCC 9 and is unnecessary to boot: We
only use "cwd" for the open_basedir check, so we can just as well
pass in the original string.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.3:
Fix #78641: addGlob can modify given remove_path value
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.2:
Fix #78641: addGlob can modify given remove_path value
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`remove_path` points to the given string, so we must not modify it.
Instead we use a duplicate, if we need the modification.
We may want to switch to `zend_string`s in master.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.3:
Fix build for libzip < 0.11.2
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.2:
Fix build for libzip < 0.11.2
|
| | |
| | |
| | |
| | |
| | | |
We must not define method entries, if the actual method definitions or
the arginfo structures are not defined.
|
| | |
| | |
| | |
| | | |
8f897f1040f00210f4a5cdd82a88a1fe3e558955
|
| | |
| | |
| | |
| | |
| | |
| | | |
We replace all deprecated libzip functions with their recommended
substitutes, and add proper comment length checks including a test
case.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For two reasons: First, it's generally cheaper to match a regex than
perform a stat (especially on Windows). Second, it will not fail on
concurrent modification of a directory in parts that are not matched
by the pattern, such as the spurious failure in ext/zip/tests/bug72660.phpt.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
|
| | |
| | |
| | |
| | | |
by reference
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.
A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.
This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.
With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.
Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files. All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
RFC: https://wiki.php.net/rfc/typed_properties_v2
This is a squash of PR #3734, which is a squash of PR #3313.
Co-authored-by: Bob Weinand <bobwei9@hotmail.com>
Co-authored-by: Joe Watkins <krakjoe@php.net>
Co-authored-by: Dmitry Stogov <dmitry@zend.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This parameter is always zero and not necessary to call pcre2_match.
I'm leaving the parameter behind on the _ex() variant, so the preg_flags
are still accessible in some way.
|
| | | |
|
| | | |
|
| | | |
|
|/ /
| |
| |
| | |
Follwing dae65a89
|
|\ \
| |/
| |
| |
| | |
* PHP-7.2:
Fix bug #76524 - ZipArchive memory leak
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.1:
Fix bug #76524 - ZipArchive memory leak
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bugfix #76524: Free up zip internal state and adjust the tests for Windows
Bugfix #76524: Fix possible use after free for libzip 1.3.1
Bugfix #76524: Make the test independent of platform
|
| | | |
|
| | |
| | |
| | |
| | | |
reference, that may lead to memory leaks.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
destructors.
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places.
Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
* PHP-7.2:
NEWS
Add OPSYS_CPM constant as documented and to match libzip naming
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
where we sure about string persistence.
|
| | |
| | |
| | |
| | | |
is known to be a temporary allocated zend_string.
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
* PHP-7.2:
NEWS
display headers (buildtime) and library (runtime) versions in phpinfo (libzip >= 1.3.1)
|
| | |
| | |
| | |
| | | |
(libzip >= 1.3.1)
|