]> granicus.if.org Git - php/log
php
5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 13 Aug 2019 10:35:02 +0000 (12:35 +0200)]
Merge branch 'PHP-7.4'

5 years agoAdjust GC count in SPL test
Nikita Popov [Tue, 13 Aug 2019 10:34:48 +0000 (12:34 +0200)]
Adjust GC count in SPL test

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 13 Aug 2019 10:17:47 +0000 (12:17 +0200)]
Merge branch 'PHP-7.4'

5 years agoRemove removed nested data from GC count
Nikita Popov [Tue, 13 Aug 2019 10:17:08 +0000 (12:17 +0200)]
Remove removed nested data from GC count

5 years agoDon't include non-refcounted structures in GC count
Nikita Popov [Tue, 13 Aug 2019 10:08:59 +0000 (12:08 +0200)]
Don't include non-refcounted structures in GC count

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 13 Aug 2019 09:45:16 +0000 (11:45 +0200)]
Merge branch 'PHP-7.4'

5 years agoGeneralize delref assertion
Nikita Popov [Tue, 13 Aug 2019 09:44:54 +0000 (11:44 +0200)]
Generalize delref assertion

The refcount should never become negative, not just during GC.

5 years agoAdd crypt() function's stub
inem0o [Mon, 12 Aug 2019 17:17:41 +0000 (19:17 +0200)]
Add crypt() function's stub

