]> granicus.if.org Git - php/log
php
7 years agoDon't use UNREFs during array operations
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.

7 years agoFixed bug #76422 ftruncate fails on files > 2GB
Anatol Belski [Sat, 9 Jun 2018 09:23:06 +0000 (11:23 +0200)]
Fixed bug #76422 ftruncate fails on files > 2GB

7 years agoFix mysqlnd build without openssl
Nikita Popov [Sat, 9 Jun 2018 09:04:40 +0000 (11:04 +0200)]
Fix mysqlnd build without openssl

7 years agoFix handling of assign-ops on overloaded props with ref return
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.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 8 Jun 2018 21:11:45 +0000 (23:11 +0200)]
Merge branch 'PHP-7.2'

7 years agoDeduplicate code using php_timezone_to_string()
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.

7 years agocast to int to disable compilation warnings.
David Carlier [Sun, 18 Feb 2018 16:04:51 +0000 (16:04 +0000)]
cast to int to disable compilation warnings.

7 years agoSync phpinfo output for pdo_pgsql
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.

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 8 Jun 2018 21:02:25 +0000 (23:02 +0200)]
Merge branch 'PHP-7.2'

7 years agoAvoid leaking the urandom fd
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

7 years agoUpdate NEWS for 7.3.0alpha2
Stas Malyshev [Wed, 6 Jun 2018 08:06:08 +0000 (08:06 +0000)]
Update NEWS for 7.3.0alpha2

7 years agoInline few small opcode handlers into hybrid executor
Dmitry Stogov [Thu, 7 Jun 2018 13:30:53 +0000 (16:30 +0300)]
Inline few small opcode handlers into hybrid executor

7 years agoAdded parentheses
Dmitry Stogov [Wed, 6 Jun 2018 12:29:59 +0000 (15:29 +0300)]
Added parentheses

7 years agoFastcall calling convention is not comaptible with variable number of arguments
Dmitry Stogov [Wed, 6 Jun 2018 12:27:18 +0000 (15:27 +0300)]
Fastcall calling convention is not comaptible with variable number of arguments

7 years agoFixed prototypes, foo(void) instead of foo()
Dmitry Stogov [Wed, 6 Jun 2018 12:26:26 +0000 (15:26 +0300)]
Fixed prototypes, foo(void) instead of foo()

7 years agoMerge branch 'PHP-7.2'
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

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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

7 years agoFix VC compilation as variable size array is not supported
Anatol Belski [Wed, 6 Jun 2018 09:13:28 +0000 (11:13 +0200)]
Fix VC compilation as variable size array is not supported

7 years agoMicro-optimizations
Dmitry Stogov [Tue, 5 Jun 2018 22:57:19 +0000 (01:57 +0300)]
Micro-optimizations

7 years agoMerge branch 'PHP-7.1'
Johannes Schlüter [Tue, 5 Jun 2018 22:25:15 +0000 (00:25 +0200)]
Merge branch 'PHP-7.1'

7 years agoMerge branch 'master' of git.php.net:/php-src
Johannes Schlüter [Tue, 5 Jun 2018 22:25:01 +0000 (00:25 +0200)]
Merge branch 'master' of git.php.net:/php-src

7 years agoMerge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
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

7 years agoMerge branch 'PHP-7.1'
Johannes Schlüter [Tue, 5 Jun 2018 22:24:19 +0000 (00:24 +0200)]
Merge branch 'PHP-7.1'

7 years agoFix MySQL 8 auth
Johannes Schlüter [Tue, 5 Jun 2018 22:17:34 +0000 (00:17 +0200)]
Fix MySQL 8 auth

7 years agoNEWS for 7.2.8
Sara Golemon [Tue, 5 Jun 2018 16:07:44 +0000 (12:07 -0400)]
NEWS for 7.2.8

7 years agoUpdate to SQLite 3.24.0
Christoph M. Becker [Tue, 5 Jun 2018 13:01:02 +0000 (15:01 +0200)]
Update to SQLite 3.24.0

7 years agoMerge branch 'master' of git.php.net:/php-src
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

7 years agoMerge branch 'PHP-7.2'
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

7 years agoFixed bug #76410 (SIGV in zend_mm_alloc_small)
Xinchen Hui [Tue, 5 Jun 2018 09:15:57 +0000 (17:15 +0800)]
Fixed bug #76410 (SIGV in zend_mm_alloc_small)

7 years agoEmbed zend_leave_helper() into hybrid executor to avoid call overhead.
Dmitry Stogov [Tue, 5 Jun 2018 08:33:19 +0000 (11:33 +0300)]
Embed zend_leave_helper() into hybrid executor to avoid call overhead.

