Jakub Zelenka
cd0a37994e
Fix stream_security_level.phpt with OpenSSL 1.1.1
2018-09-02 20:00:08 +01:00
Christoph M. Becker
7bcda659f8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75696 : posix_getgrnam fails to print details of group
2018-09-01 14:28:13 +02:00
Christoph M. Becker
2677d43850
Fix #75696 : posix_getgrnam fails to print details of group
...
According to the POSIX specification of `getgrnam_r()` the result of
`sysconf(_SC_GETGR_R_SIZE_MAX)` is an initial value suggested for the
size of the buffer, and `ERANGE` signals that insufficient storage was
supplied. So if we get `ERANGE`, we try again with a buffer twice as
big, and so on, instead of failing.
2018-09-01 14:25:59 +02:00
Anatol Belski
1ccc4ff260
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix stack underflow in phar
2018-08-30 19:34:01 +02:00
Anatol Belski
7fb7869e13
Fix stack underflow in phar
...
The checks can issue reads below and above the temporary buffer. A read
itself doesn't seem dangerous, but the condition result can be
arbitrary. Such reads have to be avoided. Likely this patch should be
backported.
(cherry picked from commit b053beee7e
)
2018-08-30 19:33:07 +02:00
Anatol Belski
58339f37e5
Switch to staging series on AppVeyor
2018-08-30 17:38:51 +02:00
Remi Collet
6e703c957e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix double cast to int on 32-bit
2018-08-30 09:04:13 +02:00
Remi Collet
c1729272b1
fix double cast to int on 32-bit
2018-08-30 09:03:50 +02:00
Dmitry Stogov
fd5a453cb9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:41:14 +03:00
Dmitry Stogov
709e4e4f17
Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions).
2018-08-29 23:40:17 +03:00
Sara Golemon
7881e92c24
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Prep for 7.1.23
2018-08-29 12:41:36 -04:00
Sara Golemon
5fee4e7108
Prep for 7.1.23
2018-08-29 12:41:05 -04:00
Remi Collet
7353dae815
bump to 7.2.11-dev
2018-08-28 10:17:33 +02:00
Christoph M. Becker
20849b0b0f
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68180 : iconv_mime_decode can return extra characters in a header
2018-08-26 13:21:22 +02:00
Christoph M. Becker
efb86aef12
Fix #68180 : iconv_mime_decode can return extra characters in a header
...
Basically, the algorithm to append a converted string to an existing
`smart_str` works by increasing the `smart_str` buffer, to let `iconv`
convert characters until there is no more space, to set the new length
of the `smart_str` and to repeat until there is no more input.
Formerly, the new length calculation has been wrong, though, since we
would have to take the old `out_len` into account (`buf_growth -
old_out_len - out_len`). However, since there is no need to take the
old `out_len` into account when increasing the `smart_str` buffer, we
can simplify the fix, avoiding an additional variable.
2018-08-26 13:18:35 +02:00
Christoph M. Becker
314b8ecf8b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #60494 : iconv_mime_decode does ignore special characters
2018-08-25 17:47:29 +02:00
Christoph M. Becker
e29c946c29
Fix #60494 : iconv_mime_decode does ignore special characters
...
We must not ignore erroneous characters in mime headers, but rather let
iconv_mime_decode() fail in this case, issuing the usual notice
regarding illegal characters.
2018-08-25 17:40:39 +02:00
Christoph M. Becker
7e176ddb57
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #63839 : iconv_mime_decode_headers function is skipping headers
2018-08-25 14:52:54 +02:00
Christoph M. Becker
8754d44167
Fix #63839 : iconv_mime_decode_headers function is skipping headers
...
We have to cater to the possibility that `=?` is not the start of an
encoded-word, but rather a literal `=?`. If a line break is found
while we're still looking for the charset, we can safely assume that
it's a literal `=?`, and act accordingly.
2018-08-25 14:51:13 +02:00
Christoph M. Becker
6922cae4ae
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #55146 : iconv_mime_decode_headers() skips some headers
2018-08-25 14:41:38 +02:00
Christoph M. Becker
6e1980e152
Fix #55146 : iconv_mime_decode_headers() skips some headers
...
If we're expecting the start of an encoded word (`=?`), but instead of
the question mark get a line break (CR or LF), we must not append it to
the `pretval`.
2018-08-25 14:40:07 +02:00
Anatol Belski
8f43ec1e83
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
mkdist.php: recursively check dll dependencies
2018-08-23 21:26:40 +02:00
Dylan K. Taylor
b9bf9ddce6
mkdist.php: recursively check dll dependencies
...
Fix duplication of recursively checked deps
2018-08-23 21:25:54 +02:00
Christoph M. Becker
1c3d5659bd
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Simplify regression test
2018-08-23 12:49:26 +02:00
Christoph M. Becker
6644bd005f
Simplify regression test
...
There's no need to actually try to trigger an out-of-memory condition
to proof the leak; instead we can simply rely on the Zend MM to report
the memory leaks in debug mode (at least on Linux). Therefore we
simplify the regression test, which also makes it run much faster.
2018-08-23 12:48:09 +02:00
Christoph M. Becker
36946f5c45
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
2018-08-22 15:38:30 +02:00
Christoph M. Becker
32a728d351
Fix #68825 : Exception in DirectoryIterator::getLinkTarget()
...
intern->file_name may not have been properly set when
DirectoryIterator::getLinkTarget() is called, so we make sure it is
before using it.
2018-08-22 15:37:02 +02:00
Christoph M. Becker
10661e28d1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Increase memory_limit to prevent test failures
2018-08-22 14:30:23 +02:00
Christoph M. Becker
5fb01a3a42
Increase memory_limit to prevent test failures
2018-08-22 14:29:28 +02:00
Christoph M. Becker
cdd9eb8c4a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #76778 : array_reduce leaks memory if callback throws exception
2018-08-22 13:49:35 +02:00
Christoph M. Becker
70b2fca220
Fix #76778 : array_reduce leaks memory if callback throws exception
...
We have to release the result variable in the error case, too.
2018-08-22 13:40:24 +02:00
Massimiliano Braglia
2527a0fcfd
Fixed bug #75797
...
Fix zend_register_class_alias_ex() to use non-persistent strings
for (non-persistent) userland classes.
2018-08-22 13:39:08 +02:00
Christoph M. Becker
7ad0595712
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76777 and added test
2018-08-22 12:52:41 +02:00
Ville Hukkamaki
cf2fc66b02
Fixed bug #76777 and added test
...
Set undefined values to null rather than undefined.
2018-08-22 12:51:06 +02:00
Jakub Zelenka
73a8f72617
Merge branch 'PHP-7.1' into PHP-7.2
2018-08-19 20:19:01 +01:00
Jakub Zelenka
4c542e6c13
Fix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create())
2018-08-19 20:14:26 +01:00
Anatol Belski
b0da1745be
Use stable deps on AppVeyor for now
...
as long as the latest image is not synced with VC++ 15.8
2018-08-18 20:04:19 +02:00
Christoph M. Becker
41d2102c77
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add regression test for bug #68175
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:37:48 +02:00
Christoph M. Becker
4c448334bd
Add regression test for bug #68175
2018-08-18 14:36:16 +02:00
Tim Siebels
3257d22fea
Fix #68175 : RegexIterator pregFlags are NULL instead of 0
2018-08-18 14:33:39 +02:00
Anatol Belski
4aa5065bb0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update binary SDK version for AppVeyor
2018-08-17 15:45:31 +02:00
Anatol Belski
837ed71c65
Update binary SDK version for AppVeyor
2018-08-17 15:44:10 +02:00
Xinchen Hui
acd4264f7b
Update NEWS
2018-08-17 13:35:46 +08:00
Xinchen Hui
ca103b415e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:35:31 +08:00
Xinchen Hui
04c4854fdf
Fixed bug #76754 (parent private constant in extends class memory leak)
2018-08-17 13:35:15 +08:00
Xinchen Hui
a158fb958f
Merge branch 'PHP-7.2' of git.php.net:/php-src into PHP-7.2
...
* 'PHP-7.2' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:01:17 +08:00
Xinchen Hui
64c88c1e16
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:/php-src:
fix man page installation
2018-08-16 14:00:30 +08:00
Xinchen Hui
eb7fca9546
Update NEWS
2018-08-16 13:56:52 +08:00
Xinchen Hui
a879f4dd22
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:56:37 +08:00
Xinchen Hui
8c92442b49
Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar file)
2018-08-16 13:56:20 +08:00