]>
granicus.if.org Git - php/log
Anatol Belski [Wed, 11 Jul 2018 12:34:18 +0000 (14:34 +0200)]
Make error messages more speaking
Anatol Belski [Wed, 11 Jul 2018 12:28:57 +0000 (14:28 +0200)]
Switch to ioutil routines to support long path in file cache
Anatol Belski [Wed, 11 Jul 2018 11:16:04 +0000 (13:16 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix condition
Anatol Belski [Wed, 11 Jul 2018 11:13:56 +0000 (13:13 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix condition
Anatol Belski [Wed, 11 Jul 2018 11:09:20 +0000 (13:09 +0200)]
Fix condition
It looks like the real length limit is 247 bytes, not 248 as documented.
Anatol Belski [Wed, 11 Jul 2018 10:19:20 +0000 (12:19 +0200)]
Fix build with ZEND_RC_DEBUG
Dmitry Stogov [Wed, 11 Jul 2018 07:35:36 +0000 (10:35 +0300)]
Fixed possible assertion/crash when PHP script can't be stored in SHM (e.g. because another process already did this)
Kalle Sommer Nielsen [Tue, 10 Jul 2018 19:24:54 +0000 (21:24 +0200)]
Remove these two old and outdated files we never use:
* OBJECTS2_HOWTO is rather outdated and the wiki contains much of this
* ZendCore.dep is an old leftover from the previous Windows build system
Christoph M. Becker [Tue, 10 Jul 2018 15:03:48 +0000 (17:03 +0200)]
[ci skip] Fix typos
Christoph M. Becker [Tue, 10 Jul 2018 14:04:14 +0000 (16:04 +0200)]
[ci skip] Document changes to php_add[c]slashes
Christoph M. Becker [Tue, 10 Jul 2018 12:28:28 +0000 (14:28 +0200)]
Fix #76574: use of undeclared identifiers INT_MAX and LONG_MAX
As of Oniguruma 6.4.0 <limits.h> is required, so we have to add a check
for this header file to set the respective macro.
Dmitry Stogov [Tue, 10 Jul 2018 10:17:33 +0000 (13:17 +0300)]
Avoid copying
Anatol Belski [Tue, 10 Jul 2018 09:53:04 +0000 (11:53 +0200)]
[skip ci] Update NEWS
Anatol Belski [Tue, 10 Jul 2018 09:52:24 +0000 (11:52 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Anatol Belski [Tue, 10 Jul 2018 09:51:49 +0000 (11:51 +0200)]
[ci skip] Update NEWS
Anatol Belski [Tue, 10 Jul 2018 09:51:11 +0000 (11:51 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
[ci skip] Update NEWS
Anatol Belski [Tue, 10 Jul 2018 09:50:33 +0000 (11:50 +0200)]
[ci skip] Update NEWS
Anatol Belski [Tue, 10 Jul 2018 09:20:50 +0000 (11:20 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix bug #76524 - ZipArchive memory leak
Anatol Belski [Tue, 10 Jul 2018 09:19:54 +0000 (11:19 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix bug #76524 - ZipArchive memory leak
timurib [Mon, 25 Jun 2018 11:14:26 +0000 (14:14 +0300)]
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
Dmitry Stogov [Tue, 10 Jul 2018 09:11:10 +0000 (12:11 +0300)]
Use ZVAL_COPY_DEREF()
Dmitry Stogov [Tue, 10 Jul 2018 09:03:32 +0000 (12:03 +0300)]
Avoid useless copying
Dmitry Stogov [Tue, 10 Jul 2018 08:04:10 +0000 (11:04 +0300)]
Removed deprecated condition
Dmitry Stogov [Mon, 9 Jul 2018 21:04:44 +0000 (00:04 +0300)]
Optimization
Anatol Belski [Mon, 9 Jul 2018 19:25:19 +0000 (21:25 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Sync callback signature with libxml2 2.9.8
Anatol Belski [Mon, 9 Jul 2018 19:24:51 +0000 (21:24 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Sync callback signature with libxml2 2.9.8
Anatol Belski [Mon, 9 Jul 2018 19:21:41 +0000 (21:21 +0200)]
Sync callback signature with libxml2 2.9.8
Anatol Belski [Mon, 9 Jul 2018 14:39:07 +0000 (16:39 +0200)]
Skip test on incompatible servers
Dmitry Stogov [Mon, 9 Jul 2018 14:30:14 +0000 (17:30 +0300)]
Avoid useless checks for public functions
Dmitry Stogov [Mon, 9 Jul 2018 14:29:34 +0000 (17:29 +0300)]
Combined few checks into one
Dmitry Stogov [Mon, 9 Jul 2018 13:28:13 +0000 (16:28 +0300)]
Avoid reloading
Anatol Belski [Mon, 9 Jul 2018 13:15:08 +0000 (15:15 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Add missing flag
Anatol Belski [Mon, 9 Jul 2018 13:14:30 +0000 (15:14 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Add missing flag
Anatol Belski [Mon, 9 Jul 2018 13:12:52 +0000 (15:12 +0200)]
Add missing flag
Dmitry Stogov [Mon, 9 Jul 2018 12:18:09 +0000 (15:18 +0300)]
Eliminated check
Anatol Belski [Mon, 9 Jul 2018 11:34:04 +0000 (13:34 +0200)]
Move to size_t for string length
Anatol Belski [Mon, 9 Jul 2018 10:32:26 +0000 (12:32 +0200)]
Remove conflicting declaration
Dmitry Stogov [Mon, 9 Jul 2018 10:20:46 +0000 (13:20 +0300)]
Eliminated reference-counting and EG(exception) check
Dmitry Stogov [Mon, 9 Jul 2018 09:49:19 +0000 (12:49 +0300)]
Fixed test
Dmitry Stogov [Mon, 9 Jul 2018 09:46:46 +0000 (12:46 +0300)]
Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()
Kalle Sommer Nielsen [Mon, 9 Jul 2018 02:21:46 +0000 (04:21 +0200)]
The session_array global is not used at all, so comment it out for now
Kalle Sommer Nielsen [Mon, 9 Jul 2018 01:59:35 +0000 (03:59 +0200)]
Added test to accompany the FILTER_SANITIZE_ADD_SLASHES filter
Kalle Sommer Nielsen [Mon, 9 Jul 2018 01:58:20 +0000 (03:58 +0200)]
Added the 'add_slashes' sanitization filter (FILTER_SANITIZE_ADD_SLASHES) as an alias to 'magic_quotes' (FILTER_SANITIZE_MAGIC_QUOTES) so we can move past our "magical" legacy.
Christoph M. Becker [Sun, 8 Jul 2018 22:54:36 +0000 (00:54 +0200)]
Fix #76594: Bus Error due to unaligned access in zend_ini.c OnUpdateLong
Since commit
ea83b69 [1] changed the type of mbstring.strict_detection
from `long` to `zend_bool`, we have to update the `on_modify` callback
as well.
[1] http://git.php.net/?p=php-src.git;a=commit;h=
ea83b69883f3f77fd27e4663fa854c88f141ab41
Anatol Belski [Sun, 8 Jul 2018 18:34:58 +0000 (20:34 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix C++11 and up compatibility for zend_finite and more
Anatol Belski [Sun, 8 Jul 2018 18:32:52 +0000 (20:32 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix C++11 and up compatibility for zend_finite and more
Anatol Belski [Sun, 8 Jul 2018 18:20:08 +0000 (20:20 +0200)]
Fix C++11 and up compatibility for zend_finite and more
C++11 puts isfinite, isinf, isnan and a lot of other stuff into the
std namespace. Thus, if a C++11 or newer source is compiled, these
symbols won't be available. A good solution would be to include cmath,
but depending on a particular compiler that might remove even more
stuff from the global namespace, so such a fix should only target master.
For now, just keep these defines same for C++11 and upper, as the actual
C++ code should use symbols from the std namespace anyway. This
especially concerns older GCC versions like at least 4 and 5, which are
used by default in the LTS Linux distros.
Anatol Belski [Sat, 7 Jul 2018 15:33:47 +0000 (17:33 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed regex for checking libzip static lib
Dylan K. Taylor [Sat, 7 Jul 2018 09:14:31 +0000 (10:14 +0100)]
Fixed regex for checking libzip static lib
This bug caused linking issues in debug mode (see bug [#76564](https://bugs.php.net/bug.php?id=76564))
This issue affects PHP 7.2 and master.
Anatol Belski [Fri, 6 Jul 2018 17:07:11 +0000 (19:07 +0200)]
[ci skip] Fix EOL
Jakub Zelenka [Sat, 7 Jul 2018 12:16:16 +0000 (13:16 +0100)]
Update NEWS for log related changes in FPM
Jakub Zelenka [Thu, 14 Jun 2018 17:14:33 +0000 (18:14 +0100)]
Refactore FPM logging
Jakub Zelenka [Sat, 7 Jul 2018 11:53:08 +0000 (12:53 +0100)]
Update NEWS and UPGRADING for fpm_get_status addition
Jakub Zelenka [Sat, 7 Jul 2018 11:48:16 +0000 (12:48 +0100)]
Migrate fpm_get_status test
Till Backhaus [Sun, 25 Feb 2018 11:08:47 +0000 (12:08 +0100)]
Implement fpm_get_status
Peter Kokot [Sat, 30 Jun 2018 12:10:31 +0000 (14:10 +0200)]
Add missing INI directives to curl phpinfo
Peter Kokot [Wed, 4 Jul 2018 10:12:01 +0000 (12:12 +0200)]
Bump Autoconf version in configure.ac to 2.64
Since PHP 7.2 the minimum autoconf version is 2.64. The configure.ac
script file includes also AX_CHECK_COMPILE_FLAG macro call so besides
only checking it in buildconf script this bumps the autoconf here too.
The phpize.m4 script is for now still relaxed to 2.59 version since some
still supported systems such as CentOS 6 still include autoconf 2.63
version and might require calling phpize on some old extensions.
Peter Kokot [Thu, 5 Jul 2018 01:06:06 +0000 (03:06 +0200)]
Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS
Autoconf doesn't mention the AC_CONFIG_HEADER macro since the v2.13
released in 1999 anywhere in the documentation. Future of this macro is
unclear and commented as possible candidate for obsoletion in the
autoconf source code. Since it is just a wrapper around the main
AC_CONFIG_HEADERS macro, the functionality is the same, and also more
clear to find it in the autoconf documentation and avoid possible future
obsoletion.
Nikita Popov [Sat, 7 Jul 2018 10:08:14 +0000 (12:08 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Sat, 7 Jul 2018 10:07:52 +0000 (12:07 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
cdoco [Fri, 6 Jul 2018 14:13:46 +0000 (22:13 +0800)]
Fixed bug #76366 (references in sub-array for filtering breaks the filter)
seliver [Sat, 31 Mar 2018 03:05:12 +0000 (04:05 +0100)]
Fixed bug #76136 (stream_socket_get_name enclosed IPv6 in brackets)
The IPv6 IP of a socket is provided by inet_ntop() as a string, but
this function doesn't enclose the IP in brackets. This patch adds
them in the php_network_populate_name_from_sockaddr() function.
Peter Kokot [Thu, 28 Jun 2018 13:26:45 +0000 (15:26 +0200)]
Fix bug #76392
On systems without glibc, such as Alpine with Musl libc, the function attributes
are not supported. GCC 6 doesn't properly omit some systems. This is
already fixed in GCC 7 but for systems with GCC 6 and ones without
glibc, this additional check fixes this bug.
Nikita Popov [Sun, 24 Jun 2018 14:55:22 +0000 (16:55 +0200)]
Warn if continue is used on switch
Supersedes RFC https://wiki.php.net/rfc/continue_on_switch_deprecation
by generating a warning instead of deprecating and removing this
functionality.
Nikita Popov [Fri, 6 Jul 2018 21:42:16 +0000 (23:42 +0200)]
Add UPGRADING for mb_ereg changes
Also some minor code cleanup.
ju1ius [Sat, 30 Jul 2016 04:05:59 +0000 (06:05 +0200)]
adds support for named subpatterns to `mb_ereg_replace`
Named subpatterns are now passed to `mb_ereg_replace_callback`.
This commit also adds a subset of the oniguruma back-reference syntax
for replacements:
* `\k<name>` and `\k'name'` for named subpatterns.
* `\k<n>` and `\k'n'` for numbered subpatterns
These last two notations allow referencing numbered groups where n > 9.
ju1ius [Fri, 29 Jul 2016 16:00:28 +0000 (18:00 +0200)]
adds support for named captures to mb_ereg & mb_ereg_search
`mb_ereg`, `mb_ereg_search_regs` & `mb_ereg_search_getregs`
returned only numbered capturing groups.
Now they return both numbered and named capturing groups.
Fixes Bug #72704.
Zenju [Sun, 12 Feb 2017 15:47:34 +0000 (16:47 +0100)]
Fix out-of bounds access
Test case: strnatcmp_ex(L"333", 3, L"333 ", 4, true)
The reason this bug didn't come up earlier is probably because most input strings are null-terminated.
Christoph M. Becker [Fri, 6 Jul 2018 16:59:04 +0000 (18:59 +0200)]
Add test for PR #2382
Anatol Belski [Fri, 6 Jul 2018 15:57:08 +0000 (17:57 +0200)]
Fix coding style
David Carlier [Mon, 25 Jun 2018 10:17:13 +0000 (11:17 +0100)]
random_bytes improvements for FreeBSD (from 12.x serie)
giving the possiblity to pre-fill the buffer. A new getrandom
function was added for future version with a similar interface
than Linux's syscall.
Anatol Belski [Fri, 6 Jul 2018 15:46:04 +0000 (17:46 +0200)]
[ci skip] Update NEWS
Anatol Belski [Fri, 6 Jul 2018 15:45:38 +0000 (17:45 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
[ci skip] Update NEWS
[ci skip] Update NEWS
Anatol Belski [Fri, 6 Jul 2018 15:45:01 +0000 (17:45 +0200)]
[ci skip] Update NEWS
Anatol Belski [Fri, 6 Jul 2018 15:44:37 +0000 (17:44 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
[ci skip] Update NEWS
Anatol Belski [Fri, 6 Jul 2018 15:43:48 +0000 (17:43 +0200)]
[ci skip] Update NEWS
Anatol Belski [Fri, 6 Jul 2018 14:08:57 +0000 (16:08 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix event log handling in startup phase
Fix bug #76488 Memory leak when fetching a BLOB field
Anatol Belski [Fri, 6 Jul 2018 14:08:17 +0000 (16:08 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix event log handling in startup phase
Fix bug #76488 Memory leak when fetching a BLOB field
Fix year
Bump version
Anatol Belski [Fri, 6 Jul 2018 11:59:14 +0000 (13:59 +0200)]
Fix event log handling in startup phase
The log header can be saved in the globals on startup. At the same
time, the log header can be changed per request. In case that
happened, wrong pointer will be free'd on shutdown. It can happen at
any point when zend_error() or similar is called at startup, like for
example in the case of the ini deprecation warnings. Thus, ZMM cannot
be used here.
sim1984 [Mon, 25 Jun 2018 18:35:51 +0000 (21:35 +0300)]
Fix bug #76488 Memory leak when fetching a BLOB field
Add a phpt test
Sara Golemon [Fri, 6 Jul 2018 14:05:17 +0000 (10:05 -0400)]
Merge branch 'PHP-7.1'
* PHP-7.1:
Fix year
Bump version
Sara Golemon [Fri, 6 Jul 2018 14:02:20 +0000 (10:02 -0400)]
Fix year
Sara Golemon [Fri, 6 Jul 2018 14:01:54 +0000 (10:01 -0400)]
Bump version
Xinchen Hui [Fri, 6 Jul 2018 11:18:06 +0000 (19:18 +0800)]
Forgotten one replacement
Xinchen Hui [Fri, 6 Jul 2018 11:14:44 +0000 (19:14 +0800)]
rename ref_dtor_func to rc_dtor_func
Xinchen Hui [Fri, 6 Jul 2018 10:47:30 +0000 (18:47 +0800)]
Rename zval_dtor_func and ref_dotr_func
Xinchen Hui [Fri, 6 Jul 2018 10:37:45 +0000 (18:37 +0800)]
Revert "Rename _zval_dtor_func to _ref_dtor_func"
This reverts commit
a362ae6b12419369c5cbdbb4e924915f9b196ef6 .
Xinchen Hui [Fri, 6 Jul 2018 10:32:27 +0000 (18:32 +0800)]
Rename _zval_dtor_func to _ref_dtor_func
Yousif Masoud [Sun, 1 Jul 2018 10:23:18 +0000 (11:23 +0100)]
fixes typo in daemonization DEBUG message after fork: acknoledge -> acknowledge
Dmitry Stogov [Fri, 6 Jul 2018 09:07:13 +0000 (12:07 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in in-place array/object conversion functions
Mike [Thu, 5 Jul 2018 18:42:46 +0000 (14:42 -0400)]
[ci skip] Fix typo
Dmitry Stogov [Fri, 6 Jul 2018 00:11:20 +0000 (03:11 +0300)]
Fixed reference-counting in zend_parse_arg_str_weak()
Dmitry Stogov [Fri, 6 Jul 2018 00:10:05 +0000 (03:10 +0300)]
Optimize array to object casting
Dmitry Stogov [Thu, 5 Jul 2018 22:26:43 +0000 (01:26 +0300)]
Conversion related optimizations
Dmitry Stogov [Thu, 5 Jul 2018 22:25:24 +0000 (01:25 +0300)]
Optimize object to array casting
Dmitry Stogov [Thu, 5 Jul 2018 22:24:15 +0000 (01:24 +0300)]
Avoid useless checks in object_init()
Nikita Popov [Thu, 5 Jul 2018 19:25:09 +0000 (21:25 +0200)]
Fix inverted stristr() argument order in mysqli test
Nikita Popov [Thu, 5 Jul 2018 17:11:43 +0000 (19:11 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Thu, 5 Jul 2018 17:11:25 +0000 (19:11 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Thu, 5 Jul 2018 17:10:24 +0000 (19:10 +0200)]
Merge branch 'PHP-7.2'