]> granicus.if.org Git - php/log
php
6 years agoRemove yearly range from copyright notice
Zeev Suraski [Wed, 30 Jan 2019 09:03:12 +0000 (11:03 +0200)]
Remove yearly range from copyright notice

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Wed, 30 Jan 2019 00:30:37 +0000 (01:30 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Prepare main branch for PHP 7.2.16

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Wed, 30 Jan 2019 00:29:05 +0000 (01:29 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Prepare main branch for PHP 7.2.16

6 years agoPrepare main branch for PHP 7.2.16
Christoph M. Becker [Wed, 30 Jan 2019 00:27:57 +0000 (01:27 +0100)]
Prepare main branch for PHP 7.2.16

6 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 29 Jan 2019 08:40:19 +0000 (09:40 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 29 Jan 2019 08:40:06 +0000 (09:40 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoMake special assert() handling independent of compiler flags
Nikita Popov [Tue, 29 Jan 2019 08:39:12 +0000 (09:39 +0100)]
Make special assert() handling independent of compiler flags

6 years agoAvoid mention of php7 in credits script
Nikita Popov [Mon, 28 Jan 2019 10:26:45 +0000 (11:26 +0100)]
Avoid mention of php7 in credits script

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Mon, 28 Jan 2019 08:23:53 +0000 (09:23 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 28 Jan 2019 08:22:49 +0000 (09:22 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77530: PHP crashes when parsing "(2)::class"
ekinhbayar [Mon, 28 Jan 2019 06:46:29 +0000 (09:46 +0300)]
Fixed bug #77530: PHP crashes when parsing "(2)::class"

6 years agoFix assign to self detection
Nikita Popov [Sun, 27 Jan 2019 19:50:08 +0000 (20:50 +0100)]
Fix assign to self detection

6 years agozend_compile.c: zend_is_variable(). Removed unnecessary checks. Naming according...
rjhdby [Sat, 26 Jan 2019 11:10:03 +0000 (14:10 +0300)]
zend_compile.c: zend_is_variable(). Removed unnecessary checks. Naming according to internal logic.

6 years agoMerge branch 'PHP-7.3'
Jakub Zelenka [Fri, 25 Jan 2019 14:16:57 +0000 (14:16 +0000)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Jakub Zelenka [Fri, 25 Jan 2019 14:16:08 +0000 (14:16 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix bug #77390 (feof might hang on TLS streams in case of fragmented TLS records)
Jakub Zelenka [Thu, 17 Jan 2019 18:05:13 +0000 (18:05 +0000)]
Fix bug #77390 (feof might hang on TLS streams in case of fragmented TLS records)

Simplified version of the fix from Abyl Valg so credit to him.

6 years agoUpdate and integrate openssl client proxy test
Jakub Zelenka [Wed, 16 Jan 2019 18:14:30 +0000 (18:14 +0000)]
Update and integrate openssl client proxy test

6 years agoAdd a test for fragmented SSL packets
Abyr Valg [Sun, 29 Apr 2018 09:05:59 +0000 (12:05 +0300)]
Add a test for fragmented SSL packets

6 years agoDon't hide real peak usage.
Dmitry Stogov [Fri, 25 Jan 2019 10:36:32 +0000 (13:36 +0300)]
Don't hide real peak usage.

6 years agoFixed bug #77518
Nikita Popov [Fri, 25 Jan 2019 10:12:34 +0000 (11:12 +0100)]
Fixed bug #77518

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 25 Jan 2019 10:03:29 +0000 (11:03 +0100)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77498
Nikita Popov [Fri, 25 Jan 2019 10:00:35 +0000 (11:00 +0100)]
Fixed bug #77498

I've renamed the function to the same name as the exported symbol
in master.

6 years agoFixed crash
Dmitry Stogov [Fri, 25 Jan 2019 08:53:31 +0000 (11:53 +0300)]
Fixed crash

6 years agoRemove unused prototype in mbstring
Nikita Popov [Thu, 24 Jan 2019 15:11:35 +0000 (16:11 +0100)]
Remove unused prototype in mbstring

Reported by legale.

6 years agoAllow strip_tags with an array of allowed tagnames
Andreas Treichel [Sat, 29 Dec 2018 21:10:19 +0000 (22:10 +0100)]
Allow strip_tags with an array of allowed tagnames

6 years agoReduce amount of updated memory
Dmitry Stogov [Thu, 24 Jan 2019 15:01:24 +0000 (18:01 +0300)]
Reduce amount of updated memory

6 years agoFixed crash
Dmitry Stogov [Thu, 24 Jan 2019 15:00:45 +0000 (18:00 +0300)]
Fixed crash

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 24 Jan 2019 14:14:09 +0000 (15:14 +0100)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77514
Nikita Popov [Thu, 24 Jan 2019 14:13:49 +0000 (15:13 +0100)]
Fixed bug #77514

6 years agoDelay hash table allocation
Dmitry Stogov [Thu, 24 Jan 2019 13:01:04 +0000 (16:01 +0300)]
Delay hash table allocation

6 years agoDisallow PHP startup, in case some ext ext/standard sub-module is not initialized...
Dmitry Stogov [Thu, 24 Jan 2019 12:59:33 +0000 (15:59 +0300)]
Disallow PHP startup, in case some ext ext/standard sub-module is not initialized sucessfully.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 24 Jan 2019 12:45:48 +0000 (13:45 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 24 Jan 2019 12:45:40 +0000 (13:45 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoMerge remote-tracking branch 'php-src/PHP-7.2' into PHP-7.2
Nikita Popov [Thu, 24 Jan 2019 12:45:27 +0000 (13:45 +0100)]
Merge remote-tracking branch 'php-src/PHP-7.2' into PHP-7.2

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 24 Jan 2019 12:40:54 +0000 (13:40 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 24 Jan 2019 12:40:36 +0000 (13:40 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoRevert "Prefix error_code with underscore in FastZPP implementation"
Nikita Popov [Thu, 24 Jan 2019 12:36:47 +0000 (13:36 +0100)]
Revert "Prefix error_code with underscore in FastZPP implementation"

This reverts commit 6305119a5193d4318add01190ca4afbb49ded102.

This is a source-compatibility break for extensions that define
custom FastZPP macros, such as ext/uv:

https://github.com/bwoebi/php-uv/blob/a983eb17b69f74a45d785ddc6a7bff3d4531b88c/php_uv.c#L75

I don't think that FastZPP was intended to be used this way, but
let's revert this from release branches to avoid extension breakage.

6 years agoImprove wording
Christoph M. Becker [Thu, 24 Jan 2019 12:09:18 +0000 (13:09 +0100)]
Improve wording

As suggested by Tom Sommer[1].

[1] <https://github.com/php/php-src/commit/8a4c2f16217fb8f8d098355f3943f31e82bcfd71#r32037340>

6 years agoFix README.RELEASE_PROCESS
Christoph M. Becker [Thu, 24 Jan 2019 11:41:53 +0000 (12:41 +0100)]
Fix README.RELEASE_PROCESS

According to current practice, and as discussed with other RMs.

6 years agoMerge branch 'PHP-7.3'
Dmitry Stogov [Thu, 24 Jan 2019 10:08:00 +0000 (13:08 +0300)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77494 (Disabling class causes segfault on member access)

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Thu, 24 Jan 2019 10:07:31 +0000 (13:07 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #77494 (Disabling class causes segfault on member access)

6 years agoFixed bug #77494 (Disabling class causes segfault on member access)
Dmitry Stogov [Thu, 24 Jan 2019 10:06:36 +0000 (13:06 +0300)]
Fixed bug #77494 (Disabling class causes segfault on member access)

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 24 Jan 2019 09:58:24 +0000 (10:58 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 24 Jan 2019 09:57:45 +0000 (10:57 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoAdd flag to disable jumptable optimization
Nikita Popov [Thu, 24 Jan 2019 09:56:04 +0000 (10:56 +0100)]
Add flag to disable jumptable optimization

This is useful for coverage. While it is currently safe to just
skip over the SWITCH_* opcodes, this may not be true in the future
due to opcache optimizations, so it's safer to disable emission of
SWITCH_* opcodes entirely.

6 years agoMake more tests run os MacOS
Gabriel Caruso [Mon, 24 Dec 2018 16:27:53 +0000 (14:27 -0200)]
Make more tests run os MacOS

6 years agoRemove the "o" serialization format
Nikita Popov [Tue, 22 Jan 2019 17:07:46 +0000 (18:07 +0100)]
Remove the "o" serialization format

We never generate the "o" format during serialization, so let's not
keep this unnecessary attack surface around.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 22 Jan 2019 13:06:34 +0000 (14:06 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Prepare main branch for PHP 7.3.3

6 years agoPrepare main branch for PHP 7.3.3
Christoph M. Becker [Tue, 22 Jan 2019 13:04:03 +0000 (14:04 +0100)]
Prepare main branch for PHP 7.3.3

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 22 Jan 2019 11:28:44 +0000 (12:28 +0100)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77287
Nikita Popov [Tue, 22 Jan 2019 11:15:06 +0000 (12:15 +0100)]
Fixed bug #77287

There may be an EXT_NOP opcode before the parameter list, we should
skip over it.

6 years agoImplement ??= operator
Nikita Popov [Tue, 15 Jan 2019 16:04:24 +0000 (17:04 +0100)]
Implement ??= operator

RFC: https://wiki.php.net/rfc/null_coalesce_equal_operator

$a ??= $b is $a ?? ($a = $b), with the difference that $a is only
evaluated once, to the degree that this is possible. In particular
in $a[foo()] ?? $b function foo() is only ever called once.
However, the variable access themselves will be reevaluated.

6 years agoMake tokenizer test robust against token renumbering
Nikita Popov [Wed, 16 Jan 2019 15:23:52 +0000 (16:23 +0100)]
Make tokenizer test robust against token renumbering

6 years agoMost opcodes that don't consume their OP1 operand, must be terminated with real consu...
Dmitry Stogov [Mon, 21 Jan 2019 23:11:50 +0000 (02:11 +0300)]
Most opcodes that don't consume their OP1 operand, must be terminated with real consumer, and don't have to be checked.
These checks are replaced by ZEND_ASSERT.

6 years agoUse SSA instead of bogus reverse linear scan.
Dmitry Stogov [Mon, 21 Jan 2019 22:33:35 +0000 (01:33 +0300)]
Use SSA instead of bogus reverse linear scan.

6 years agoFixed odd ROPE_ADD instruction placement.
Dmitry Stogov [Mon, 21 Jan 2019 20:34:09 +0000 (23:34 +0300)]
Fixed odd ROPE_ADD instruction placement.

6 years ago[ci skip] List FFI extension
Christoph M. Becker [Mon, 21 Jan 2019 19:23:53 +0000 (20:23 +0100)]
[ci skip] List FFI extension

6 years agoUse ZEND_FUNC_FREE_LOOP_VAR flag to avoid useless iterations.
Dmitry Stogov [Mon, 21 Jan 2019 19:18:07 +0000 (22:18 +0300)]
Use ZEND_FUNC_FREE_LOOP_VAR flag to avoid useless iterations.

6 years ago[ci skip] Add opcache.preload directive
Christoph M. Becker [Mon, 21 Jan 2019 16:55:53 +0000 (17:55 +0100)]
[ci skip] Add opcache.preload directive

6 years agoAvoid double live ranges recalculation.
Dmitry Stogov [Mon, 21 Jan 2019 15:17:10 +0000 (18:17 +0300)]
Avoid double live ranges recalculation.

6 years ago[ci skip] Note preloading and ext/ffi in UPGRADING
Christoph M. Becker [Mon, 21 Jan 2019 14:58:02 +0000 (15:58 +0100)]
[ci skip] Note preloading and ext/ffi in UPGRADING

6 years agoRemove superfluous variable
Christoph M. Becker [Mon, 21 Jan 2019 14:22:48 +0000 (15:22 +0100)]
Remove superfluous variable

This has been missed when libsqlite3 has been unbundled.

6 years agoLive ranges construction optimization
Dmitry Stogov [Mon, 21 Jan 2019 14:25:24 +0000 (17:25 +0300)]
Live ranges construction optimization

6 years agoUse pkg-config to detect and configure for system libgd
Christoph M. Becker [Mon, 21 Jan 2019 13:01:34 +0000 (14:01 +0100)]
Use pkg-config to detect and configure for system libgd

Formerly, a single option `--with-gd` was sufficient to enable the
extension, and to determine whether to use the system or the bundled
libgd depending on whether a directory was passed.  Since pkg-config
determines the path automatically, we now offer `--enable-gd` (whether
the extension should be build) and `--with-external-gd` (whether to use
the system libgd).

6 years agoImplement single-pass live range calculation
Nikita Popov [Thu, 17 Jan 2019 15:07:17 +0000 (16:07 +0100)]
Implement single-pass live range calculation

Instead of interleaving creation of live-ranges with the main
compiler code, compute them in a separate pass over the opcodes
as part of pass_two. Additionally, do not keep live ranges
synchronized during optimization in opcache and instead use the
same mechanism to recompute them after optimization.

6 years agoMerge branch 'PHP-7.3'
George Wang [Sun, 20 Jan 2019 20:11:58 +0000 (15:11 -0500)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
George Wang [Sun, 20 Jan 2019 20:11:37 +0000 (15:11 -0500)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoCheckin LiteSpeed SAPI 7.2.
George Wang [Sun, 20 Jan 2019 20:10:19 +0000 (15:10 -0500)]
Checkin LiteSpeed SAPI 7.2.

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sun, 20 Jan 2019 15:00:46 +0000 (16:00 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Update NEWS [ci skip]
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Sun, 20 Jan 2019 15:00:25 +0000 (16:00 +0100)]
Update NEWS [ci skip]

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sun, 20 Jan 2019 14:59:08 +0000 (15:59 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update NEWS [ci skip]

6 years agoUpdate NEWS [ci skip]
Anatol Belski [Sun, 20 Jan 2019 14:58:19 +0000 (15:58 +0100)]
Update NEWS [ci skip]

6 years ago[ci skip] Fix typos in UPGRADING
Tyson Andre [Sat, 19 Jan 2019 16:02:37 +0000 (11:02 -0500)]
[ci skip] Fix typos in UPGRADING

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 19 Jan 2019 12:56:51 +0000 (13:56 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Skip test on unsuitable build

6 years agoSkip test on unsuitable build
Anatol Belski [Sat, 19 Jan 2019 12:53:32 +0000 (13:53 +0100)]
Skip test on unsuitable build

This test reveals a difference between TS and NTS through all the
versions, which is probably too late to fix at this stage of 7.3.
While NTS always relies on the system getcwd(), TS uses a fake CWD
which might get out of sync when the real dir is deleted. Thus,
skip test on unsuitable build. Investigate possibilities to fix this
edge case for later versions.

6 years agoSync with upstream
Christoph M. Becker [Sat, 19 Jan 2019 09:35:39 +0000 (10:35 +0100)]
Sync with upstream

Even though libgd/libgd#492 is not a relevant bug fix for PHP, since
the binding doesn't use the `gdImage*Ptr()` functions at all, we're
porting the fix to stay in sync here.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sat, 19 Jan 2019 10:21:07 +0000 (11:21 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix failing test

6 years agoFix failing test
Christoph M. Becker [Sat, 19 Jan 2019 10:13:13 +0000 (11:13 +0100)]
Fix failing test

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sat, 19 Jan 2019 09:18:55 +0000 (10:18 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77479: imagewbmp() segfaults with very large images

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sat, 19 Jan 2019 09:17:20 +0000 (10:17 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77479: imagewbmp() segfaults with very large images

6 years agoFix #77479: imagewbmp() segfaults with very large images
Christoph M. Becker [Sat, 19 Jan 2019 09:03:11 +0000 (10:03 +0100)]
Fix #77479: imagewbmp() segfaults with very large images

We must not proceed working with the Wbmp structure, if it hasn't been
allocated.

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 19 Jan 2019 02:34:36 +0000 (03:34 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Make test output more reliable

6 years agoMake test output more reliable
Anatol Belski [Sat, 19 Jan 2019 02:33:37 +0000 (03:33 +0100)]
Make test output more reliable

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 19 Jan 2019 01:39:42 +0000 (02:39 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed bug #77484 Zend engine crashes when calling realpath in invalid working dir

6 years agoFixed bug #77484 Zend engine crashes when calling realpath in invalid working dir
Anatol Belski [Sat, 19 Jan 2019 01:34:59 +0000 (02:34 +0100)]
Fixed bug #77484 Zend engine crashes when calling realpath in invalid working dir

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 18 Jan 2019 14:03:00 +0000 (15:03 +0100)]
Merge branch 'PHP-7.3'

6 years agoAdd additional no_sanitize_address attributes
Nikita Popov [Fri, 18 Jan 2019 14:01:51 +0000 (15:01 +0100)]
Add additional no_sanitize_address attributes

To fix bug #77447 in release mode as well.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 18 Jan 2019 11:49:08 +0000 (12:49 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 18 Jan 2019 11:48:52 +0000 (12:48 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix seeking in php://input
Lauri Kenttä [Wed, 16 Jan 2019 20:08:03 +0000 (22:08 +0200)]
Fix seeking in php://input

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 18 Jan 2019 11:06:42 +0000 (12:06 +0100)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 18 Jan 2019 11:04:33 +0000 (12:04 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #76675
Pedro Magalhães [Wed, 16 Jan 2019 00:33:03 +0000 (00:33 +0000)]
Fixed bug #76675

Leave a reference to the resource in the php_curl.

6 years agoMicro-optimization
Dmitry Stogov [Fri, 18 Jan 2019 09:43:42 +0000 (12:43 +0300)]
Micro-optimization

6 years agoOptimize zend_handle_fetch_obj_flags()
Dmitry Stogov [Thu, 17 Jan 2019 22:22:14 +0000 (01:22 +0300)]
Optimize zend_handle_fetch_obj_flags()

6 years agoImproved ZEND_TRY_ASSIGN... API to avoid unnecessary double copying and reduce code...
Dmitry Stogov [Thu, 17 Jan 2019 21:53:48 +0000 (00:53 +0300)]
Improved ZEND_TRY_ASSIGN... API to avoid unnecessary double copying and reduce code bloat.

6 years agoMerge branch 'PHP-7.3'
Jakub Zelenka [Thu, 17 Jan 2019 20:05:09 +0000 (20:05 +0000)]
Merge branch 'PHP-7.3'

6 years agoList me in the openssl maintainers
Jakub Zelenka [Thu, 17 Jan 2019 20:04:44 +0000 (20:04 +0000)]
List me in the openssl maintainers

I have been basically doing that since 2015 or so

6 years agoMerge branch 'PHP-7.3'
Jakub Zelenka [Thu, 17 Jan 2019 18:38:59 +0000 (18:38 +0000)]
Merge branch 'PHP-7.3'

6 years agoFix bug #77430 (php-fpm crashes with Main process exited)
Jakub Zelenka [Thu, 17 Jan 2019 18:33:53 +0000 (18:33 +0000)]
Fix bug #77430 (php-fpm crashes with Main process exited)