]>
granicus.if.org Git - php/log
Nikita Popov [Sat, 9 Jun 2018 11:15:37 +0000 (13:15 +0200)]
Don't use UNREFs during array operations
Perform DEREFs instead. We were already doing this in some, but not
all places.
While UNREFs are supposed to be transparent, in practice they have
rare observable side effects. Calling array_merge() on an array
should never change how that array behaves.
Anatol Belski [Sat, 9 Jun 2018 09:23:06 +0000 (11:23 +0200)]
Fixed bug #76422 ftruncate fails on files > 2GB
Nikita Popov [Sat, 9 Jun 2018 09:04:40 +0000 (11:04 +0200)]
Fix mysqlnd build without openssl
Nikita Popov [Fri, 8 Jun 2018 22:29:33 +0000 (00:29 +0200)]
Fix handling of assign-ops on overloaded props with ref return
Assign-ops and incdec on overloaded properties are implemented
using a read_property followed by write_property. Previously, if
__get() returned by-reference, pre-incdec and assign-op
additionally also modified the reference, while post-incdec worked
correctly.
This change synchronizes the three code-paths to not modify the
reference. The pre-incdec implementation matches the post-incdec
implementation, the assign-op implementation uses a distinct
result operand.
Nikita Popov [Fri, 8 Jun 2018 21:11:45 +0000 (23:11 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Fri, 8 Jun 2018 21:10:43 +0000 (23:10 +0200)]
Deduplicate code using php_timezone_to_string()
Looks like this usage was overlooked when the function was
introduced.
David Carlier [Sun, 18 Feb 2018 16:04:51 +0000 (16:04 +0000)]
cast to int to disable compilation warnings.
Peter Kokot [Sun, 3 Jun 2018 02:32:19 +0000 (04:32 +0200)]
Sync phpinfo output for pdo_pgsql
This patch removes the module version and revision from the phpinfo
output to sync the phpinfo with the rest of the bundled extensions.
Nikita Popov [Fri, 8 Jun 2018 21:02:25 +0000 (23:02 +0200)]
Merge branch 'PHP-7.2'
Keyur Govande [Mon, 4 Jun 2018 19:22:50 +0000 (15:22 -0400)]
Avoid leaking the urandom fd
When Apache is reloaded, it unloads the extension, but the open file descriptor to /dev/urandom is left hanging around and is leaked. This fixes the bug.
Duplicate of https://github.com/jedisct1/libsodium-php/pull/173
Stas Malyshev [Wed, 6 Jun 2018 08:06:08 +0000 (08:06 +0000)]
Update NEWS for 7.3.0alpha2
Dmitry Stogov [Thu, 7 Jun 2018 13:30:53 +0000 (16:30 +0300)]
Inline few small opcode handlers into hybrid executor
Dmitry Stogov [Wed, 6 Jun 2018 12:29:59 +0000 (15:29 +0300)]
Added parentheses
Dmitry Stogov [Wed, 6 Jun 2018 12:27:18 +0000 (15:27 +0300)]
Fastcall calling convention is not comaptible with variable number of arguments
Dmitry Stogov [Wed, 6 Jun 2018 12:26:26 +0000 (15:26 +0300)]
Fixed prototypes, foo(void) instead of foo()
Anatol Belski [Wed, 6 Jun 2018 09:21:11 +0000 (11:21 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix VC compilation as variable size array is not supported
NEWS for 7.2.8
Anatol Belski [Wed, 6 Jun 2018 09:14:15 +0000 (11:14 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix VC compilation as variable size array is not supported
Fix MySQL 8 auth
Anatol Belski [Wed, 6 Jun 2018 09:13:28 +0000 (11:13 +0200)]
Fix VC compilation as variable size array is not supported
Dmitry Stogov [Tue, 5 Jun 2018 22:57:19 +0000 (01:57 +0300)]
Micro-optimizations
Johannes Schlüter [Tue, 5 Jun 2018 22:25:15 +0000 (00:25 +0200)]
Merge branch 'PHP-7.1'
Johannes Schlüter [Tue, 5 Jun 2018 22:25:01 +0000 (00:25 +0200)]
Merge branch 'master' of git.php.net:/php-src
Johannes Schlüter [Tue, 5 Jun 2018 22:24:41 +0000 (00:24 +0200)]
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
Johannes Schlüter [Tue, 5 Jun 2018 22:24:19 +0000 (00:24 +0200)]
Merge branch 'PHP-7.1'
Johannes Schlüter [Tue, 5 Jun 2018 22:17:34 +0000 (00:17 +0200)]
Fix MySQL 8 auth
Sara Golemon [Tue, 5 Jun 2018 16:07:44 +0000 (12:07 -0400)]
NEWS for 7.2.8
Christoph M. Becker [Tue, 5 Jun 2018 13:01:02 +0000 (15:01 +0200)]
Update to SQLite 3.24.0
Xinchen Hui [Tue, 5 Jun 2018 09:19:17 +0000 (17:19 +0800)]
Merge branch 'master' of git.php.net:/php-src
* 'master' of git.php.net:/php-src:
Embed zend_leave_helper() into hybrid executor to avoid call overhead.
Cleanup
Xinchen Hui [Tue, 5 Jun 2018 09:16:45 +0000 (17:16 +0800)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #76410 (SIGV in zend_mm_alloc_small)
Fix bug #76390 - do not allow invalid strings in range()
Conflicts:
ext/standard/array.c
Xinchen Hui [Tue, 5 Jun 2018 09:15:57 +0000 (17:15 +0800)]
Fixed bug #76410 (SIGV in zend_mm_alloc_small)
Dmitry Stogov [Tue, 5 Jun 2018 08:33:19 +0000 (11:33 +0300)]
Embed zend_leave_helper() into hybrid executor to avoid call overhead.
Dmitry Stogov [Tue, 5 Jun 2018 08:26:15 +0000 (11:26 +0300)]
Cleanup
Stanislav Malyshev [Tue, 5 Jun 2018 05:44:05 +0000 (22:44 -0700)]
Fix bug #76390 - do not allow invalid strings in range()
Stanislav Malyshev [Tue, 5 Jun 2018 05:51:38 +0000 (22:51 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix bug #76390 - do not allow invalid strings in range()
Stanislav Malyshev [Tue, 5 Jun 2018 05:44:05 +0000 (22:44 -0700)]
Fix bug #76390 - do not allow invalid strings in range()
Christoph M. Becker [Mon, 4 Jun 2018 22:58:03 +0000 (00:58 +0200)]
[ci skip] Fix typos in NEWS
Christoph M. Becker [Mon, 4 Jun 2018 22:21:29 +0000 (00:21 +0200)]
[ci skip] Remove trailing WS
Since commit
2238403 removed respective trailing WS in files generated
by this script, we remove the trailing WS in the first place, to avoid
further mundane merge conflicts.
[1] http://git.php.net/?p=php-src.git;a=commit;h=
2238403892ccf87143a59814538d9f764509d9e7
Peter Kokot [Sun, 3 Jun 2018 03:38:34 +0000 (05:38 +0200)]
Remove enchant version from the phpinfo output
This patch syncs the phpinfo output with other bundled extensions.
Peter Kokot [Mon, 28 May 2018 03:09:46 +0000 (05:09 +0200)]
Remove some old occurrences of configure.in
configure.ac is the recommended file to use instead of the old
configure.in which will be removed in autotools future versions.
Peter Kokot [Sat, 2 Jun 2018 15:59:26 +0000 (17:59 +0200)]
Sync tidy phpinfo extension version
This patch removes the tidy extension Git ident attribute blob name from
the phpinfo output to be synced with other extensions versioning system
and replaces table header with normal row in the first tidy info table.
Peter Kokot [Sat, 2 Jun 2018 15:40:53 +0000 (17:40 +0200)]
Normalize the ldap extension version in phpinfo output
This patch normalizes the phpinfo output for the ldap extension and
removes the displayed Git attribute ident blob object name.
Peter Kokot [Sat, 2 Jun 2018 02:11:57 +0000 (04:11 +0200)]
Normalize Reflection phpinfo() output
This patch normalizes the Reflection extension version in the phpinfo
output. It removes the Git attributes ident blob object name from Git
repository as an extension version.
Also the table output is synced with other extensions (i.e. enabled
in a row instead of table header).
Anatol Belski [Sun, 3 Jun 2018 12:06:11 +0000 (14:06 +0200)]
[ci skip] Update libmagic.patch
Anatol Belski [Sun, 3 Jun 2018 10:45:37 +0000 (12:45 +0200)]
Remove unnecessary decls, php.h is included
Anatol Belski [Sun, 3 Jun 2018 10:14:42 +0000 (12:14 +0200)]
Align the ported place with libmagic
Anatol Belski [Sat, 2 Jun 2018 18:58:01 +0000 (20:58 +0200)]
[ci skip] Add UPGRADING note
Peter Kokot [Mon, 28 May 2018 16:54:16 +0000 (18:54 +0200)]
Update README.REDIST.BINS
- Update PCRE2 library license info
- Added libbcmath license info
Peter Kokot [Sat, 2 Jun 2018 04:21:47 +0000 (06:21 +0200)]
Normalize SimpleXML phpinfo output
Peter Kokot [Sat, 2 Jun 2018 05:41:38 +0000 (07:41 +0200)]
Remove revision for recode from phpinfo
Nikita Popov [Sat, 2 Jun 2018 11:41:09 +0000 (13:41 +0200)]
Fix return type of zend_ini_dtor
Peter Kokot [Sat, 2 Jun 2018 02:58:30 +0000 (04:58 +0200)]
Normalize the POSIX phpinfo output
Instead of the Git attributes ident blob object name display only
extension status (enabled).
Peter Kokot [Sat, 2 Jun 2018 01:30:54 +0000 (03:30 +0200)]
Normalize filter phpinfo() output
This patch normalizes the filter extension version in the php info
output. Instead of the Git attributes ident blob object name from Git
repository only extension status is displayed.
Peter Kokot [Sat, 2 Jun 2018 01:10:24 +0000 (03:10 +0200)]
Normalize sysvmsg phpinfo() output
This patch normalizes the sysvmsg extension version in the php info
output. Instead of the Git attributes ident blob object name from Git
repository it only displays the extension status.
Remove sysvmsg version
Peter Kokot [Fri, 1 Jun 2018 22:44:04 +0000 (00:44 +0200)]
Fix warnings defined but not used
Peter Kokot [Fri, 1 Jun 2018 21:56:19 +0000 (23:56 +0200)]
Fix warning unused variable ret
Dmitry Stogov [Fri, 1 Jun 2018 08:58:57 +0000 (11:58 +0300)]
Removed "dead" code (zend_hash_update() never fails)
Dmitry Stogov [Thu, 31 May 2018 16:02:51 +0000 (19:02 +0300)]
Fixed ISSET/ISEMPTY bit meaning to simplify run-time checks
Anatol Belski [Thu, 31 May 2018 13:30:32 +0000 (15:30 +0200)]
Use hrtime() for timing tests
Anatol Belski [Thu, 31 May 2018 12:15:28 +0000 (14:15 +0200)]
Fix AVX part
Anatol Belski [Thu, 31 May 2018 10:32:15 +0000 (12:32 +0200)]
Do one test build with AVX
Dmitry Stogov [Thu, 31 May 2018 08:57:22 +0000 (11:57 +0300)]
Export standard object handlers, to avoid indirect access
Dmitry Stogov [Wed, 30 May 2018 22:17:55 +0000 (01:17 +0300)]
Optimize zend_new_array() for special case, when size <= HT_MIN_SIZE
Dmitry Stogov [Wed, 30 May 2018 17:59:29 +0000 (20:59 +0300)]
Use SSE/AVX instructions
Dmitry Stogov [Wed, 30 May 2018 17:17:52 +0000 (20:17 +0300)]
Use SSE2 instruction to reset HashTable
Dmitry Stogov [Wed, 30 May 2018 17:17:25 +0000 (20:17 +0300)]
Avoid rehashing of "packed" array
Dmitry Stogov [Wed, 30 May 2018 15:24:31 +0000 (18:24 +0300)]
Eliminate some checks for zero character inside an inclue file name
Dmitry Stogov [Wed, 30 May 2018 11:03:48 +0000 (14:03 +0300)]
Avoid agressive inlining in rarely used paths
Dmitry Stogov [Tue, 29 May 2018 22:50:44 +0000 (01:50 +0300)]
Marked rarely used opcodes as "cold" (e.g. ADD_CONST_CONST ususaly optimized out).
Peter Kokot [Mon, 28 May 2018 06:08:33 +0000 (08:08 +0200)]
Remove build system files of bundled library libbcmath
The bundled library libbcmath is maintained in the php-src and its
build system files are outdated and not used.
Dmitry Stogov [Tue, 29 May 2018 15:04:16 +0000 (18:04 +0300)]
Revert "Avoid reference-counting"
This reverts commit
ea26ab3393775437930e7900426632fef7124ed3 .
Dmitry Stogov [Tue, 29 May 2018 14:58:06 +0000 (17:58 +0300)]
Removed useless zval_ptr_dtor()
Dmitry Stogov [Tue, 29 May 2018 07:16:02 +0000 (10:16 +0300)]
Fixed HashTable load factor
Dmitry Stogov [Mon, 28 May 2018 22:38:27 +0000 (01:38 +0300)]
Replace unused generic zend_hash_*add_or_update() functions by compact implmentations.
Dmitry Stogov [Mon, 28 May 2018 21:09:49 +0000 (00:09 +0300)]
_zend_hash_index_add_or_update_i() optimization
Peter Kokot [Mon, 28 May 2018 00:21:31 +0000 (02:21 +0200)]
Update year range in hrtime c and h files
Peter Kokot [Sun, 27 May 2018 05:40:09 +0000 (07:40 +0200)]
Remove unused binary_pipes option
Option binary_pipes was added in PHP 6 which was then refactored
and this option was removed.
Nikita Popov [Mon, 28 May 2018 20:14:04 +0000 (22:14 +0200)]
Add note about heredoc BC break
Anatol Belski [Mon, 28 May 2018 18:44:58 +0000 (20:44 +0200)]
Fix build without global registers
Dmitry Stogov [Mon, 28 May 2018 15:30:04 +0000 (18:30 +0300)]
Merge branch 'master' of git.php.net:php-src
* 'master' of git.php.net:php-src:
Translate correct C++ version with suitable compiler
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)
Dmitry Stogov [Mon, 28 May 2018 15:29:43 +0000 (18:29 +0300)]
Removed dead code
Anatol Belski [Mon, 28 May 2018 15:15:22 +0000 (17:15 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Translate correct C++ version with suitable compiler
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)
Anatol Belski [Mon, 28 May 2018 15:13:55 +0000 (17:13 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Translate correct C++ version with suitable compiler
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)
Anatol Belski [Mon, 28 May 2018 15:12:06 +0000 (17:12 +0200)]
Translate correct C++ version with suitable compiler
Dmitry Stogov [Mon, 28 May 2018 15:11:43 +0000 (18:11 +0300)]
Separate common code into helper function
Dmitry Stogov [Mon, 28 May 2018 14:10:58 +0000 (17:10 +0300)]
Avoid reference-counting
Dmitry Stogov [Mon, 28 May 2018 13:27:12 +0000 (16:27 +0300)]
Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.
Dmitry Stogov [Mon, 28 May 2018 10:09:33 +0000 (13:09 +0300)]
Added missing debug arguments
Bob Weinand [Sun, 27 May 2018 22:48:35 +0000 (00:48 +0200)]
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)
Nikita Popov [Sat, 26 May 2018 20:06:52 +0000 (22:06 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Sat, 26 May 2018 20:06:44 +0000 (22:06 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Mitch Hagstrand [Wed, 16 May 2018 20:01:24 +0000 (15:01 -0500)]
Adds print_global_vars to gdbinit
Peter Kokot [Sat, 26 May 2018 17:34:38 +0000 (19:34 +0200)]
Add missing opcache.opt_debug_level ini directive
Peter Kokot [Sat, 26 May 2018 18:23:11 +0000 (20:23 +0200)]
Enhance the ext_skel.php script file
- File is now executable
- Shebang added on top
- Normal UTF-8 encoding instead of UTF-8 with BOM
- trailing whitespaces trimmed as a CS fix
- Closing PHP tag removed in favor of readability, avoiding possible
issues with whitespaces, and to comply with current CS from the
PHP ecosystem - PSRs etc.
Nikita Popov [Sat, 26 May 2018 19:58:54 +0000 (21:58 +0200)]
UPGRADING tweaks
Fix a typo and clarify that Reflection changes only affect string
export. No API relevant return values are changed.
[ci skip]
Christoph M. Becker [Sat, 26 May 2018 11:38:30 +0000 (13:38 +0200)]
Update to Oniguruma 6.8.2
Christoph M. Becker [Tue, 8 May 2018 21:00:27 +0000 (23:00 +0200)]
Fix #76137: config.guess/config.sub do not recognize RISC-V
These had their latest update more than three years ago, so there may
be even more issues. Since the config project[1] does not have any
versioning, we're grabbing the most recent HEAD.
[1] <http://git.savannah.gnu.org/gitweb/?p=config.git;a=summary>
Nikita Popov [Fri, 25 May 2018 10:09:51 +0000 (12:09 +0200)]
Add some upgrading notes for mbstring
Nikita Popov [Fri, 25 May 2018 09:33:13 +0000 (11:33 +0200)]
Fixed bug #76319
While at it, also make sure that mbstring case conversion takes
into account the specified substitution character and substitution
mode.
Joe Watkins [Wed, 23 May 2018 20:24:07 +0000 (22:24 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
fix phpdbg disabling chroot support
Joe Watkins [Wed, 23 May 2018 20:23:53 +0000 (22:23 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
fix phpdbg disabling chroot support
Joe Watkins [Wed, 23 May 2018 20:23:13 +0000 (22:23 +0200)]
fix phpdbg disabling chroot support