Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ PHP NEWS
. The __sleep() and __wakeup() magic methods have been deprecated. (Girgias)
. Fixed hard_timeout with --enable-zend-max-execution-timers. (Appla)

- Curl:
. Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead
of the curl_copy_handle() function to clone a CurlHandle. (timwolla)

- Exif:
. Fix OSS-Fuzz #442954659 (zero-size box in HEIF file causes infinite loop).
(nielsdos)
Expand All @@ -16,9 +20,15 @@ PHP NEWS
. Fixed bug GH-19669 (assertion failure in zend_jit_trace_type_to_info_ex).
(Arnaud)

- MBstring:
. Updated Unicode data tables to Unicode 17.0. (Yuya Hamada)

- URI:
. Fixed bug GH-19780 (InvalidUrlException should check $errors argument).
(nielsdos)
. Prevent modifying Uri\WhatWg\Url and Uri\Rfc3986\Uri objects by manually
calling __construct() or __unserialize(). (timwolla)
. Further clean up the internal API. (timwolla)

- Windows:
. Fix GH-19722 (_get_osfhandle asserts in debug mode when given a socket).
Expand Down
3 changes: 3 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ PHP 8.5 UPGRADE NOTES
. ldap_get_option() and ldap_set_option() now throw a ValueError when
passing an invalid option.

- MBstring:
. Unicode data tables have been updated to Unicode 17.0

- MySQLi:
. Calling the mysqli constructor on an already-constructed object
is now no longer possible and throws an Error.
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static zend_object *curl_clone_obj(zend_object *object) {
clone_ch->cp = cp;
_php_setup_easy_copy_handlers(clone_ch, ch);

postfields = &clone_ch->postfields;
postfields = &ch->postfields;
if (Z_TYPE_P(postfields) != IS_UNDEF) {
if (build_mime_structure_from_hash(clone_ch, postfields) == FAILURE) {
zend_throw_exception(NULL, "Failed to clone CurlHandle", 0);
Expand Down
34 changes: 34 additions & 0 deletions ext/curl/tests/curl_copy_handle_variation3_clone.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
--TEST--
clone() allows to post CURLFile multiple times
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';
$host = curl_cli_server_start();

$ch1 = curl_init();
curl_setopt($ch1, CURLOPT_SAFE_UPLOAD, 1);
curl_setopt($ch1, CURLOPT_URL, "{$host}/get.php?test=file");
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);

$filename = __DIR__ . '/curl_copy_handle_variation3_clone.txt';
file_put_contents($filename, "Test.");
$file = curl_file_create($filename);
$params = array('file' => $file);
var_dump(curl_setopt($ch1, CURLOPT_POSTFIELDS, $params));

$ch2 = clone($ch1);

var_dump(curl_exec($ch1));

var_dump(curl_exec($ch2));
?>
--EXPECTF--
bool(true)
string(%d) "curl_copy_handle_variation3_clone.txt|application/octet-stream|5"
string(%d) "curl_copy_handle_variation3_clone.txt|application/octet-stream|5"
--CLEAN--
<?php
@unlink(__DIR__ . '/curl_copy_handle_variation3_clone.txt');
?>
21 changes: 11 additions & 10 deletions ext/mbstring/libmbfl/mbfl/eaw_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ static const struct {
{ 0xff01, 0xff60 },
{ 0xffe0, 0xffe6 },
{ 0x16fe0, 0x16fe4 },
{ 0x16ff0, 0x16ff1 },
{ 0x17000, 0x187f7 },
{ 0x18800, 0x18cd5 },
{ 0x18cff, 0x18d08 },
{ 0x16ff0, 0x16ff6 },
{ 0x17000, 0x18cd5 },
{ 0x18cff, 0x18d1e },
{ 0x18d80, 0x18df2 },
{ 0x1aff0, 0x1aff3 },
{ 0x1aff5, 0x1affb },
{ 0x1affd, 0x1affe },
Expand Down Expand Up @@ -125,7 +125,7 @@ static const struct {
{ 0x1f680, 0x1f6c5 },
{ 0x1f6cc, 0x1f6cc },
{ 0x1f6d0, 0x1f6d2 },
{ 0x1f6d5, 0x1f6d7 },
{ 0x1f6d5, 0x1f6d8 },
{ 0x1f6dc, 0x1f6df },
{ 0x1f6eb, 0x1f6ec },
{ 0x1f6f4, 0x1f6fc },
Expand All @@ -135,11 +135,12 @@ static const struct {
{ 0x1f93c, 0x1f945 },
{ 0x1f947, 0x1f9ff },
{ 0x1fa70, 0x1fa7c },
{ 0x1fa80, 0x1fa89 },
{ 0x1fa8f, 0x1fac6 },
{ 0x1face, 0x1fadc },
{ 0x1fadf, 0x1fae9 },
{ 0x1faf0, 0x1faf8 },
{ 0x1fa80, 0x1fa8a },
{ 0x1fa8e, 0x1fac6 },
{ 0x1fac8, 0x1fac8 },
{ 0x1facd, 0x1fadc },
{ 0x1fadf, 0x1faea },
{ 0x1faef, 0x1faf8 },
{ 0x20000, 0x2fffd },
{ 0x30000, 0x3fffd },
};
4 changes: 4 additions & 0 deletions ext/mbstring/tests/unicode_versions.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ print "Emoji (\u{1F6DC}): " . mb_strwidth("\u{1F6DC}", 'UTF-8') . "\n";
// Changed in Unicode 16.0, U+2630...U+2637 are wide
print "Emoji (\u{2630}): " . mb_strwidth("\u{2630}", 'UTF-8') . "\n";

// New in Unicode 17.0, width=2
print "Emoji (\u{1FAEA}): " . mb_strwidth("\u{1FAEA}", "UTF-8") . "\n";

echo "Char case changes:\n";

print "Upper(\u{019b}) = \u{a7dc} : ";
Expand All @@ -37,5 +40,6 @@ Sinhalese (අයේෂ්): 5
Emoji (🐘): 2
Emoji (🛜): 2
Emoji (☰): 2
Emoji (🫪): 2
Char case changes:
Upper(ƛ) = Ƛ : bool(true)
Loading
Loading