Closes GH-4515.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 13 Aug 2019 09:23:35 +0000 (11:23 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 13 Aug 2019 09:23:06 +0000 (11:23 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 13 Aug 2019 09:22:10 +0000 (11:22 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #77191
Nikita Popov [Tue, 13 Aug 2019 09:19:58 +0000 (11:19 +0200)]
Fixed bug #77191

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 13 Aug 2019 08:23:32 +0000 (10:23 +0200)]
Merge branch 'PHP-7.4'

5 years agoFixed bug #78406
Nikita Popov [Tue, 13 Aug 2019 08:22:32 +0000 (10:22 +0200)]
Fixed bug #78406

5 years agoadd syslog arginfo stubs
inem0o [Mon, 12 Aug 2019 16:26:45 +0000 (18:26 +0200)]
add syslog arginfo stubs

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 13 Aug 2019 07:55:06 +0000 (09:55 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 13 Aug 2019 07:54:44 +0000 (09:54 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 13 Aug 2019 07:54:26 +0000 (09:54 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoDon't destroy properties array with unset GC type
Nikita Popov [Tue, 13 Aug 2019 07:51:29 +0000 (09:51 +0200)]
Don't destroy properties array with unset GC type

As the properties array can also be a GC root, it might have
already been destroyed.

5 years agoUpdate the date class arginfo the new format
Craig Duncan [Mon, 12 Aug 2019 19:27:17 +0000 (20:27 +0100)]
Update the date class arginfo the new format

5 years agoAdd a prefix to differeniate between class methods and functions
Craig Duncan [Mon, 12 Aug 2019 19:23:12 +0000 (20:23 +0100)]
Add a prefix to differeniate between class methods and functions

Closes GH-4528

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 12 Aug 2019 16:00:21 +0000 (18:00 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix WS

5 years agoFix WS
Christoph M. Becker [Mon, 12 Aug 2019 15:59:30 +0000 (17:59 +0200)]
Fix WS

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 12 Aug 2019 15:18:14 +0000 (17:18 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 12 Aug 2019 15:17:42 +0000 (17:17 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 12 Aug 2019 15:17:30 +0000 (17:17 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoIntern alias old_name early
Nikita Popov [Mon, 12 Aug 2019 14:58:52 +0000 (16:58 +0200)]
Intern alias old_name early

This is likely going to end up interned lateron at some point
when the new_name is referenced somewhere. However, it may be
that there are some uses that do not get interned before that.
In this case we will intern a string that already have zval
users, without updating the refcounted flag on those zvals.

In particular this can happen with something like [Foo::class],
where Foo is an imported symbol. The string it resolves to won't
get interned right away, but may be interned later.

    use Foo as Bar;
    $x = [Bar::class];
    var_dump(Bar::X);
    debug_zval_dump($x); // Will show negative refcount
    class Foo {
        const X = 1;
    }

However, this doesn't really fix the root cause, there are probably
other situations where something similar can occur.

5 years agoAdd readline arginfo stubs
Stephen Reay [Mon, 12 Aug 2019 12:39:09 +0000 (14:39 +0200)]
Add readline arginfo stubs

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 12 Aug 2019 13:42:26 +0000 (15:42 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add missing argument checks

5 years agoAdd missing argument checks
Christoph M. Becker [Mon, 12 Aug 2019 12:50:44 +0000 (14:50 +0200)]
Add missing argument checks

These functions don't expect any arguments, so we should check that
none are given.

5 years agoAdd missing parameters to __set_state() methods
Kyle [Mon, 12 Aug 2019 12:24:54 +0000 (14:24 +0200)]
Add missing parameters to __set_state() methods

Closes GH-4526.

5 years agoDon't explicitly set return value on ZPP/ZFR failure
Christoph M. Becker [Mon, 12 Aug 2019 12:11:34 +0000 (14:11 +0200)]
Don't explicitly set return value on ZPP/ZFR failure

Failing `zend_parse_parameters()` and `zend_fetch_resource()` throw as
of PHP 8.0.0, so explicitly setting a return value is useless, and also
slightly confusing.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 12 Aug 2019 08:45:43 +0000 (10:45 +0200)]
Merge branch 'PHP-7.4'

5 years agoFixed bug #78396
Nikita Popov [Mon, 12 Aug 2019 08:45:13 +0000 (10:45 +0200)]
Fixed bug #78396

5 years agoAdded arginfo stubs for sysvmsg
Stephen Reay [Sun, 11 Aug 2019 17:42:26 +0000 (00:42 +0700)]
Added arginfo stubs for sysvmsg

Closes GH-4522.

5 years agoSupport regenerating all stubs
Nikita Popov [Mon, 12 Aug 2019 08:27:08 +0000 (10:27 +0200)]
Support regenerating all stubs

5 years agoFixed inconsistent naming for stub, return type for shmop_size
Stephen Reay [Mon, 12 Aug 2019 07:53:01 +0000 (14:53 +0700)]
Fixed inconsistent naming for stub, return type for shmop_size

5 years agoFix return type on shmop_close
Stephen Reay [Sun, 11 Aug 2019 18:18:39 +0000 (01:18 +0700)]
Fix return type on shmop_close

5 years agoAdded shmop arginfo stubs
Stephen Reay [Sun, 11 Aug 2019 17:24:29 +0000 (00:24 +0700)]
Added shmop arginfo stubs

5 years agoAdded arginfo stubs for sysvsem
Stephen Reay [Sun, 11 Aug 2019 17:52:30 +0000 (00:52 +0700)]
Added arginfo stubs for sysvsem

Closes GH-4523.

5 years agoAdded arginfo stubs for svsvshm
Stephen Reay [Sun, 11 Aug 2019 18:09:38 +0000 (01:09 +0700)]
Added arginfo stubs for svsvshm

Closes GH-4524.

5 years agoRemove some misleading RETURN_FALSE
Nikita Popov [Mon, 12 Aug 2019 07:58:29 +0000 (09:58 +0200)]
Remove some misleading RETURN_FALSE

These functions throw, so they can't return false.

This is just a subset...

5 years agoDon't explicitly set return value on ZPP failure
Christoph M. Becker [Mon, 12 Aug 2019 08:01:30 +0000 (10:01 +0200)]
Don't explicitly set return value on ZPP failure

Failing ZPP throws as of PHP 8.0.0, so explicitly setting a return
value is useless, and also slightly confusing.

5 years agoClaim maintainership of ext/com_dotnet
Christoph M. Becker [Sun, 11 Aug 2019 20:25:39 +0000 (22:25 +0200)]
Claim maintainership of ext/com_dotnet

5 years agoDon't throw manual exceptions on ZPP failure
Christoph M. Becker [Sun, 11 Aug 2019 20:20:26 +0000 (22:20 +0200)]
Don't throw manual exceptions on ZPP failure

As of PHP 8.0.0, ZPP throws on failure, so manually throwing exceptions
is superfluous and confusing.

5 years agoAdd com_dotnet function stubs
Christoph M. Becker [Sun, 11 Aug 2019 19:44:51 +0000 (21:44 +0200)]
Add com_dotnet function stubs

5 years agoArginfo stubs for tokenizer
Stephen Reay [Sun, 11 Aug 2019 16:32:56 +0000 (23:32 +0700)]
Arginfo stubs for tokenizer

5 years agoAdd support for callable to the stub generator [ci skip]
Stephen Reay [Sun, 11 Aug 2019 16:12:42 +0000 (23:12 +0700)]
Add support for callable to the stub generator [ci skip]

5 years agoAdd crc32 stub
inem0o [Sun, 11 Aug 2019 15:35:33 +0000 (17:35 +0200)]
Add crc32 stub

5 years agoUpdated to version 2019.2 (2019b)
Derick Rethans [Sun, 11 Aug 2019 15:06:00 +0000 (16:06 +0100)]
Updated to version 2019.2 (2019b)

5 years agoEmpty merge
Derick Rethans [Sun, 11 Aug 2019 15:06:00 +0000 (16:06 +0100)]
Empty merge

5 years agoUpdated to version 2019.2 (2019b)
Derick Rethans [Sun, 11 Aug 2019 15:05:59 +0000 (16:05 +0100)]
Updated to version 2019.2 (2019b)

5 years agoEmpty merge
Derick Rethans [Sun, 11 Aug 2019 15:05:59 +0000 (16:05 +0100)]
Empty merge

5 years agoUpdated to version 2019.2 (2019b)
Derick Rethans [Sun, 11 Aug 2019 15:05:58 +0000 (16:05 +0100)]
Updated to version 2019.2 (2019b)

5 years agoFix arginfo
Christoph M. Becker [Sun, 11 Aug 2019 14:40:40 +0000 (16:40 +0200)]
Fix arginfo

The second parameter of `imagexbm()` is nullable.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Sun, 11 Aug 2019 14:17:50 +0000 (16:17 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix parameter order

5 years agoFix parameter order
Christoph M. Becker [Sun, 11 Aug 2019 14:05:53 +0000 (16:05 +0200)]
Fix parameter order

`imagecopymerge()` and `imagecopymergegray()` expect the destination
image first, not the other way round.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Sun, 11 Aug 2019 13:22:08 +0000 (15:22 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Extend color component range checks

5 years agoExtend color component range checks
Christoph M. Becker [Sun, 11 Aug 2019 13:00:23 +0000 (15:00 +0200)]
Extend color component range checks

We also check for alpha components to be within range, and we add yet
missing range checks for other functions as well.

5 years agoUse TypeError for preg_replace type check
Nikita Popov [Sun, 11 Aug 2019 12:28:10 +0000 (14:28 +0200)]
Use TypeError for preg_replace type check

This is a type violation warning, and as such should use TypeError
in PHP 8.

5 years agoFix arginfo
Christoph M. Becker [Sun, 11 Aug 2019 11:43:45 +0000 (13:43 +0200)]
Fix arginfo

5 years agoAdd GD function stubs
Christoph M. Becker [Sun, 11 Aug 2019 08:14:51 +0000 (10:14 +0200)]
Add GD function stubs

5 years agoAdd stubs for PCRE extension
Stephen Reay [Sat, 10 Aug 2019 12:52:50 +0000 (19:52 +0700)]
Add stubs for PCRE extension

Closes GH-4501.

5 years agoAdd partial openssl stubs
Rimvydas Zilinskas [Sat, 10 Aug 2019 17:16:13 +0000 (18:16 +0100)]
Add partial openssl stubs

Closes GH-4509.

5 years agoAdd BCMath PHP stubs
Simon Podlipsky [Sat, 10 Aug 2019 16:02:13 +0000 (18:02 +0200)]
Add BCMath PHP stubs

Closes GH-4508.

5 years agoConvert gettext functions arginfo to php stubs
Craig Duncan [Sat, 10 Aug 2019 14:39:25 +0000 (15:39 +0100)]
Convert gettext functions arginfo to php stubs

Closes GH-4506

5 years agoAdd base64_encode / base64_decode stubs
inem0o [Sat, 10 Aug 2019 13:54:43 +0000 (15:54 +0200)]
Add base64_encode / base64_decode stubs

Closes GH-4504.

5 years agoConvert json functions arginfo to php stubs
Craig Duncan [Sat, 10 Aug 2019 11:39:53 +0000 (12:39 +0100)]
Convert json functions arginfo to php stubs

Closes GH-4500

5 years agoHandle preprocessor conditions inside classes
Nikita Popov [Sat, 10 Aug 2019 14:28:57 +0000 (16:28 +0200)]
Handle preprocessor conditions inside classes

Also remove the dead parseClass() function.

5 years agoFallback to curl in gen_stub if wget fails
Stephen Reay [Sat, 10 Aug 2019 13:10:16 +0000 (20:10 +0700)]
Fallback to curl in gen_stub if wget fails

Closes GH-4502.

5 years agoExpand preprocessor support in gen_stubs
Nikita Popov [Sat, 10 Aug 2019 13:07:54 +0000 (15:07 +0200)]
Expand preprocessor support in gen_stubs

Support #ifdef, #ifndef, #else and nested #if's.

5 years agoAdd some basic_functions stubs
Nikita Popov [Sat, 10 Aug 2019 10:34:29 +0000 (12:34 +0200)]
Add some basic_functions stubs

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 9 Aug 2019 14:47:50 +0000 (17:47 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed handling of references in nested data of objects with destructor

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Fri, 9 Aug 2019 14:47:35 +0000 (17:47 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fixed handling of references in nested data of objects with destructor

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Fri, 9 Aug 2019 14:47:06 +0000 (17:47 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed handling of references in nested data of objects with destructor

5 years agoFixed handling of references in nested data of objects with destructor
Dmitry Stogov [Fri, 9 Aug 2019 14:43:50 +0000 (17:43 +0300)]
Fixed handling of references in nested data of objects with destructor

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 9 Aug 2019 14:34:47 +0000 (16:34 +0200)]
Merge branch 'PHP-7.4'

5 years agoDon't short-circuit MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE
Nikita Popov [Fri, 9 Aug 2019 14:33:21 +0000 (16:33 +0200)]
Don't short-circuit MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE

Make sure we always go through mbfl_filt_conv_illegal_output(), so
that the number of illegal characters gets counted.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 9 Aug 2019 13:04:10 +0000 (15:04 +0200)]
Merge branch 'PHP-7.4'

5 years agoFixed bug #78391
Nikita Popov [Fri, 9 Aug 2019 13:02:06 +0000 (15:02 +0200)]
Fixed bug #78391

5 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Fri, 9 Aug 2019 13:03:07 +0000 (16:03 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Fixed bug #78391
  Make uninitialized DateTime an Error
  Generate arginfo from PHP stub files

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 9 Aug 2019 13:02:57 +0000 (15:02 +0200)]
Merge branch 'PHP-7.4'

5 years agoFixed bug #78391
Nikita Popov [Fri, 9 Aug 2019 13:02:06 +0000 (15:02 +0200)]
Fixed bug #78391

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 9 Aug 2019 12:58:44 +0000 (15:58 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Fri, 9 Aug 2019 12:58:33 +0000 (15:58 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Fri, 9 Aug 2019 12:58:16 +0000 (15:58 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)

5 years agoMake uninitialized DateTime an Error
Nikita Popov [Fri, 9 Aug 2019 12:33:59 +0000 (14:33 +0200)]
Make uninitialized DateTime an Error

This avoids many spurious false return values.

5 years agoGenerate arginfo from PHP stub files
Nikita Popov [Tue, 18 Jun 2019 09:33:07 +0000 (11:33 +0200)]
Generate arginfo from PHP stub files

Signature stubs for internal functions are specified in xyz.stub.php,
from which we generate actual arginfo structures in xyz_arginfo.h.
This file then needs to be included in the implementation appropriately.

Arginfo from stubs can be regenerated using scripts/dev/gen_stub.php.
However, this should also automatically happen when the stub file is
modified.

5 years agoFixed second part of the bug #78379 (Cast to object confuses GC, causes crash)
Dmitry Stogov [Fri, 9 Aug 2019 12:42:39 +0000 (15:42 +0300)]
Fixed second part of the bug #78379 (Cast to object confuses GC, causes crash)

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 9 Aug 2019 10:40:56 +0000 (13:40 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Added asserts to catch GC errors when refcount goes below zero.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Dmitry Stogov [Fri, 9 Aug 2019 10:40:39 +0000 (13:40 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Added asserts to catch GC errors when refcount goes below zero.

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Dmitry Stogov [Fri, 9 Aug 2019 10:39:59 +0000 (13:39 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Added asserts to catch GC errors when refcount goes below zero.

5 years agoAdded asserts to catch GC errors when refcount goes below zero.
Dmitry Stogov [Fri, 9 Aug 2019 10:37:23 +0000 (13:37 +0300)]
Added asserts to catch GC errors when refcount goes below zero.

5 years agoMerge branch 'PHP-7.4'
Matteo Beccati [Fri, 9 Aug 2019 08:33:23 +0000 (10:33 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Skip test when SIGKILL is not defined

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Matteo Beccati [Fri, 9 Aug 2019 08:33:15 +0000 (10:33 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Skip test when SIGKILL is not defined

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Matteo Beccati [Fri, 9 Aug 2019 08:32:56 +0000 (10:32 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Skip test when SIGKILL is not defined

5 years agoSkip test when SIGKILL is not defined
Matteo Beccati [Fri, 9 Aug 2019 08:32:15 +0000 (10:32 +0200)]
Skip test when SIGKILL is not defined

5 years agoMerge branch 'PHP-7.4'
Matteo Beccati [Fri, 9 Aug 2019 07:58:36 +0000 (09:58 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix test when default TZ is not UTC

5 years agoFix test when default TZ is not UTC
Matteo Beccati [Fri, 9 Aug 2019 07:58:10 +0000 (09:58 +0200)]
Fix test when default TZ is not UTC

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 8 Aug 2019 08:55:07 +0000 (10:55 +0200)]
Merge branch 'PHP-7.4'