7 years agoCleanup
Dmitry Stogov [Tue, 5 Jun 2018 08:26:15 +0000 (11:26 +0300)]
Cleanup

7 years agoFix 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()

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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()

7 years agoFix 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()

7 years ago[ci skip] Fix typos in NEWS
Christoph M. Becker [Mon, 4 Jun 2018 22:58:03 +0000 (00:58 +0200)]
[ci skip] Fix typos in NEWS

7 years ago[ci skip] Remove trailing WS
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

7 years agoRemove enchant version from the phpinfo output
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.

7 years agoRemove some old occurrences of configure.in
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.

7 years agoSync tidy phpinfo extension version
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.

7 years agoNormalize the ldap extension version in phpinfo output
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.

7 years agoNormalize Reflection phpinfo() output
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).

7 years ago[ci skip] Update libmagic.patch
Anatol Belski [Sun, 3 Jun 2018 12:06:11 +0000 (14:06 +0200)]
[ci skip] Update libmagic.patch

7 years agoRemove unnecessary decls, php.h is included
Anatol Belski [Sun, 3 Jun 2018 10:45:37 +0000 (12:45 +0200)]
Remove unnecessary decls, php.h is included

7 years agoAlign the ported place with libmagic
Anatol Belski [Sun, 3 Jun 2018 10:14:42 +0000 (12:14 +0200)]
Align the ported place with libmagic

7 years ago[ci skip] Add UPGRADING note
Anatol Belski [Sat, 2 Jun 2018 18:58:01 +0000 (20:58 +0200)]
[ci skip] Add UPGRADING note

7 years agoUpdate README.REDIST.BINS
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

7 years agoNormalize SimpleXML phpinfo output
Peter Kokot [Sat, 2 Jun 2018 04:21:47 +0000 (06:21 +0200)]
Normalize SimpleXML phpinfo output

7 years agoRemove revision for recode from phpinfo
Peter Kokot [Sat, 2 Jun 2018 05:41:38 +0000 (07:41 +0200)]
Remove revision for recode from phpinfo

7 years agoFix return type of zend_ini_dtor
Nikita Popov [Sat, 2 Jun 2018 11:41:09 +0000 (13:41 +0200)]
Fix return type of zend_ini_dtor

7 years agoNormalize the POSIX phpinfo output
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).

7 years agoNormalize filter phpinfo() output
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.

7 years agoNormalize sysvmsg phpinfo() output
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

7 years agoFix warnings defined but not used
Peter Kokot [Fri, 1 Jun 2018 22:44:04 +0000 (00:44 +0200)]
Fix warnings defined but not used

7 years agoFix warning unused variable ret
Peter Kokot [Fri, 1 Jun 2018 21:56:19 +0000 (23:56 +0200)]
Fix warning unused variable ret

7 years agoRemoved "dead" code (zend_hash_update() never fails)
Dmitry Stogov [Fri, 1 Jun 2018 08:58:57 +0000 (11:58 +0300)]
Removed "dead" code (zend_hash_update() never fails)

7 years agoFixed ISSET/ISEMPTY bit meaning to simplify run-time checks
Dmitry Stogov [Thu, 31 May 2018 16:02:51 +0000 (19:02 +0300)]
Fixed ISSET/ISEMPTY bit meaning to simplify run-time checks

7 years agoUse hrtime() for timing tests
Anatol Belski [Thu, 31 May 2018 13:30:32 +0000 (15:30 +0200)]
Use hrtime() for timing tests

7 years agoFix AVX part
Anatol Belski [Thu, 31 May 2018 12:15:28 +0000 (14:15 +0200)]
Fix AVX part

7 years agoDo one test build with AVX
Anatol Belski [Thu, 31 May 2018 10:32:15 +0000 (12:32 +0200)]
Do one test build with AVX

7 years agoExport standard object handlers, to avoid indirect access
Dmitry Stogov [Thu, 31 May 2018 08:57:22 +0000 (11:57 +0300)]
Export standard object handlers, to avoid indirect access

7 years agoOptimize zend_new_array() for special case, when size <= HT_MIN_SIZE
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

7 years agoUse SSE/AVX instructions
Dmitry Stogov [Wed, 30 May 2018 17:59:29 +0000 (20:59 +0300)]
Use SSE/AVX instructions

7 years agoUse SSE2 instruction to reset HashTable
Dmitry Stogov [Wed, 30 May 2018 17:17:52 +0000 (20:17 +0300)]
Use SSE2 instruction to reset HashTable

7 years agoAvoid rehashing of "packed" array
Dmitry Stogov [Wed, 30 May 2018 17:17:25 +0000 (20:17 +0300)]
Avoid rehashing of "packed" array

