]>
granicus.if.org Git - php/log
Derick Rethans [Tue, 20 Aug 2019 14:10:36 +0000 (14:10 +0000)]
Update NEWS for 7.4.0RC1
Derick Rethans [Tue, 20 Aug 2019 14:09:17 +0000 (14:09 +0000)]
Update NEWS for PHP 7.4.0beta4
Christoph M. Becker [Tue, 20 Aug 2019 14:04:14 +0000 (16:04 +0200)]
Fix #78386: fstat mode has unexpected value on PHP 7.4
We must not assume that any file which is not a directory is a regular
file. Therefore we employ `GetFileType()` in this case to properly
distinguish between character special, FIFO special and regular files.
Christoph M. Becker [Tue, 20 Aug 2019 11:58:54 +0000 (13:58 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Don't use C++ style comments
Christoph M. Becker [Tue, 20 Aug 2019 11:58:22 +0000 (13:58 +0200)]
Don't use C++ style comments
Cf. <https://github.com/php/php-src/blob/
f45b61b8988b5b2d80dd4a1df7edd04282cf319a /CODING_STANDARDS.md#syntax-and-indentation>
cc @mcmic
Christoph M. Becker [Tue, 20 Aug 2019 11:34:42 +0000 (13:34 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
Christoph M. Becker [Tue, 20 Aug 2019 11:32:53 +0000 (13:32 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
Qianqian Bu [Mon, 12 Aug 2019 02:00:31 +0000 (04:00 +0200)]
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
Christoph M. Becker [Mon, 19 Aug 2019 17:58:20 +0000 (19:58 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #78220: Can't access OneDrive folder
Christoph M. Becker [Mon, 19 Aug 2019 17:56:12 +0000 (19:56 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #78220: Can't access OneDrive folder
Christoph M. Becker [Mon, 19 Aug 2019 17:44:37 +0000 (19:44 +0200)]
Fix #78220: Can't access OneDrive folder
As of Windows 1903, when the OneDrive on-demand feature is enabled, the
OneDrive folder is reported as reparse point by `FindFirstFile()`, but
trying to get information about the reparse point using
`DeviceIoControl()` fails with `ERROR_NOT_A_REPARSE_POINT`. We work
around this problem by falling back to `GetFileInformationByHandle()`
if that happens, but only if the reparse point is reported as cloud
reparse point, and only if PHP is running on Windows 1903 or later.
The patch has been developed in collaboration with ab@php.net.
We should keep an eye on the somewhat quirky OneDrive behavior, since
it might change again in a future Windows release.
Nikita Popov [Sat, 17 Aug 2019 08:59:52 +0000 (10:59 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
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.
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
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
Sara Golemon [Fri, 16 Aug 2019 16:40:20 +0000 (12:40 -0400)]
Suppress deprecation warning on IDNA2003 ICU methods
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"
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.
Jan Altensen [Thu, 15 Aug 2019 14:11:13 +0000 (16:11 +0200)]
appveyor: exclude some documentation paths
Change-Id: Ifff234133f4437bfe5c31c1f1e00092cd60e1d53
Christoph M. Becker [Thu, 15 Aug 2019 13:30:03 +0000 (15:30 +0200)]
Empty merge
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.
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).
Christoph M. Becker [Wed, 14 Aug 2019 17:25:48 +0000 (19:25 +0200)]
Empty merge
Christoph M. Becker [Wed, 14 Aug 2019 17:24:16 +0000 (19:24 +0200)]
Update credits_ext.h
Nikita Popov [Wed, 14 Aug 2019 15:53:24 +0000 (17:53 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 14 Aug 2019 14:58:54 +0000 (16:58 +0200)]
Fix reference printing in GC tracing
Nikita Popov [Wed, 14 Aug 2019 15:51:26 +0000 (17:51 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
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.
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
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
Sara Golemon [Tue, 13 Aug 2019 23:32:12 +0000 (19:32 -0400)]
Bump for 7.2.23
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
Christoph M. Becker [Tue, 13 Aug 2019 21:57:48 +0000 (23:57 +0200)]
Next will be 7.3.10
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
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.
Nikita Popov [Tue, 13 Aug 2019 18:23:56 +0000 (20:23 +0200)]
Fixed bug #78410
Nikita Popov [Tue, 13 Aug 2019 14:07:51 +0000 (16:07 +0200)]
Add myself to extension maintainer list
Year ranges are wild guesses.
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.
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.
Nikita Popov [Tue, 13 Aug 2019 12:35:08 +0000 (14:35 +0200)]
Mark PCRE locale key as local persistent
Christoph M. Becker [Tue, 13 Aug 2019 11:25:54 +0000 (13:25 +0200)]
Remove dead code
Nikita Popov [Tue, 13 Aug 2019 10:34:48 +0000 (12:34 +0200)]
Adjust GC count in SPL test
Nikita Popov [Tue, 13 Aug 2019 10:17:08 +0000 (12:17 +0200)]
Remove removed nested data from GC count
Nikita Popov [Tue, 13 Aug 2019 10:08:59 +0000 (12:08 +0200)]
Don't include non-refcounted structures in GC count
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.
Nikita Popov [Tue, 13 Aug 2019 09:23:06 +0000 (11:23 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 13 Aug 2019 09:22:10 +0000 (11:22 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 13 Aug 2019 09:19:58 +0000 (11:19 +0200)]
Fixed bug #77191
Nikita Popov [Tue, 13 Aug 2019 08:22:32 +0000 (10:22 +0200)]
Fixed bug #78406
Nikita Popov [Tue, 13 Aug 2019 07:54:44 +0000 (09:54 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 13 Aug 2019 07:54:26 +0000 (09:54 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
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.
Christoph M. Becker [Mon, 12 Aug 2019 15:59:30 +0000 (17:59 +0200)]
Fix WS
Nikita Popov [Mon, 12 Aug 2019 15:17:42 +0000 (17:17 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 12 Aug 2019 15:17:30 +0000 (17:17 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
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.
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.
Nikita Popov [Mon, 12 Aug 2019 08:45:13 +0000 (10:45 +0200)]
Fixed bug #78396
Derick Rethans [Sun, 11 Aug 2019 15:05:59 +0000 (16:05 +0100)]
Updated to version 2019.2 (2019b)
Derick Rethans [Sun, 11 Aug 2019 15:05:59 +0000 (16:05 +0100)]
Empty merge
Derick Rethans [Sun, 11 Aug 2019 15:05:58 +0000 (16:05 +0100)]
Updated to version 2019.2 (2019b)
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.
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.
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
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
Dmitry Stogov [Fri, 9 Aug 2019 14:43:50 +0000 (17:43 +0300)]
Fixed handling of references in nested data of objects with destructor
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.
Nikita Popov [Fri, 9 Aug 2019 13:02:06 +0000 (15:02 +0200)]
Fixed bug #78391
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)
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)
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)
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.
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.
Dmitry Stogov [Fri, 9 Aug 2019 10:37:23 +0000 (13:37 +0300)]
Added asserts to catch GC errors when refcount goes below zero.
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
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
Matteo Beccati [Fri, 9 Aug 2019 08:32:15 +0000 (10:32 +0200)]
Skip test when SIGKILL is not defined
Matteo Beccati [Fri, 9 Aug 2019 07:58:10 +0000 (09:58 +0200)]
Fix test when default TZ is not UTC
Nikita Popov [Thu, 8 Aug 2019 08:55:02 +0000 (10:55 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 8 Aug 2019 08:52:29 +0000 (10:52 +0200)]
Fix GC tracing
Due to the GC changes in 7.3 we stopped tracing most of the
interesting coloring changes...
Nikita Popov [Thu, 8 Aug 2019 08:12:16 +0000 (10:12 +0200)]
Add UPGRADING note about stream_set_option() and includes
[ci skip]
Nikita Popov [Thu, 8 Aug 2019 07:55:29 +0000 (09:55 +0200)]
Fixed bug #78383
Dmitry Stogov [Thu, 8 Aug 2019 07:07:39 +0000 (10:07 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fixed bug #78379 (Cast to object confuses GC, causes crash)
Dmitry Stogov [Thu, 8 Aug 2019 07:05:59 +0000 (10:05 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fixed bug #78379 (Cast to object confuses GC, causes crash)
Dmitry Stogov [Thu, 8 Aug 2019 07:00:39 +0000 (10:00 +0300)]
Fixed bug #78379 (Cast to object confuses GC, causes crash)
Christoph M. Becker [Wed, 7 Aug 2019 11:24:05 +0000 (13:24 +0200)]
Fix detection of pg_config.h
pg_config.h is supposed to be placed right besides libpq-fe.h, so we
should check the same paths.
Christoph M. Becker [Wed, 7 Aug 2019 11:02:23 +0000 (13:02 +0200)]
Skip test if ext/json is not available
Otherwise the test fails.
Christoph M. Becker [Tue, 6 Aug 2019 09:53:41 +0000 (11:53 +0200)]
Make extension compatibility check more liberal
Checking for the exact linker version appears to be too restrictive; it
should be fine if the tens match.
We also refactor to avoid repeating ourselves.
Christoph M. Becker [Tue, 6 Aug 2019 15:28:36 +0000 (17:28 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #78282: atime and mtime mismatch
Christoph M. Becker [Tue, 6 Aug 2019 15:27:32 +0000 (17:27 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #78282: atime and mtime mismatch
Christoph M. Becker [Sat, 13 Jul 2019 07:40:50 +0000 (09:40 +0200)]
Fix #78282: atime and mtime mismatch
The fix for bug #78241 assumed that `time_t` would always be 64bit, but
actually is 32bit for x86. We therefore enforce 64bit arithmetic to
avoid wrapping.
(cherry picked from commit
bf242d58e77d50d4d8fdaaaca7ede686ec4467c0 )
Dmitry Stogov [Tue, 6 Aug 2019 13:28:42 +0000 (16:28 +0300)]
Inline zend_zval_ptr() in executor explicitely (only on hot paths)
Dmitry Stogov [Tue, 6 Aug 2019 10:58:17 +0000 (13:58 +0300)]
typo
Dmitry Stogov [Tue, 6 Aug 2019 09:44:55 +0000 (12:44 +0300)]
Preloading is not comatible with dl() function
Dmitry Stogov [Tue, 6 Aug 2019 08:35:53 +0000 (11:35 +0300)]
Don't set GC_HAS_DESTRUCTORS flag if destructors were already called
Derick Rethans [Tue, 6 Aug 2019 06:55:20 +0000 (06:55 +0000)]
Update NEWS for 7.4.0beta3
Derick Rethans [Tue, 6 Aug 2019 06:54:01 +0000 (06:54 +0000)]
Update NEWS for PHP 7.4.0beta2
Dmitry Stogov [Mon, 5 Aug 2019 19:55:06 +0000 (22:55 +0300)]
Fixed bug #78376 (Incorrect preloading of constant static properties)
Christoph M. Becker [Mon, 5 Aug 2019 09:35:17 +0000 (11:35 +0200)]
Fix handling of succeeding XFAIL tests
Due to a typo in commit
e1151c9 [1], succeeding XFAIL test without an
EXPECTF or EXPECTREGEX section have been reported reported as passed
instead of warned.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=
e1151c9549cf5a7235c1609019f79bbb1bbcdbea >
Christoph M. Becker [Fri, 26 Jul 2019 12:37:34 +0000 (14:37 +0200)]
Support calling convention specific function name mangling
On Windows certain calling conventions cause C function names to be
mangled, so to import them we have to use the properly mangled names.