]>
granicus.if.org Git - php/log
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'
Nikita Popov [Thu, 5 Jul 2018 17:09:40 +0000 (19:09 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Thu, 5 Jul 2018 17:08:00 +0000 (19:08 +0200)]
Fix string.strip_tags filter
Was segfaulting if no allowed tags are specified and performing an
out of bounds read if they were.
Anatol Belski [Thu, 5 Jul 2018 15:23:47 +0000 (17:23 +0200)]
Reduce error buffer size
120 bytes is ample, the doc says.
Dmitry Stogov [Thu, 5 Jul 2018 14:55:54 +0000 (17:55 +0300)]
Use zval_ptr_dtor() imstead of zval_dtor()
Dmitry Stogov [Thu, 5 Jul 2018 13:56:52 +0000 (16:56 +0300)]
It's safer to use zval_ptr_dtor() for iterator keys.
Dmitry Stogov [Thu, 5 Jul 2018 13:46:38 +0000 (16:46 +0300)]
Use zval_ptr_dtor() to replace bound variables (original values nay be circular structures).
Dmitry Stogov [Thu, 5 Jul 2018 12:25:55 +0000 (15:25 +0300)]
Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible
Dmitry Stogov [Thu, 5 Jul 2018 12:07:16 +0000 (15:07 +0300)]
Use zval_ptr_dtor_nogc() in JSON parser (it can't produce circular data structures)
Dmitry Stogov [Thu, 5 Jul 2018 11:25:17 +0000 (14:25 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
Dmitry Stogov [Thu, 5 Jul 2018 11:17:53 +0000 (14:17 +0300)]
Replace zval_dtor() with specialized destructors
Dmitry Stogov [Thu, 5 Jul 2018 11:09:47 +0000 (14:09 +0300)]
Use zval_ptr_dtor() instead of legacy zval_dtor(), to destroy unused values returned from PHP functions (they may be circular data structures).
Dmitry Stogov [Thu, 5 Jul 2018 10:55:56 +0000 (13:55 +0300)]
Replace zval_dtor() with specialized destructors
Dmitry Stogov [Thu, 5 Jul 2018 10:37:59 +0000 (13:37 +0300)]
Fixed wrong zval_dtor() usage
Dmitry Stogov [Thu, 5 Jul 2018 10:33:18 +0000 (13:33 +0300)]
Merge branch 'master' of git.php.net:php-src
* 'master' of git.php.net:php-src:
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
Dmitry Stogov [Thu, 5 Jul 2018 10:32:39 +0000 (13:32 +0300)]
Replace zval_dtor() with specialized destructors
Tyson Andre [Wed, 4 Jul 2018 21:09:21 +0000 (14:09 -0700)]
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
Dmitry Stogov [Thu, 5 Jul 2018 09:20:50 +0000 (12:20 +0300)]
Don't keep dangling pointer to function_name
Dmitry Stogov [Thu, 5 Jul 2018 08:54:26 +0000 (11:54 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
Dmitry Stogov [Thu, 5 Jul 2018 07:57:49 +0000 (10:57 +0300)]
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
Remi Collet [Thu, 5 Jul 2018 04:34:08 +0000 (06:34 +0200)]
NEW and UPGRADING
Remi Collet [Wed, 4 Jul 2018 06:48:38 +0000 (08:48 +0200)]
Fixed bug #62596 add getallheaders (apache_request_headers) missing function in FPM add sapi_add_request_header in public API (was add_request_header) fix arginfo for fastcgi_finish_request fucntion
Dmitry Stogov [Wed, 4 Jul 2018 23:28:00 +0000 (02:28 +0300)]
Removed legacy zval_dtor() usage. It doesn't work with zvals with refcount == 0, anyway.
Dmitry Stogov [Wed, 4 Jul 2018 20:48:39 +0000 (23:48 +0300)]
Fixed some incorrect zval_dtor() usages
Dmitry Stogov [Wed, 4 Jul 2018 19:34:36 +0000 (22:34 +0300)]
Argument unpacking with Traversables and non-integer keys.
Changed error message, added UPGRADING note and test.
Kalle Sommer Nielsen [Wed, 4 Jul 2018 17:50:34 +0000 (19:50 +0200)]
Added test case for bug #76539 for master only as the behavior has been restored
Dmitry Stogov [Wed, 4 Jul 2018 16:22:24 +0000 (19:22 +0300)]
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized 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.
Christoph M. Becker [Wed, 4 Jul 2018 10:19:29 +0000 (12:19 +0200)]
[ci skip] Document GC_C() → zend_gc_get_status()
Dmitry Stogov [Wed, 4 Jul 2018 09:08:07 +0000 (12:08 +0300)]
se zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)
Dmitry Stogov [Wed, 4 Jul 2018 09:05:51 +0000 (12:05 +0300)]
concat_function() micro optimization
Dmitry Stogov [Wed, 4 Jul 2018 06:35:12 +0000 (09:35 +0300)]
SEND_UNPACK should throw exception on Traversable with non-integer keys
Xinchen Hui [Wed, 4 Jul 2018 03:19:25 +0000 (11:19 +0800)]
Fixed test skip
Xinchen Hui [Wed, 4 Jul 2018 03:15:32 +0000 (11:15 +0800)]
Fixed build
Kalle Sommer Nielsen [Wed, 4 Jul 2018 01:04:31 +0000 (03:04 +0200)]
Fixed bug #76501 (Funny message with fatal error)
Dmitry Stogov [Tue, 3 Jul 2018 22:09:00 +0000 (01:09 +0300)]
Avoid useless copying and conversion
Dmitry Stogov [Tue, 3 Jul 2018 21:50:57 +0000 (00:50 +0300)]
API cleanup. Removed unused functions (kept compatibility macros).
Nikita Popov [Tue, 3 Jul 2018 20:44:41 +0000 (22:44 +0200)]
Do not continue extract()ing after an exception has been thrown
Make behavior consistent with a loop of normal assignments.
This is not a big issue now, because $this is the only case that
may generate an error. However typed references introduce additional
error conditions, which would be silenced by this kind of behavior.
Anatol Belski [Tue, 3 Jul 2018 18:03:11 +0000 (20:03 +0200)]
[ci skip] Update NEWS
Peter Kokot [Tue, 3 Jul 2018 13:10:22 +0000 (15:10 +0200)]
Add missing autoconf m4 quotes
Two macro calls were missing quotes and in order to be able to run the
autoupdate script, this patch adds them.
Anatol Belski [Tue, 3 Jul 2018 17:06:14 +0000 (19:06 +0200)]
Remove BOM
Anatol Belski [Tue, 3 Jul 2018 17:00:19 +0000 (19:00 +0200)]
Fix compilation with Firebird < 3
Dorin Marcoci [Sat, 13 May 2017 14:27:15 +0000 (17:27 +0300)]
Boolean data type support, added in Firebird 3. Fixes #74462.
Christoph M. Becker [Tue, 3 Jul 2018 16:58:07 +0000 (18:58 +0200)]
[ci skip] Document zend_parse_parameters_none()
Peter Kokot [Sat, 30 Jun 2018 17:59:13 +0000 (19:59 +0200)]
Remove sqlite and xmlrpc extension versions from phpinfo output
The rest of the core extensions don't display the extension versions in
the phpinfo output since they in most cases match the PHP release version.
Dmitry Stogov [Tue, 3 Jul 2018 14:47:08 +0000 (17:47 +0300)]
str_replace() micro-optimization
Anatol Belski [Tue, 3 Jul 2018 13:46:48 +0000 (15:46 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #76564 ext/zip link issues
Anatol Belski [Tue, 3 Jul 2018 13:45:01 +0000 (15:45 +0200)]
Fixed bug #76564 ext/zip link issues
Add zlib for linking directly, so then ext/zlib is not required.
Christoph M. Becker [Tue, 3 Jul 2018 12:52:48 +0000 (12:52 +0000)]
Update NEWS for 7.3.0beta1
Remi Collet [Tue, 3 Jul 2018 11:53:33 +0000 (13:53 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
bump to 7.2.9-dev
Remi Collet [Tue, 3 Jul 2018 11:52:04 +0000 (13:52 +0200)]
bump to 7.2.9-dev
Dmitry Stogov [Tue, 3 Jul 2018 10:10:22 +0000 (13:10 +0300)]
Eliminated REFCOUNTED checks on persistent constant operands in SEND_VAL[_EX] and QM_ASSIGN.
Dmitry Stogov [Tue, 3 Jul 2018 09:58:50 +0000 (12:58 +0300)]
Merge branch 'bug63217'
* bug63217:
Another fix for bug #63217
Partial revert of
30156d588c07e26d4e752ddb62344e96854d4773
Dmitry Stogov [Tue, 3 Jul 2018 08:07:39 +0000 (11:07 +0300)]
Better hot/cold code splitting