Dmitry Stogov
94fd97eea3
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Don't force rebuild of symbol table, when populating $http_response_header variable by the HTTP stream wrapper
2020-10-28 12:59:42 +03:00
Dmitry Stogov
2693f799be
Don't force rebuild of symbol table, when populating $http_response_header variable by the HTTP stream wrapper
2020-10-28 12:59:00 +03:00
Nikita Popov
5b46bdef92
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Don't throw for out of bounds offsets in strspn()
2020-10-27 11:42:18 +01:00
Nikita Popov
d776d25a8e
Don't throw for out of bounds offsets in strspn()
...
Make strspn($str1, $str2, $offset, $length) behaviorally
equivalent to strspn(substr($str1, $offset, $length), $str2)
by not throwing for out of bounds offset.
There have been two reports that this change cause issues,
including bug #80285 .
2020-10-27 11:42:01 +01:00
Máté Kocsis
543bcd88aa
Merge branch 'PHP-8.0'
2020-10-27 11:28:48 +01:00
Máté Kocsis
76e4bf3068
Parameter type and name fixes in ext/standard
...
Closes GH-6382
2020-10-27 11:27:25 +01:00
Nikita Popov
2e097098f4
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Skip bug46024.phpt under asan
2020-10-27 10:35:54 +01:00
Nikita Popov
682357c5b4
Skip bug46024.phpt under asan
...
There is a legitimate leak here, but I don't think it's worthwhile
to fix it. It involves a process terminated while printing phpinfo.
2020-10-27 10:35:12 +01:00
Christoph M. Becker
02632a5080
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #80280 : ADD_EXTENSION_DEP() fails for ext/standard and ext/date
2020-10-26 11:06:25 +01:00
Christoph M. Becker
b678df5dc8
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80280 : ADD_EXTENSION_DEP() fails for ext/standard and ext/date
2020-10-26 11:06:10 +01:00
Christoph M. Becker
8b59e4e897
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80280 : ADD_EXTENSION_DEP() fails for ext/standard and ext/date
2020-10-26 11:05:22 +01:00
Christoph M. Becker
2be27074b6
Fix #80280 : ADD_EXTENSION_DEP() fails for ext/standard and ext/date
...
`ADD_EXTENSION_DEP()` relies on the `PHP_<extname>` config variables to
be set to `"yes"`, and since the standard and date extension are always
enabled, we define the respective variables uncoditionally.
Closes GH-6383.
2020-10-26 11:03:05 +01:00
Nikita Popov
6ab4e330ac
Use ephemeral port in more server tests
...
Port the main php_cli_server.inc to use ephemeral ports, thus
allowing CLI server tests to be parallelized.
A complication here is that we also need to give each test a
separate doc root, to avoid index.php files writing over each
other.
Closes GH-6375.
2020-10-23 14:26:34 +02:00
Nikita Popov
3f0e94e3c7
Accept zend_string in highlight_string API
2020-10-22 14:35:40 +02:00
Nikita Popov
bcb5ae15e0
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Make highlight_string() accept string in zpp
2020-10-22 14:31:54 +02:00
Nikita Popov
db5979dfe2
Make highlight_string() accept string in zpp
...
To satisfy the type declaration.
2020-10-22 14:31:42 +02:00
Nikita Popov
30ebf826e6
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fixed bug #80256
2020-10-20 15:36:02 +02:00
Nikita Popov
1c157d3fa2
Fixed bug #80256
...
Remove the transfer_encoding stream filter immediately when we
destroy the old stream, to make sure it doesn't get attached to
the new stream.
2020-10-20 15:35:41 +02:00
Nikita Popov
9426c6e967
Don't use global for array_walk_fci
...
There's really no good reason for this to be a global, we can
easily pass it down to php_array_walk().
2020-10-19 15:33:03 +02:00
Christoph M. Becker
521c36c855
Remove IGNORE_URL_WIN macro
...
This macro is defined to zero as of PHP 5.0.0, and as the comment
indicates, is no longer relevant. Thus, we remove the definition and
all usages from the core and bundled extensions.
Closes GH-6351.
2020-10-18 23:36:36 +02:00
Máté Kocsis
7fe9df5978
Merge branch 'PHP-8.0'
2020-10-17 12:01:40 +02:00
Máté Kocsis
f076ab0c0c
Fix #80229 : assert_options should have int and bool for parameter PHPDoc
...
Closes GH-6348
2020-10-17 12:01:07 +02:00
Nikita Popov
77d4fd437d
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Remove string length limit from levenshtein()
2020-10-09 16:12:44 +02:00
Nikita Popov
6a8c094e2d
Remove string length limit from levenshtein()
...
As noted on https://bugs.php.net/bug.php?id=80073 , I don't think
having this limitation makes sense. The similar_text() function
has much worse asymptotic complexity than levenshtein() and does
not enforce such a limitation. levenshtein() does have fairly high
memory requirements, but they are a fixed factor of the string
length (and subject to memory limit).
2020-10-09 16:12:08 +02:00
Nikita Popov
f351c47154
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Add support for Solaris 11.4 openpty implementation.
2020-10-09 16:10:26 +02:00
Petr Sumbera
240d06118c
Add support for Solaris 11.4 openpty implementation.
...
Closes GH-6287.
2020-10-09 16:10:03 +02:00
Patrick Allaert
15a92e8d7a
Removed broken php_url_encode_hash macro
...
Broken since ~15 years ago (2994c23670 )
Closes GH-6253.
2020-10-09 15:08:29 +02:00
Nikita Popov
68195bd481
Update ext/spl parameter names
...
Closes GH-6284.
2020-10-07 12:26:46 +02:00
Nikita Popov
79484b4f8a
Update ext/sockets parameter names
...
Also change $max_length to $length in a number of filesystem APIs,
where our usage was inconsistent.
Closes GH-6276.
2020-10-06 12:12:43 +02:00
Nikita Popov
d9dce839f7
Update ext/posix parameter names
...
Closes GH-6275.
2020-10-06 09:49:40 +02:00
Máté Kocsis
e9c707298b
Review parameter names in ext/zlib
...
Closes GH-6250
2020-10-05 15:20:27 +02:00
Nikita Popov
d3cf597328
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix -Wimplicit-function-declaration in configure
2020-10-05 10:48:04 +02:00
Nikita Popov
9ad5381a2f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix -Wimplicit-function-declaration in configure
2020-10-05 10:46:46 +02:00
Nikita Popov
aa405b7da2
Fix -Wimplicit-function-declaration in configure
...
As this is an error with xcode 12, see bug #80171 .
2020-10-05 10:43:58 +02:00
Christoph M. Becker
54435c9b43
Fix #64060 : lstat_stat_variation7.phpt fails on certain file systems
...
Closes GH-6194.
2020-10-02 18:54:10 +02:00
Máté Kocsis
6b00196e04
Review parameter names in ext/pcre
...
Closes GH-6259
2020-10-02 11:55:23 +02:00
Nikita Popov
25f1c405ff
Update ext/standard parameter names
...
Closes GH-6214.
2020-09-29 16:49:46 +02:00
Nikita Popov
59aa21c735
Don't accept dir handle in Directory methods
...
This is an artifact of the shared implementation with readdir() etc.
The method versions should not accept an explicit dir handle, as
they work on the dir handle from the object.
2020-09-29 14:50:40 +02:00
Nikita Popov
de2d38d531
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #80137
Fix bug #80138
2020-09-29 10:59:46 +02:00
Nikita Popov
1fafcd2b28
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #80137
Fix bug #80138
2020-09-29 10:59:32 +02:00
Matthias Karbe
f5afd0a827
Fix bug #80137
...
Skip getprotobyname() and getprotobynumber() tests on *nix if there
is no /etc/protocols file.
Closes GH-6193.
2020-09-29 10:58:00 +02:00
Matthias Karbe
2899137391
Fix bug #80138
...
Skip getservbyname() and getservbyport() tests on *nix if there is
no /etc/services file.
Closes GH-6191.
2020-09-29 10:57:20 +02:00
Nikita Popov
cafceea742
Update mbstring parameter names
...
Closes GH-6207.
2020-09-28 09:51:58 +02:00
Nikita Popov
8067cf4752
Use callable type in register_shutdown_function()
...
To make things a bit less weird, split off the function name into
a zval stored separately from the arguments. This allows us to
use normal zpp and get standard behavior.
2020-09-25 14:48:33 +02:00
Nikita Popov
43ce18f837
Add proper count() parameter type
...
We can make this Countable|array now.
2020-09-25 12:31:05 +02:00
Nikita Popov
56fb6864c6
Unify 32-bit/64-bit str_split tests
...
The 32-bit tests work on both 32-bit and 64-bit. I dropped the
64-bit variants as they only test one additional case that I don't
think adds particular value.
2020-09-25 10:03:41 +02:00
Nikita Popov
13b791c79c
Normalize substr() behavior
...
Make the behavior of substr(), mb_substr(), iconv_substr() and
grapheme_substr() consistent when it comes to the handling of
out of bounds offsets. substr() will now always clamp out of
bounds offsets to the string boundary. Cases that previously
returned false will now return an empty string. This means that
substr() itself *always* returns a string now (like mb_substr()
already did before.)
Closes GH-6182.
2020-09-25 09:58:21 +02:00
Christoph M. Becker
1fcd6cdbb8
Fix #80139 : copy_variation5.phpt fails when run on bind mount
...
This test case is not supposed to run on case-insensitive file system;
just checking for macOS/Windows doesn't cut it.
2020-09-23 12:14:40 +02:00
Christoph M. Becker
821f6bb511
Clean up file created during testing
2020-09-23 11:45:47 +02:00
Christoph M. Becker
05edf64436
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix #76735 : Incorrect message in fopen on invalid mode
2020-09-23 11:14:06 +02:00