]> granicus.if.org Git - php/log
php
5 years agoCleanup unnecessary if guard clause to free buffer.
Benjamin Eberlei [Sun, 18 Aug 2019 09:01:31 +0000 (11:01 +0200)]
Cleanup unnecessary if guard clause to free buffer.

5 years agoDon't explicitly set return value on ZPP failure in ext/calendar
Christoph M. Becker [Sat, 17 Aug 2019 12:21:26 +0000 (14:21 +0200)]
Don't explicitly set return value on ZPP failure in ext/calendar

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

5 years agoFix typo: environement [ci skip]
Yusuke Kawasaki [Sat, 17 Aug 2019 10:22:52 +0000 (19:22 +0900)]
Fix typo: environement [ci skip]

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Sat, 17 Aug 2019 09:00:15 +0000 (11:00 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Sat, 17 Aug 2019 08:59:52 +0000 (10:59 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFixed bug #77922
Nikita Popov [Sat, 17 Aug 2019 08:57:26 +0000 (10:57 +0200)]
Fixed bug #77922

In PHP 7.3 shadow properties are no longer duplicated. Make sure we
only release them if the property was defined on the parent class,
which means that it changed from private->shadow, which is where
duplication does happen.

5 years agoRemove useless error check for bin2hex()
George Peter Banyard [Fri, 16 Aug 2019 20:44:21 +0000 (22:44 +0200)]
Remove useless error check for bin2hex()

And change prototype accordingly...

Closes GH-4550.

5 years agoMerge branch 'PHP-7.4'
Sara Golemon [Fri, 16 Aug 2019 16:45:44 +0000 (12:45 -0400)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Suppress deprecation warning on IDNA2003 ICU methods

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Sara Golemon [Fri, 16 Aug 2019 16:41:32 +0000 (12:41 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Suppress deprecation warning on IDNA2003 ICU methods

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Sara Golemon [Fri, 16 Aug 2019 16:41:02 +0000 (12:41 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Suppress deprecation warning on IDNA2003 ICU methods

5 years agoSuppress deprecation warning on IDNA2003 ICU methods
Sara Golemon [Fri, 16 Aug 2019 16:40:20 +0000 (12:40 -0400)]
Suppress deprecation warning on IDNA2003 ICU methods

5 years agoDon't explicitly set return value on ZPP failure
Christoph M. Becker [Fri, 16 Aug 2019 15:46:46 +0000 (17:46 +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 agoDon't explicitly set return value on ZPP failure
Christoph M. Becker [Thu, 15 Aug 2019 15:19:52 +0000 (17:19 +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 agoMerge branch 'PHP-7.4'
Sara Golemon [Fri, 16 Aug 2019 15:42:51 +0000 (11:42 -0400)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Revert "Move to non deprecated API on suitable ICU versions"

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Sara Golemon [Fri, 16 Aug 2019 15:40:01 +0000 (11:40 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Revert "Move to non deprecated API on suitable ICU versions"

5 years agoRevert "Move to non deprecated API on suitable ICU versions"
Sara Golemon [Fri, 16 Aug 2019 15:25:33 +0000 (11:25 -0400)]
Revert "Move to non deprecated API on suitable ICU versions"

This reverts commit 13a2f2d041999dca0066542f2a552798fab9a13d.

The APIs used by this commit aren't entirely equivalent to the original ones.

5 years agoCreating stub for ext bz2
Kauan Sousa [Thu, 15 Aug 2019 21:11:46 +0000 (23:11 +0200)]
Creating stub for ext bz2

5 years agoAdd lcg arginfo stubs
inem0o [Fri, 16 Aug 2019 10:02:03 +0000 (12:02 +0200)]
Add lcg arginfo stubs

5 years agoAdd ftok arginfo stubs
inem0o [Fri, 16 Aug 2019 09:47:52 +0000 (11:47 +0200)]
Add ftok arginfo stubs

5 years agoSupport typed variadic args in gen_stubs
Nikita Popov [Thu, 15 Aug 2019 20:07:49 +0000 (22:07 +0200)]
Support typed variadic args in gen_stubs

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 15 Aug 2019 16:20:03 +0000 (18:20 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  appveyor: exclude some documentation paths

5 years agoappveyor: exclude some documentation paths
Jan Altensen [Thu, 15 Aug 2019 14:11:13 +0000 (16:11 +0200)]
appveyor: exclude some documentation paths

Change-Id: Ifff234133f4437bfe5c31c1f1e00092cd60e1d53

5 years agoEmpty merge
Christoph M. Becker [Thu, 15 Aug 2019 13:30:28 +0000 (15:30 +0200)]
Empty merge

5 years agoEmpty merge
Christoph M. Becker [Thu, 15 Aug 2019 13:30:03 +0000 (15:30 +0200)]
Empty merge

5 years agoUpdate NEWS
Christoph M. Becker [Thu, 15 Aug 2019 13:28:52 +0000 (15:28 +0200)]
Update NEWS

This fix has been cherry-picked into PHP-7.3.9.

5 years agocreating stubs for echant ext
Victor Gazotti [Thu, 15 Aug 2019 12:27:46 +0000 (14:27 +0200)]
creating stubs for echant ext

5 years agoUnify ZPP handling in ext/sqlite3
Christoph M. Becker [Thu, 15 Aug 2019 11:29:39 +0000 (13:29 +0200)]
Unify ZPP handling in ext/sqlite3

Since `zend_parse_parameters()` now throws on failure, it doesn't make
sense anymore to use `zend_parse_parameters_throw()` instead, and also
it's useless to set an explicit return value.

5 years agoDon't repeat yourself
Christoph M. Becker [Thu, 15 Aug 2019 11:09:52 +0000 (13:09 +0200)]
Don't repeat yourself

SQLite3::bindParam() and SQLite3::bindValue() have identical
implementation (the only thing that differs is the second parameter's
passing mode), so we unify the implementation.

5 years agoConvert sqlite3 functions arginfo to php stubs
Craig Duncan [Sat, 10 Aug 2019 15:53:17 +0000 (17:53 +0200)]
Convert sqlite3 functions arginfo to php stubs

5 years agoNormalize SimpleXML::asXML() argument handling
Nikita Popov [Thu, 15 Aug 2019 09:18:56 +0000 (11:18 +0200)]
Normalize SimpleXML::asXML() argument handling

Remove odd manual checks in favor of a standard zpp call.

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

5 years agoFixed bug #78409
Nikita Popov [Thu, 15 Aug 2019 08:38:43 +0000 (10:38 +0200)]
Fixed bug #78409

This removes an incorrect optimization (I think this code used to be
necessary to properly handle references in the Serializable based
implementation, but now this code just avoids an array duplication
in a way that is not sound).

5 years agoFix typo
zhdaniel [Thu, 15 Aug 2019 02:29:18 +0000 (10:29 +0800)]
Fix typo

5 years agoEmpty merge
Christoph M. Becker [Wed, 14 Aug 2019 17:26:26 +0000 (19:26 +0200)]
Empty merge

5 years agoEmpty merge
Christoph M. Becker [Wed, 14 Aug 2019 17:25:48 +0000 (19:25 +0200)]
Empty merge

5 years agoUpdate credits_ext.h
Christoph M. Becker [Wed, 14 Aug 2019 17:24:16 +0000 (19:24 +0200)]
Update credits_ext.h

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

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 14 Aug 2019 15:53:24 +0000 (17:53 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFix reference printing in GC tracing
Nikita Popov [Wed, 14 Aug 2019 14:58:54 +0000 (16:58 +0200)]
Fix reference printing in GC tracing

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 14 Aug 2019 15:51:26 +0000 (17:51 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #78412
Nikita Popov [Wed, 14 Aug 2019 15:48:57 +0000 (17:48 +0200)]
Fixed bug #78412

$this should only be included in the generator GC buffer, if it
will be released on destruction.

5 years agoAdd hrtime arginfo stubs
Theodore Brown [Wed, 14 Aug 2019 13:32:51 +0000 (08:32 -0500)]
Add hrtime arginfo stubs

5 years agoAdd some stubs at ctype ext
Victor Gazotti [Wed, 14 Aug 2019 13:43:04 +0000 (15:43 +0200)]
Add some stubs at ctype ext

5 years agoadd some stubs for array func in basic_functions
jason-liew [Sun, 11 Aug 2019 16:32:12 +0000 (00:32 +0800)]
add some stubs for array func in basic_functions

5 years agoAdded arginfo stub for posix extension
Stephen Reay [Mon, 12 Aug 2019 10:24:35 +0000 (12:24 +0200)]
Added arginfo stub for posix extension

5 years agoMerge branch 'PHP-7.4'
Sara Golemon [Tue, 13 Aug 2019 23:34:42 +0000 (19:34 -0400)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Bump for 7.2.23

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Sara Golemon [Tue, 13 Aug 2019 23:34:26 +0000 (19:34 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Bump for 7.2.23

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Sara Golemon [Tue, 13 Aug 2019 23:34:12 +0000 (19:34 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Bump for 7.2.23

5 years agoBump for 7.2.23
Sara Golemon [Tue, 13 Aug 2019 23:32:12 +0000 (19:32 -0400)]
Bump for 7.2.23

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Tue, 13 Aug 2019 22:49:06 +0000 (00:49 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Next will be 7.3.10

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Tue, 13 Aug 2019 22:48:49 +0000 (00:48 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Next will be 7.3.10

5 years agoNext will be 7.3.10
Christoph M. Becker [Tue, 13 Aug 2019 21:57:48 +0000 (23:57 +0200)]
Next will be 7.3.10

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Tue, 13 Aug 2019 21:26:58 +0000 (23:26 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Bump version numbers

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Tue, 13 Aug 2019 21:26:29 +0000 (23:26 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Bump version numbers

5 years agoBump version numbers
Christoph M. Becker [Tue, 13 Aug 2019 21:23:43 +0000 (23:23 +0200)]
Bump version numbers

This should have been done four weeks ago already.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Tue, 13 Aug 2019 18:24:39 +0000 (20:24 +0200)]
Merge branch 'PHP-7.4'

5 years agoFixed bug #78410
Nikita Popov [Tue, 13 Aug 2019 18:23:56 +0000 (20:23 +0200)]
Fixed bug #78410

5 years agoAdd myself to extension maintainer list
Nikita Popov [Tue, 13 Aug 2019 14:07:51 +0000 (16:07 +0200)]
Add myself to extension maintainer list

Year ranges are wild guesses.

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

5 years agoFixed bug #72530
Nikita Popov [Thu, 1 Aug 2019 10:55:39 +0000 (12:55 +0200)]
Fixed bug #72530

For objects with destructors, we will now only call the destructor
in the initial GC run, and remove any nested data. The object is
marked purple so it will be considered a root for the next GC run,
at which point it will be fully destroyed, if possible.

GC counts change on a number of tests, as the objects now get
destroyed later.

5 years agoAdd inet_ntop and inet_pton stubs
Islam Israfilov [Tue, 13 Aug 2019 11:11:49 +0000 (13:11 +0200)]
Add inet_ntop and inet_pton stubs

5 years agoDon't return persistent string from get_cfg_var()
Nikita Popov [Tue, 13 Aug 2019 12:40:07 +0000 (14:40 +0200)]
Don't return persistent string from get_cfg_var()

This is not thread-safe.

5 years agoMark PCRE locale key as local persistent
Nikita Popov [Tue, 13 Aug 2019 12:35:08 +0000 (14:35 +0200)]
Mark PCRE locale key as local persistent

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Tue, 13 Aug 2019 11:29:35 +0000 (13:29 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove dead code

5 years agoRemove dead code
Christoph M. Becker [Tue, 13 Aug 2019 11:25:54 +0000 (13:25 +0200)]
Remove dead code

5 years agoAdded zip arginfo stubs
Stephen Reay [Mon, 12 Aug 2019 12:11:56 +0000 (14:11 +0200)]
Added zip arginfo stubs

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