| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
* PHP-7.2:
Fix #78282: atime and mtime mismatch
|
| |
| |
| |
| |
| |
| |
| |
| | |
The fix for bug #78241 assumed that `time_t` would always be 64bit, but
actually is 32bit for x86. We therefore enforce 64bit arithmetic to
avoid wrapping.
(cherry picked from commit bf242d58e77d50d4d8fdaaaca7ede686ec4467c0)
|
| |
| |
| |
| |
| |
| | |
When the strip tags state machine has been flattened, an if statement
has mistakenly been treated as else if. We fix this, and also simplify
a bit right away.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.2:
Fix #78179: MariaDB server version incorrectly detected
|
| |
| |
| |
| |
| |
| |
| |
| | |
As of MariaDB 10.0.2, the server reports a fake version number as work-
around for replication issues[1]. We apply the same "fix" as in the
MariaDB client to cater to this.
[1] <https://github.com/MariaDB/server/commit/c50ee6c23dbeb090963580754bec2f0a96ac0557#diff-5b45fa673c88c06a9651c7906364f592>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
We have to ensure that we don't create an arena which is smaller than
its header, regardless of the configured alignment.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Similar to what fread() does, truncate the stream_get_contents()
result if the original buffer was way too large.
|
| |
| |
| |
| |
| | |
Don't dereference float/double values at unknown address, instead
memcpy it into an aligned stack slot and dereference that.
|
| |
| |
| |
| |
| | |
The fix has been cherry-picked into PHP-7.3.8, so the bug will be fixed
already there.
|
| |
| |
| |
| |
| |
| | |
The smart branch logic assumed b->start refers to the old offsets,
while b->start was already adjusted to the new offsets at this
point. Delay the change until later.
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Don't dereference float/double values at unknown address, instead
memcpy it into an aligned stack slot and dereference that.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* PHP-7.2:
Fix #78342: Bus error in configure test for iconv //IGNORE
|
| |/
| |
| |
| |
| | |
We have to check the return value of iconv_open() for error, to avoid
that and potentially other undesired behavior of iconv().
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
epoll event backend does not guarantee that child input/output events
are reported before SIGCHILD due to finished worker. While a bunch of
events received by epoll is being processed, child-related structures
may be removed before dispatching of an I/O event for the same child.
The result may be attempt to access to memory region allocated for
another purpose, segfault of the master process, and unavailable web
sites.
Postpone processing of SIGCHILD events till other events in the same
bunch are processed.
Fix Bug #62418 php-fpm master process crashes
Fix Bug #65398 Race condition between SIGCHLD and child stdout/stderr event leads to segfault
Fix Bug #75112 php-fpm crashing, hard to reproduce
Fix Bug #77114 php-fpm master segfaults in fpm_event_epoll_wait/fpm_event_fire
Fix Bug #77185 Use-after-free in FPM master event handling
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Save multi_info_read() result into easy handle.
|
|\ \
| |/ |
|
| | |
|
| | |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
This is a backport of 6fcae63f614d1ed4aaeaff7b13a7a4627b1f1312
to PHP 7.2.
|
| | |
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
New opcache directives have been added recently which are returned
if using `ini_get_all('zend opcache')` but are not listed in the
directives if using `opcache_get_configuration()`. This fix adds
those missing directives as well as if `opcache.mmap_base` is used
instead of `opcache.lockfile_path`. Also adds a test to ensure the
directives match with both methods of fetching.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Even if we don't initialize the callback on every request, we
should still reset our globals to default values...
|
| |
| |
| |
| |
| |
| |
| |
| | |
Since syslog's ident and facility parameters have been added to
config[1], vsyslog() segfaults on Windows, if openlog() has not been
called before. We bring back the removed lines to fix this.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=2475337bd8a0fad0dac03db3f5e7e9d331d53653>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When cleaning nops in the dfa pass, we were always keeping the
smart branch inhibiting nop that occurs directly before the jump
instruction. However, as we skip unreachable blocks entirely, it
may happen that we need to keep a nop that occurs further back,
prior to the unreachable blocks. Account for that case now.
We should really do something about the smart branch situation,
this is very fragile...
|
|\ \
| |/
| |
| |
| | |
* PHP-7.2:
Upgrade to SQLite 3.28.0
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.1:
Upgrade to SQLite 3.28.0
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Over the years, multiple security vulnerabilities[1] have been found
and fixed in SQLite3, so it makes sense to update our bundled libsqlite
to the latest available version.
[1] <https://www.cvedetails.com/vulnerability-list/vendor_id-9237/Sqlite.html>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
I do not completely understand what is going on there, but I am pretty
sure dir_entry <= offset_base if not a normal situation, so we better not
to rely on such dir_entry.
|