]>
granicus.if.org Git - php/log
George Peter Banyard [Wed, 21 Aug 2019 00:57:33 +0000 (02:57 +0200)]
Promote warnings to errors in array_walk(_recursive)()
George Peter Banyard [Wed, 21 Aug 2019 00:43:24 +0000 (02:43 +0200)]
Promote warnings to errors in compact()
George Peter Banyard [Wed, 21 Aug 2019 00:36:20 +0000 (02:36 +0200)]
Promote warnings to errors in array_merge(_recursive)() and array_replace()
Nikita Popov [Thu, 29 Aug 2019 12:47:30 +0000 (14:47 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 29 Aug 2019 12:33:31 +0000 (14:33 +0200)]
Addref static vars when not copying private method
While we don't need to give this method separate static vars, we
do still need to perform an addref, as there will be a corresponding
delref in the dtor.
Nikita Popov [Thu, 29 Aug 2019 10:58:22 +0000 (12:58 +0200)]
Use explicit unaligned type in md5 implementation
Nikita Popov [Thu, 29 Aug 2019 10:34:31 +0000 (12:34 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 29 Aug 2019 10:34:07 +0000 (12:34 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 29 Aug 2019 10:32:23 +0000 (12:32 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 29 Aug 2019 10:30:39 +0000 (12:30 +0200)]
Fix use-after-free of immediately invoked closure with extra args
George Peter Banyard [Wed, 21 Aug 2019 00:52:20 +0000 (02:52 +0200)]
Promote warnings to errors in extract()
Christoph M. Becker [Wed, 28 Aug 2019 16:44:57 +0000 (18:44 +0200)]
Don't explicitly set return value on ZFR failure in ext/odbc
Failing `zend_fetch_resource(2)` throws as of PHP 8.0.0, so explicitly
setting a return value is useless, and also slightly confusing.
Nikita Popov [Wed, 28 Aug 2019 16:18:25 +0000 (18:18 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Wed, 28 Aug 2019 15:39:39 +0000 (17:39 +0200)]
Set opcache.protect_memory=1 on Azure
Christoph M. Becker [Wed, 28 Aug 2019 16:10:33 +0000 (18:10 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #78473: odbc_close() closes arbitrary resources
Christoph M. Becker [Wed, 28 Aug 2019 15:58:13 +0000 (17:58 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #78473: odbc_close() closes arbitrary resources
Christoph M. Becker [Wed, 28 Aug 2019 15:56:23 +0000 (17:56 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #78473: odbc_close() closes arbitrary resources
Christoph M. Becker [Wed, 28 Aug 2019 15:51:57 +0000 (17:51 +0200)]
Fix #78473: odbc_close() closes arbitrary resources
We have to bail out, if an invalid resource is given. For consistency
with the other `zend_fetch_resource(2)` calls, we return `FALSE`.
Nikita Popov [Wed, 28 Aug 2019 15:36:31 +0000 (17:36 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Wed, 28 Aug 2019 15:31:52 +0000 (17:31 +0200)]
Add missed mutability check
Christoph M. Becker [Wed, 28 Aug 2019 14:07:47 +0000 (16:07 +0200)]
Add ext/odbc stubs
Nikita Popov [Wed, 28 Aug 2019 15:04:55 +0000 (17:04 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Wed, 28 Aug 2019 13:35:53 +0000 (15:35 +0200)]
Remove delref in free_object_storage
This gives us better object leak diagnostics.
Nikita Popov [Wed, 28 Aug 2019 13:33:51 +0000 (15:33 +0200)]
Destroy error handlers before final GC run
Christoph M. Becker [Wed, 28 Aug 2019 14:43:43 +0000 (16:43 +0200)]
Fix test regarding ZPP TypeErrors
We simply remove the second call to `odbc_data_source` since it is
testing standard ZPP behavior.
Nikita Popov [Wed, 28 Aug 2019 10:32:22 +0000 (12:32 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Wed, 28 Aug 2019 10:15:28 +0000 (12:15 +0200)]
Fixed bug #78335
Destroy static properties and variables prior to the final GC run,
as they may hold GC roots.
Nikita Popov [Wed, 28 Aug 2019 07:32:18 +0000 (09:32 +0200)]
Compute needle end only after checking it's non-empty
Stanislav Malyshev [Wed, 28 Aug 2019 07:12:08 +0000 (00:12 -0700)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Upgrade oniguruma lib to 6.9.3
Stanislav Malyshev [Wed, 28 Aug 2019 07:11:50 +0000 (00:11 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Upgrade oniguruma lib to 6.9.3
Stanislav Malyshev [Wed, 28 Aug 2019 06:28:33 +0000 (23:28 -0700)]
Upgrade oniguruma lib to 6.9.3
George Peter Banyard [Tue, 20 Aug 2019 23:11:44 +0000 (01:11 +0200)]
Promote warnings to errors in max()
George Peter Banyard [Tue, 20 Aug 2019 23:08:59 +0000 (01:08 +0200)]
Promote warnings to errors in min()
Nikita Popov [Tue, 27 Aug 2019 20:01:59 +0000 (22:01 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Tue, 27 Aug 2019 19:59:56 +0000 (21:59 +0200)]
Don't specify precedence for T_INC/T_DEC
As these do not operate on expressions, precedence is meaningless
for them.
Nikita Popov [Tue, 27 Aug 2019 15:25:19 +0000 (17:25 +0200)]
Some pcntl cleanup
Fix some indentation issues and make sure zpp is used consistently.
Nikita Popov [Tue, 27 Aug 2019 15:03:29 +0000 (17:03 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Tue, 27 Aug 2019 09:36:58 +0000 (11:36 +0200)]
Add --with-pear to Travis build
Christoph M. Becker [Tue, 27 Aug 2019 13:54:18 +0000 (15:54 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
add ffi to php.ini extension [ci skip]
Pavel Dyakonov [Tue, 27 Aug 2019 13:06:56 +0000 (16:06 +0300)]
add ffi to php.ini extension [ci skip]
Anatol Belski [Tue, 27 Aug 2019 12:35:06 +0000 (14:35 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix signature and calls
Anatol Belski [Tue, 27 Aug 2019 12:34:14 +0000 (14:34 +0200)]
Fix signature and calls
Christoph M. Becker [Tue, 27 Aug 2019 11:36:41 +0000 (13:36 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Update SDK version for AppVeyor
Christoph M. Becker [Tue, 27 Aug 2019 11:36:09 +0000 (13:36 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Update SDK version for AppVeyor
Christoph M. Becker [Tue, 27 Aug 2019 11:35:05 +0000 (13:35 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Update SDK version for AppVeyor
Christoph M. Becker [Tue, 27 Aug 2019 11:34:35 +0000 (13:34 +0200)]
Update SDK version for AppVeyor
Nikita Popov [Tue, 27 Aug 2019 07:37:48 +0000 (09:37 +0200)]
Throw TypeError from VM implementation of get_class()
The normal function already throws TypeError through the usual zpp
mechanism, but the VM implementation handles this manually and has
not been updated.
Nikita Popov [Tue, 27 Aug 2019 07:12:22 +0000 (09:12 +0200)]
Add skipifs for zmm
Nikita Popov [Tue, 27 Aug 2019 07:09:03 +0000 (09:09 +0200)]
Fix chunk_split test on i386 release
Jakub Zelenka [Mon, 26 Aug 2019 17:12:35 +0000 (18:12 +0100)]
Merge branch 'PHP-7.4'
Jakub Zelenka [Mon, 26 Aug 2019 17:11:04 +0000 (18:11 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Tsuyoshi Sadakata [Thu, 25 Jul 2019 14:22:45 +0000 (23:22 +0900)]
Fix bug #78334 (fpm log prefix message includes wrong stdout/stderr notation)
Craig Duncan [Mon, 26 Aug 2019 15:21:38 +0000 (17:21 +0200)]
Convert fileinfo functions arginfo to php stubs
We also allow the context for finfo to be null.
Nikita Popov [Mon, 26 Aug 2019 15:54:00 +0000 (17:54 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 26 Aug 2019 15:52:56 +0000 (17:52 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 26 Aug 2019 15:50:46 +0000 (17:50 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 26 Aug 2019 15:48:05 +0000 (17:48 +0200)]
Remove properties HT from nested GC data
The properties HT may be a GC root itself, so we need to remove it.
I'm not sure this issue actually applies to PHP 7.2, but committing
it there to be safe. As seen from the test case, the handling here
is rather buggy on 7.2.
Craig Duncan [Thu, 15 Aug 2019 19:47:15 +0000 (21:47 +0200)]
Convert exif functions arginfo to php stubs
We also allow sections needed to be null.
George Peter Banyard [Fri, 23 Aug 2019 23:52:17 +0000 (01:52 +0200)]
Remove memory exhaustion checks in php_chunk_split()
George Peter Banyard [Sun, 18 Aug 2019 13:33:10 +0000 (15:33 +0200)]
Improve strpos and strstr function family implementation
Nikita Popov [Mon, 26 Aug 2019 14:12:47 +0000 (16:12 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 26 Aug 2019 14:10:29 +0000 (16:10 +0200)]
Don't use needs_live_range hook for "special" live ranges
In particular we were disgarding SILENCE live ranges in opcache,
because we decided that a MAY_BE_LONG type does not need a live
range.
Christoph M. Becker [Mon, 26 Aug 2019 14:03:24 +0000 (16:03 +0200)]
Add ext\opcache stubs
Burak Çakırel [Sun, 25 Aug 2019 20:07:16 +0000 (23:07 +0300)]
Add assert arginfo stubs
Closes GH-4619.
Nikita Popov [Mon, 26 Aug 2019 13:39:39 +0000 (15:39 +0200)]
Make arginfo printing of prefer-ref arguments nicer
Christoph M. Becker [Mon, 26 Aug 2019 13:22:33 +0000 (15:22 +0200)]
Add ext/ffi stubs
Nikita Popov [Mon, 26 Aug 2019 12:34:28 +0000 (14:34 +0200)]
Make sure that params with null default are marked nullable
Nikita Popov [Mon, 26 Aug 2019 12:24:31 +0000 (14:24 +0200)]
Assert that symbol table is available in compact()
I believe NULL here is no longer possible due to the dynamic call
check. A similar assumption already exists in the extract()
implementation.
Christoph M. Becker [Mon, 26 Aug 2019 12:06:08 +0000 (14:06 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Replace deprecated libzip functions
Christoph M. Becker [Mon, 26 Aug 2019 10:37:29 +0000 (12:37 +0200)]
Replace deprecated libzip functions
We replace all deprecated libzip functions with their recommended
substitutes, and add proper comment length checks including a test
case.
George Peter Banyard [Tue, 20 Aug 2019 23:20:53 +0000 (01:20 +0200)]
Promote warnings to errors in array_rand()
Nikita Popov [Mon, 26 Aug 2019 11:14:53 +0000 (13:14 +0200)]
Avoid duplicate "non well-formed" warning
The arginfo checking code for internal functions should not generate
this warning, as it will be thrown by zpp.
Theodore Brown [Mon, 26 Aug 2019 10:52:27 +0000 (12:52 +0200)]
Convert remaining array function arginfo to PHP stubs
viest [Sat, 3 Aug 2019 15:05:56 +0000 (23:05 +0800)]
Remove deprecated getaddrinfo flags
The AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES have
been deprecated by glibcs, and PHP 7.4 follows this deprecation.
This removes the offending flags for PHP 8.0.
George Peter Banyard [Thu, 22 Aug 2019 10:09:55 +0000 (12:09 +0200)]
Promote warnings to errors in explode()
Nikita Popov [Mon, 26 Aug 2019 09:33:38 +0000 (11:33 +0200)]
Merge branch 'PHP-7.4'
viest [Sat, 3 Aug 2019 15:05:56 +0000 (23:05 +0800)]
Deprecate AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES
These flags have been deprecated in glibc 2.28, so we also
deprecate them in PHP.
As we can't deprecate constants, we can only check for their use
in socket_addrinfo_lookup().
Nikita Popov [Mon, 26 Aug 2019 09:15:18 +0000 (11:15 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 26 Aug 2019 09:13:57 +0000 (11:13 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 26 Aug 2019 09:13:49 +0000 (11:13 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Tyson Andre [Sun, 25 Aug 2019 15:02:28 +0000 (11:02 -0400)]
Also fix signature for passthru
Backported from
a1a8d144854acb1c891cf0c21abb0f612b1d8de7
https://www.php.net/manual/en/function.passthru.php#refsect1-function.passthru-returnvalues
`passthru()` is false with invalid args
`passthru('command')` is null.
Tyson Andre [Sun, 25 Aug 2019 14:48:52 +0000 (10:48 -0400)]
Fix opcache optimizer info for time_nanosleep
This can also return an array. See
https://www.php.net/manual/en/function.time-nanosleep.php#refsect1-function.time-nanosleep-returnvalues
> If the delay was interrupted by a signal, an associative array will be
returned with the components:
>
> - seconds - number of seconds remaining in the delay
> - nanoseconds - number of nanoseconds remaining in the delay
Sending a SIGUSR1 to the below program would trigger this behavior.
```
pcntl_signal(\SIGUSR1, function ($signo, $signinfo) {
echo "Handling a signal $signo\n";
});
echo "Sleeping for 100 seconds\n";
var_export(time_nanosleep(100, 0));
```
The incomplete signature existed since
c88ffa9a5 .
No phpt tests existed for time_nanosleep returning an array
Nikita Popov [Mon, 26 Aug 2019 09:10:07 +0000 (11:10 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 26 Aug 2019 09:08:42 +0000 (11:08 +0200)]
Fixed bug #78456
Nikita Popov [Mon, 26 Aug 2019 08:28:14 +0000 (10:28 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 26 Aug 2019 08:27:08 +0000 (10:27 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 26 Aug 2019 08:26:49 +0000 (10:26 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 26 Aug 2019 08:23:23 +0000 (10:23 +0200)]
Fix overflow in memory limit checks
Due to overflows in the memory limit checks, we were missing cases
where the allocation size was close to the address space size, and
caused an OOM condition rather than a memory limit error.
Stanislav Malyshev [Mon, 26 Aug 2019 03:06:50 +0000 (20:06 -0700)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix test
Stanislav Malyshev [Mon, 26 Aug 2019 03:06:43 +0000 (20:06 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix test
Stanislav Malyshev [Mon, 26 Aug 2019 03:06:02 +0000 (20:06 -0700)]
Fix test
Not sure why offset changed... probably different PCRE version calculates
them in different way.
Stanislav Malyshev [Mon, 26 Aug 2019 02:21:13 +0000 (19:21 -0700)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #75457: heap-use-after-free in php7.0.25
Stanislav Malyshev [Mon, 26 Aug 2019 02:21:08 +0000 (19:21 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #75457: heap-use-after-free in php7.0.25
Stanislav Malyshev [Mon, 26 Aug 2019 02:21:04 +0000 (19:21 -0700)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #75457: heap-use-after-free in php7.0.25
Stanislav Malyshev [Mon, 26 Aug 2019 02:20:59 +0000 (19:20 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix #75457: heap-use-after-free in php7.0.25
Christoph M. Becker [Fri, 16 Aug 2019 12:29:19 +0000 (14:29 +0200)]
Fix #75457: heap-use-after-free in php7.0.25
Backport <https://vcs.pcre.org/pcre?view=revision&revision=1638>.
Christoph M. Becker [Sun, 25 Aug 2019 20:46:55 +0000 (22:46 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #78454: Consecutive numeric separators cause OOM error
Theodore Brown [Sun, 25 Aug 2019 05:33:51 +0000 (00:33 -0500)]
Fix #78454: Consecutive numeric separators cause OOM error
Resolves out of memory error when consecutive numeric separators follow a binary/hex literal.
George Peter Banyard [Thu, 22 Aug 2019 10:03:22 +0000 (12:03 +0200)]
Promote warnings to errors in str_pad()
Christoph M. Becker [Sun, 25 Aug 2019 16:28:15 +0000 (18:28 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Don't modify arrays passed by value