Nikita Popov
4831e150c5
Fixed bug #77843
2019-04-23 12:43:07 +02:00
Christoph M. Becker
d20053a556
Fix #77911 : Wrong warning for session.sid_bits_per_character
2019-04-17 17:23:23 +02:00
Ignace Nyamagana Butera
7b1a4e2400
Fixed bug #77909 : DatePeriod::__construct() with invalid recurrence count value
...
Improve error message on invalid reccurence count
Adding test when reccurence is -1
2019-04-17 09:39:03 +01:00
Christoph M. Becker
6fe75f9e45
Fix tests for non English environments
2019-04-17 09:56:55 +02:00
Nikita Popov
619c4e9f2e
Fixed bug #77895
2019-04-15 15:26:58 +02:00
Nikita Popov
917952453c
Fix uninitialized cert_captured
...
This is a legimitimate bug and also shows up under valgrind.
2019-04-15 10:53:33 +02:00
Nikita Popov
e9c0367fdc
Fixed bug #77882
2019-04-15 10:22:40 +02:00
Christoph M. Becker
d07a6fdedf
Fix tests wrt. internationalization
2019-04-12 13:07:39 +02:00
Nikita Popov
3b53d28e60
Fix key leaks in mb_convert_encoding()
2019-04-12 10:36:58 +02:00
Anatol Belski
5477d68300
Fix potential OPcache file cache related issues
...
To solve issues detected during testing, we backport the following
commits to PHP 7.2:
129c5c1181
9ac133a0b3
ce72bc6b65
2019-04-11 18:28:49 +02:00
Anatol Belski
f31d7ca85e
Fix phar:// include handling with file cache
2019-04-10 14:55:15 +02:00
Nikita Popov
8f13599a64
Fix 29nb_async_connect.phpt
...
Intermediate states are unreliable across versions (I think), make
sure we go through the whole connect procedure.
2019-04-10 13:06:02 +02:00
Nikita Popov
c7a86a38a3
Fix pgsql use after free trying to reuse closed connection
...
When a connection is closed, we also need to remove the hash entry
from the regular_list, as it now points to freed memory. To do this
store a reverse mapping from the connection to the hash string.
It would be nicer to introduce a wrapping structure for the pgsql
link resource that could store the hash (and notices), but that would
require large changes to the extension, so I'm going for a more
minimal fix here.
2019-04-10 12:18:57 +02:00
Nikita Popov
b55715d61a
Fix use after free on pg_close() of default connection
2019-04-10 10:38:24 +02:00
twosee
bdac9ef10d
Preserve keys in emulate_read_fd_set()
...
Keys are already preserved in the non-emulated case.
2019-04-08 12:58:46 +02:00
Nikita Popov
d7b5954f28
Fixed bug #77853
2019-04-08 11:40:50 +02:00
Nikita Popov
eea61cda7d
Fixed bug #77844
...
We should probably return an integer result from the operation in
typed mode, right now the result is always a string.
2019-04-08 11:11:58 +02:00
Stanislav Malyshev
d1d692abe7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Always use ZEND_SECURE_ZERO() when cleaning up data
bump versions after release
2019-04-06 19:05:37 -07:00
Stanislav Malyshev
588db7cecf
Always use ZEND_SECURE_ZERO() when cleaning up data
...
Optimizing compilers have an annoying tendency to throw out
memsets over data that they think aren't used anymore. Apply secure
zero-out in cases where this has potential to happen.
2019-04-06 18:15:42 -07:00
Joe Watkins
a2b8a62abf
Follow up #77849 PDOStatement objects in undefined state after clone
2019-04-06 01:26:47 +02:00
Cameron Porter
9ec1525eb5
Fix bug #77849 Disable cloning of PDO handle/connection objects to avoid segfault
2019-04-06 00:54:59 +02:00
Dmitry Stogov
56a5d0bd91
Fixed CFG construction for SWITCH opcodes
2019-04-03 03:09:03 +03:00
Remi Collet
f7755163b7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix paste issue
2019-04-02 11:05:39 +02:00
Remi Collet
dc1cd3daf2
fix paste issue
2019-04-02 11:05:09 +02:00
Christoph M. Becker
f6efe70505
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:40:56 +02:00
Christoph M. Becker
01a4de5c58
Pointer arithmetic on void pointers is illegal
...
We quick-fix this by casting to char*; it might be more appropriate to
use char pointers in the first place.
2019-04-02 10:39:44 +02:00
Stanislav Malyshev
c83af86f8b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:54 -07:00
Stanislav Malyshev
887a7b5714
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:26 -07:00
Stanislav Malyshev
f3ab302270
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:18 -07:00
Stanislav Malyshev
f3aefc6d07
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:06 -07:00
Christoph M. Becker
88460c017a
Fix #77827 : preg_match does not ignore \r in regex flags
2019-03-31 13:31:54 +02:00
Matteo Beccati
0dbb581cf4
Fixed SKIPIF when --disable-mbregex is used
2019-03-30 18:28:33 +01:00
Christoph M. Becker
0aa1a2c833
Fix test expectation
...
The `W32_SM_SENDMAIL_FROM_MALFORMED` error message will only be shown
if the `$additional_headers` parameter is passed to `mail`, which is
not the case for this test. Instead we have to expect `BAD_MSG_RPATH`.
2019-03-29 09:55:04 +01:00
Stanislav Malyshev
402adc1df1
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
2019-03-28 00:35:22 -07:00
Nikita Popov
0ecac37c40
Validate subject encoding in mb_split and mb_ereg_match
...
We were already validating the subject encoding in most functions,
but not these two.
2019-03-27 23:20:27 -07:00
Nikita Popov
40fe50daf6
Validate pattern against mbregex encoding
...
Oniguruma does not consistently perform this validation itself (at least
on older versions), so make sure we check pattern encoding validity on the
PHP side.
2019-03-27 23:19:46 -07:00
Vlad Temian
ec2ecb7e12
Fix bug #77680 : Correctly implement recursive mkdir on FTP stream
...
If the root directory was missing, an extra CWD without arguments was
made. Also, the MKD contained an empty string.
Now the CWD will use / and MKDs will be issued starting from the root
directory.
2019-03-25 17:43:46 +01:00
Nikita Popov
85095dfd09
Fixed bug #72175
...
Make sure we don't close the connection we're trying to reuse...
2019-03-25 16:41:21 +01:00
Remi Collet
2e9dccef78
ensure pcre.jit=1 for these tests
2019-03-22 15:00:31 +01:00
Nikita Popov
da35fa2cb8
Fixed bug #77772
2019-03-22 12:39:27 +01:00
Remi Collet
a467a89f16
Fix tests after fix for #76717
2019-03-20 14:07:26 +01:00
Vlad Temian
fe2885d80a
Fixed bug #77765
...
Set mode 40755 for directories, via FTP stream stat.
Because we already manage to CWD into the current directory,
we should set 40755 as mode, instead of 40644.
2019-03-19 10:02:38 +01:00
Christoph M. Becker
41bc51ce2d
Fix #77578 : Crash when php unload
...
Since we're putting `ITypeLib *`s into the hash, we're getting
`ITypeLib *`s back, not `ITypeLib **`s.
2019-03-18 19:21:38 +01:00
Xinchen Hui
e072537e7f
Simplfy test case
...
(I was working on the same bug while nikic committed the similar fix
2019-03-18 19:28:23 +08:00
Nikita Popov
b3a669bec1
Make test independent of icu version
...
We don't really care about the actual output here, just that it
doesn't fail.
2019-03-18 12:14:58 +01:00
Nikita Popov
433758ceb3
Allow DateTimeImmutable in datefmt_format_object()
...
As pointed out in a comment on bug #65683 .
2019-03-18 11:39:16 +01:00
Nikita Popov
4f03401628
Partial fix for bug #77751
...
This avoids the segfault, but it will not make writing to the
SplFileObject during output shutdown work.
2019-03-18 11:06:23 +01:00
Nikita Popov
54bf8c820f
Fixed bug #77743
2019-03-18 10:49:53 +01:00
Nikita Popov
a573c0e9ed
Fix unused variable warning
2019-03-18 10:11:00 +01:00
Derick Rethans
ab07bc1fff
Fixed 7.2 compat issue
2019-03-17 14:53:56 -04:00