Arnaud Le Blanc
9b57295d56
[ci skip] NEWS
2022-12-21 14:55:53 +01:00
Arnaud Le Blanc
f1c345394b
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[ci skip] NEWS
ext/opcache/jit/zend_jit: fix inverted bailout value in zend_runtime_jit() (#10144 )
2022-12-21 14:55:36 +01:00
Arnaud Le Blanc
6de376a2b4
[ci skip] NEWS
2022-12-21 14:55:21 +01:00
Max Kellermann
d3a6eedf4a
ext/opcache/jit/zend_jit: fix inverted bailout value in zend_runtime_jit() ( #10144 )
...
In the "catch" block, do_bailout must be set to true, not false, or
else zend_bailout() never gets called.
2022-12-21 14:53:21 +01:00
Jakub Zelenka
891b58d503
Fix bug #77106 : Missing separator in FPM FastCGI errors
2022-12-21 12:00:31 +00:00
Derick Rethans
6b212b6dee
Merge branch 'PHP-8.1' into PHP-8.2
2022-12-20 16:06:55 +00:00
Derick Rethans
b73e1db77a
Merge remote-tracking branch 'derickr/issue9891' into PHP-8.1
2022-12-20 16:06:46 +00:00
Remi Collet
bfa56cf62b
Fix #10133 set variables_order en ensure $ENV is set
2022-12-20 16:40:47 +01:00
Derick Rethans
d19a70c9a0
Fix GH-9891: DateTime modify with unixtimestamp (@) must work like setTimestamp
2022-12-20 14:41:13 +00:00
Christoph M. Becker
1abc1645dd
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Force extension loading for new test
2022-12-19 16:15:24 +01:00
Christoph M. Becker
da5cbca23e
Force extension loading for new test
2022-12-19 16:14:00 +01:00
Christoph M. Becker
6bd65cd8d2
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Skip newly added test on 32bit platforms
2022-12-19 16:07:08 +01:00
Christoph M. Becker
c702c9f0a3
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Skip newly added test on 32bit platforms
2022-12-19 16:06:18 +01:00
Christoph M. Becker
cf5dac07d2
Skip newly added test on 32bit platforms
...
That bug didn't affect 32bit platforms, and besides, it is rather
unlikely that allocating a 2GB string works on such platforms.
2022-12-19 16:04:29 +01:00
Dmitry Stogov
f763cfd3d5
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix memory leak
2022-12-19 12:11:55 +03:00
Dmitry Stogov
683285165e
Fix memory leak
...
Fixes oss-fuzz #54320
2022-12-19 12:11:16 +03:00
Stanislav Malyshev
83a352a0c7
Merge branch 'PHP-8.1' into PHP-8.2
2022-12-18 23:27:14 -07:00
Stanislav Malyshev
351055e434
Merge branch 'PHP-8.0' into PHP-8.1
2022-12-18 23:26:47 -07:00
Stanislav Malyshev
05c35137cd
Add NEWS
2022-12-18 23:24:53 -07:00
Stanislav Malyshev
32b6eacbc6
Merge branch 'PHP-8.1' into PHP-8.2
2022-12-18 23:21:25 -07:00
Stanislav Malyshev
a6a80eefe0
Improve fix for bug #81740
2022-12-18 23:20:29 -07:00
Stanislav Malyshev
5975f33c37
Merge branch 'PHP-8.0' into PHP-8.1
2022-12-18 23:02:09 -07:00
Stanislav Malyshev
5f90134bb6
Make build work with newer OpenSSL
2022-12-18 22:52:30 -07:00
Christoph M. Becker
921b6813da
Fix #81740 : PDO::quote() may return unquoted string
...
`sqlite3_snprintf()` expects its first parameter to be `int`; we need
to avoid overflow.
2022-12-18 22:41:43 -07:00
Máté Kocsis
d832125b8e
Only include the default constructor for non-abstract class synopses
2022-12-16 17:02:35 +01:00
Christoph M. Becker
018fbd0a68
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create()
2022-12-16 14:37:39 +01:00
Christoph M. Becker
b8ac2071b8
Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create()
...
There is no `ldap_create()`, but rather `ldap_connect()`.
Closes GH-10115.
2022-12-16 14:36:30 +01:00
Máté Kocsis
6aa5e58414
Backport methodsynopsis role attributes changes from master
...
Commits 93605f286d and d6651426f4
2022-12-16 13:18:12 +01:00
Máté Kocsis
0fc60fab72
Always include the constructor on the class manual pages
2022-12-16 13:18:12 +01:00
Máté Kocsis
b4df038cee
Remove the superfluous closing parentheses from class synopsis page includes
2022-12-16 13:18:12 +01:00
Máté Kocsis
60cf9fbee0
Replace another root XML element format to the "canonical" one
2022-12-16 13:18:12 +01:00
Pierrick Charron
002d54db9f
PHP-8.2 is now for PHP 8.2.2-dev
2022-12-13 19:29:29 -05:00
George Peter Banyard
52a891aeaa
Add a new imap_is_open() function to check that a connection object is still valid
2022-12-13 23:48:03 +00:00
Christoph M. Becker
4631e9de2b
shmget() with IPC_CREAT must not create 0 size SHM
...
The recently committed fix for GH-9944 did only indirectly cater to
that, namely because in this case `CreateFileMapping()` with a zero
size couldn't be created. As of PHP 8.2.0, the mappings of the actual
SHM and the info segment have been merged, so creating a zero size SHM
would be possible unless we explicitly prohibit this.
2022-12-13 19:43:13 +01:00
Christoph M. Becker
9089e15940
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix Windows shmget() wrt. IPC_PRIVATE
2022-12-13 15:49:55 +01:00
Tyson Andre
7a983e281c
Fix Windows shmget() wrt. IPC_PRIVATE
...
Fixes #9944
https://man7.org/linux/man-pages/man2/shmget.2.html notes
The name choice IPC_PRIVATE was perhaps unfortunate, IPC_NEW
would more clearly show its function.
Closes GH-9946.
2022-12-13 15:46:40 +01:00
Christoph M. Becker
87c2f5b5a2
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-9949: Partial content on incomplete POST request
2022-12-13 15:24:07 +01:00
Christoph M. Becker
aef7d810d3
Fix GH-9949: Partial content on incomplete POST request
...
`ap_get_brigade()` may fail for different reasons, and we must not
pretend that a partially read POST payload is fine; instead we report
a content length of zero what matches all other `read_post()` callbacks
of bundled SAPIs.
Closes GH-10059.
2022-12-13 15:21:42 +01:00
Mattias Ellert
a83923044c
Fix compilation on RHEL 7 ppc64le (gcc 4.8)
...
Fixes GH-10077
Closes GH-10078
2022-12-11 17:30:31 +01:00
David Carlier
8a221e2763
fix litespeed SAPI build warnings.
...
- helpers only called on linux anyway.
- proper C calls prototypes.
Closes GH-10068.
2022-12-10 14:13:30 +00:00
Daniel Black
b77edf82ac
Fix mysqli test wrt. MariaDB
...
The test results under MariaDB, except they report "MariaDB" instead
of MySQL.
Closes GH-10029.
2022-12-09 16:09:23 +01:00
Alex Dowad
b79a86f53a
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Support Microsoft's "Best Fit" mappings for Windows-1252 text encoding
2022-12-09 15:37:56 +02:00
Alex Dowad
a1a69c3734
Support Microsoft's "Best Fit" mappings for Windows-1252 text encoding
...
In b5ff87ca71 , I made a number of adjustments to our conversion code
for CP1252. One of the adjustments was to make the mappings match those
published by the Unicode Consortium in the file CP1252.TXT. These do
not include mappings for the CP1252 bytes 0x81, 0x8D, 0x8F, 0x90, and
0x9D.
Rostyslav Gulka reported that this caused a problem. His application
stores binary JPEG data in an MS-SQL database. When they SELECT the
binary data out of the database, it is treated as CP1252 text and
automatically converted to UTF-8. To recover the original binary
data, they then do a conversion from UTF-8 to CP1252.
Obviously, that does not work if certain CP1252 bytes do not map to
any Unicode codepoint at all.
While this is a very unusual application of text encoding conversion,
and we might choose not to support it if there was no other basis for
including those mappings, it seems that Microsoft does actually include
them in the Win32 API as "best fit" mappings. These are extra mappings
from Unicode to other text encodings, which the Win32 API function
WideCharToMultiByte uses by default unless the WC_NO_BEST_FIT_CHARS
flag was passed.
A list of these "best fit" mappings for CP1252 can be found here:
https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1252.txt
2022-12-09 15:18:37 +02:00
Christoph M. Becker
a76bbd39b6
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
ext/mysqli tests "using password" optional in error messages (part 2)
2022-12-08 14:24:01 +01:00
Daniel Black
c21a5920ac
ext/mysqli tests "using password" optional in error messages (part 2)
...
Like GH-10035 for ext/mysqli/tests/mysqli_connect.phpt test.
Closes GH-10064.
2022-12-08 14:23:33 +01:00
Christoph M. Becker
01eabdc4ec
[ci skip] Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
PHP-8.1 is now for PHP 8.1.15-dev
2022-12-08 14:19:02 +01:00
Ben Ramsey
696bb385df
PHP-8.1 is now for PHP 8.1.15-dev
2022-12-07 11:29:37 -06:00
Christoph M. Becker
830180341b
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix #81742 : open_basedir bypass in SQLite3 by using file URI
2022-12-06 16:00:49 +01:00
Christoph M. Becker
2f6b9e6c63
Fix #81742 : open_basedir bypass in SQLite3 by using file URI
...
A previous fix[1] was not sufficient to catch all potential file URIs,
because the patch did not cater to URL encoding. Properly parsing and
decoding the URI may yield a different result than the handling of
SQLite3, so we play it safe, and reject any file URIs if open_basedir
is configured.
[1] <https://bugs.php.net/bug.php?id=77967 >
Closes GH-10018.
2022-12-06 15:59:52 +01:00
Christoph M. Becker
0ac9e8e4e2
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
ext/mysqli tests "using password" optional in error messages
2022-12-05 13:12:54 +01:00