Nikita Popov
648f16c2ec
Fix rel_date leak on DateInterval construction failure
2020-01-28 13:11:49 +01:00
Nikita Popov
2342c06584
Throw an exception if default_dir not set, but required
...
Previously the RETURN_THROWS() assertion failed for this case.
2020-01-28 12:35:35 +01:00
Remi Collet
d91abf76e0
zip: fix lib check
2020-01-28 11:32:42 +01:00
Nikita Popov
c59219de85
Perform map ptr base arithmetic through uintptr_t
...
Adding an offset to the NULL pointer is undefined behavior.
Avoid this by performing arithmetic on uintptr_t instead.
2020-01-28 11:24:04 +01:00
Nikita Popov
521c405108
Don't index NULL pointer when fetching non-existent constant
2020-01-28 11:20:57 +01:00
Remi Collet
ac9a265f01
- bump zip extension version to 1.16.0 - add ZipArchive::setMtimeName and ZipArchive::setMtimeIndex methods
2020-01-28 10:53:49 +01:00
Nikita Popov
3bae1793ab
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #78989
2020-01-28 10:44:37 +01:00
Nikita Popov
1146bdb9b2
Fixed bug #78989
...
Always operate on copies of the functions, so we don't reference
temporary trait methods that have gone out of scope.
This could be more efficient, but doing an allocated copy only when
strictly necessary turned out to be somewhat tricky.
2020-01-28 10:43:15 +01:00
Christoph M. Becker
9a5ea0de69
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #76584 : PharFileInfo::decompress not working
2020-01-28 10:40:00 +01:00
Christoph M. Becker
e197f65b35
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #76584 : PharFileInfo::decompress not working
2020-01-28 10:33:10 +01:00
Christoph M. Becker
136f51f1e1
Fix #76584 : PharFileInfo::decompress not working
...
We actually have to decompress, when told to do so.
2020-01-28 10:31:36 +01:00
Christoph M. Becker
7e5a8d9faa
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79172 : STRUCT_OFFSET() relies on undefined behavior
2020-01-28 09:19:45 +01:00
Christoph M. Becker
412b476b7f
Fix #79172 : STRUCT_OFFSET() relies on undefined behavior
...
Since this pattern is understood by compilers, not a real issue, but
certainly cleaner this way.
2020-01-28 09:18:05 +01:00
Tyson Andre
5f92a085cc
Convert ZEND_ECHO operand to string after sccp
...
And filter out echoes of the empty string (e.g. false/null)
Split out of #5097 (on GitHub)
Closes GH-5118
2020-01-27 20:21:24 -05:00
George Peter Banyard
9a76a2a032
Convert some warnings into ValueErrors in the standard file extension
...
Closes GH-5007
2020-01-27 23:20:40 +01:00
Remi Collet
cb1b26ac9c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
- bump zip extension version to 1.15.6 - add ZipArchive::LIBZIP_VERSION - skip bug53885.phpt with libzip 1.6.0 (empty file is no more valid archive)
2020-01-27 16:48:54 +01:00
Remi Collet
5215f072af
- bump zip extension version to 1.15.6
...
- add ZipArchive::LIBZIP_VERSION
- skip bug53885.phpt with libzip 1.6.0 (empty file is no more valid archive)
2020-01-27 16:47:28 +01:00
Nikita Popov
8dd91f52a5
Remove state pointer argument from php_strip_tags
2020-01-27 16:13:36 +01:00
Máté Kocsis
d6a6a60ef9
Merge branch 'PHP-7.4'
2020-01-27 14:04:19 +01:00
Máté Kocsis
ea1b878877
Fix #78969 Make PASSWORD_DEFAULT match PASSWORD_BCRYPT instead of being null
...
It was an unintentional BC break.
2020-01-27 13:57:00 +01:00
Nikita Popov
16f194c75e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #78323 : Code 0 is returned on invalid options
2020-01-27 13:32:51 +01:00
Nikita Popov
1cccbb8ff1
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #78323 : Code 0 is returned on invalid options
2020-01-27 13:32:38 +01:00
Ivan Mikheykin
fd08f062ae
Fix bug #78323 : Code 0 is returned on invalid options
...
Set CLI exit code to 1 when invalid parameters are passed,
and print error to stderr.
2020-01-27 13:32:19 +01:00
Tyson Andre
3f6779879c
[skip ci] Fix typos in NEWS
2020-01-26 16:13:02 -05:00
Markus Staab
9f4d1b9936
Fix typo [ci skip]
2020-01-26 16:08:46 +01:00
Christoph M. Becker
2fe86669c9
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add CURLOPT CURLOPT_HTTP09_ALLOWED available since 7.64.0
2020-01-26 14:14:52 +01:00
Christoph M. Becker
41e1891e0c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add CURLOPT CURLOPT_HTTP09_ALLOWED available since 7.64.0
2020-01-26 14:13:52 +01:00
Florian Smeets
b836d9cdc1
Add CURLOPT CURLOPT_HTTP09_ALLOWED available since 7.64.0
2020-01-26 14:12:53 +01:00
Anatol Belski
378010a120
Fix bundled PCRE2 compilation on ARM64
2020-01-25 17:44:18 +01:00
Anatol Belski
52d07834df
Upgrade bundled PCRE2 to 10.34
2020-01-25 13:37:37 +01:00
George Peter Banyard
12e903d894
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79080 [ci skip]
2020-01-25 13:31:43 +01:00
George Peter Banyard
86f463c396
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #79080 [ci skip]
2020-01-25 13:31:10 +01:00
George Peter Banyard
a1f2f8f06e
Fixed bug #79080 [ci skip]
...
Rewrote session.gc_probability and session.gc_divisor INI setting
description to be more succint.
2020-01-25 13:29:36 +01:00
George Peter Banyard
300d4df654
Add mention about empty needles for strrch() functions in UPGRADING [ci skip]
2020-01-25 12:34:42 +01:00
George Peter Banyard
ba82e18755
Allow empty needle in mb_strrchr()
2020-01-25 12:22:01 +01:00
George Peter Banyard
986da2a436
Convert warnings to ValueError in mb_strpos function family.
...
Closes GH-5109
2020-01-24 23:59:22 +01:00
Nikita Popov
ebd00c5b65
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79128
2020-01-24 16:20:30 +01:00
Nikita Popov
3291891408
Fixed bug #79128
...
We need to extend the hash table before performing raw append
operations.
This doesn't matter if preloading happens in the same process,
as the tables will be large enough to hold all entries as a
side-effect of the preloading process. However, if preloading
happens in a different process, we need to reserve space here.
2020-01-24 16:18:48 +01:00
wbender
98bfad738a
Fix bug #64865 : Use CONTEXT_DOCUMENT_ROOT for scanning dir tree
...
If CONTEXT_DOCUMENT_ROOT is set use that rather than DOCUMENT_ROOT to
scan up the dir tree looking for .user.ini files.
Closes GH-5051.
2020-01-24 15:33:55 +01:00
Nikita Popov
9b9436d9b0
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix mysqli ssl test for tls1.3
2020-01-24 15:15:36 +01:00
Nikita Popov
c14df824d1
Fix mysqli ssl test for tls1.3
...
Specifying AES256-SHA results in TLS_AES_256_GCM_SHA384 if the
connection uses TLS v1.3.
2020-01-24 15:14:52 +01:00
Nikita Popov
dc6ede092f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79011
Fix memory leaks in mysqlnd debug functionality
2020-01-24 14:55:00 +01:00
Nikita Popov
bb5cdd9b74
Fixed bug #79011
...
auth_plugin_data_len here is 21, including the trailing null byte.
Directly use SCRAMBLE_LENGTH instead. Also add a sanity check that
the provided scramble is long enough.
2020-01-24 14:54:46 +01:00
Nikita Popov
555567468a
Fix memory leaks in mysqlnd debug functionality
2020-01-24 14:54:46 +01:00
Christoph M. Becker
c8eceba2c7
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Make test independent of online XSD schema
Yet another check for php_strip_tags_ex()
2020-01-24 14:20:59 +01:00
Christoph M. Becker
1ea5d2e5ad
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Make test independent of online XSD schema
Yet another check for php_strip_tags_ex()
2020-01-24 14:19:17 +01:00
Christoph M. Becker
49cbd23155
Make test independent of online XSD schema
...
The test still needs to access <http://www.w3.org/2009/01/xml.xsd >, but
at least we no longer depend on <http://x-road.eu/xsd/x-road.xsd >,
which may be moved again.
2020-01-24 14:18:16 +01:00
Remi Collet
a1d3f999c1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add ZipArchive::CM_LZMA2 constant (since libzip 1.6.0)
2020-01-24 14:06:38 +01:00
Remi Collet
b9dff1160e
Add ZipArchive::CM_LZMA2 constant (since libzip 1.6.0)
2020-01-24 14:06:19 +01:00
Christoph M. Becker
5d65641011
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Yet another check for php_strip_tags_ex()
2020-01-24 13:04:26 +01:00