7 years agoEliminate some checks for zero character inside an inclue file name
Dmitry Stogov [Wed, 30 May 2018 15:24:31 +0000 (18:24 +0300)]
Eliminate some checks for zero character inside an inclue file name

7 years agoAvoid agressive inlining in rarely used paths
Dmitry Stogov [Wed, 30 May 2018 11:03:48 +0000 (14:03 +0300)]
Avoid agressive inlining in rarely used paths

7 years agoMarked rarely used opcodes as "cold" (e.g. ADD_CONST_CONST ususaly optimized out).
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).

7 years agoRemove build system files of bundled library libbcmath
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.

7 years agoRevert "Avoid reference-counting"
Dmitry Stogov [Tue, 29 May 2018 15:04:16 +0000 (18:04 +0300)]
Revert "Avoid reference-counting"

This reverts commit ea26ab3393775437930e7900426632fef7124ed3.

7 years agoRemoved useless zval_ptr_dtor()
Dmitry Stogov [Tue, 29 May 2018 14:58:06 +0000 (17:58 +0300)]
Removed useless zval_ptr_dtor()

7 years agoFixed HashTable load factor
Dmitry Stogov [Tue, 29 May 2018 07:16:02 +0000 (10:16 +0300)]
Fixed HashTable load factor

7 years agoReplace unused generic zend_hash_*add_or_update() functions by compact implmentations.
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.

7 years ago_zend_hash_index_add_or_update_i() optimization
Dmitry Stogov [Mon, 28 May 2018 21:09:49 +0000 (00:09 +0300)]
_zend_hash_index_add_or_update_i() optimization

7 years agoUpdate year range in hrtime c and h files
Peter Kokot [Mon, 28 May 2018 00:21:31 +0000 (02:21 +0200)]
Update year range in hrtime c and h files

7 years agoRemove unused binary_pipes option
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.

7 years agoAdd note about heredoc BC break
Nikita Popov [Mon, 28 May 2018 20:14:04 +0000 (22:14 +0200)]
Add note about heredoc BC break

7 years agoFix build without global registers
Anatol Belski [Mon, 28 May 2018 18:44:58 +0000 (20:44 +0200)]
Fix build without global registers

7 years agoMerge branch 'master' of git.php.net:php-src
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)

7 years agoRemoved dead code
Dmitry Stogov [Mon, 28 May 2018 15:29:43 +0000 (18:29 +0300)]
Removed dead code

7 years agoMerge branch 'PHP-7.2'
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)

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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)

7 years agoTranslate correct C++ version with suitable compiler
Anatol Belski [Mon, 28 May 2018 15:12:06 +0000 (17:12 +0200)]
Translate correct C++ version with suitable compiler

7 years agoSeparate common code into helper function
Dmitry Stogov [Mon, 28 May 2018 15:11:43 +0000 (18:11 +0300)]
Separate common code into helper function

7 years agoAvoid reference-counting
Dmitry Stogov [Mon, 28 May 2018 14:10:58 +0000 (17:10 +0300)]
Avoid reference-counting

7 years agoUse zend_string_release_ex() instread of zend_string_release() in places, where we...
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.

7 years agoAdded missing debug arguments
Dmitry Stogov [Mon, 28 May 2018 10:09:33 +0000 (13:09 +0300)]
Added missing debug arguments

7 years agoFixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)
Bob Weinand [Sun, 27 May 2018 22:48:35 +0000 (00:48 +0200)]
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 26 May 2018 20:06:52 +0000 (22:06 +0200)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into 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

7 years agoAdds print_global_vars to gdbinit
Mitch Hagstrand [Wed, 16 May 2018 20:01:24 +0000 (15:01 -0500)]
Adds print_global_vars to gdbinit

7 years agoAdd missing opcache.opt_debug_level ini directive
Peter Kokot [Sat, 26 May 2018 17:34:38 +0000 (19:34 +0200)]
Add missing opcache.opt_debug_level ini directive

7 years agoEnhance the ext_skel.php script file
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.

7 years agoUPGRADING tweaks
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]

7 years agoUpdate to Oniguruma 6.8.2
Christoph M. Becker [Sat, 26 May 2018 11:38:30 +0000 (13:38 +0200)]
Update to Oniguruma 6.8.2

7 years agoFix #76137: config.guess/config.sub do not recognize RISC-V
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>

7 years agoAdd some upgrading notes for mbstring
Nikita Popov [Fri, 25 May 2018 10:09:51 +0000 (12:09 +0200)]
Add some upgrading notes for mbstring

7 years agoFixed bug #76319
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.

7 years agoMerge branch 'PHP-7.2'
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

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
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

7 years agofix phpdbg disabling chroot support
Joe Watkins [Wed, 23 May 2018 20:23:13 +0000 (22:23 +0200)]
fix phpdbg disabling chroot support