Skip to content

Commit 58f643e

Browse files
committed
Merge tag 'php-8.3.3' into was-8.3.x
Tag for PHP 8.3.3
2 parents b8bc409 + 3a832a2 commit 58f643e

File tree

88 files changed

+1593
-358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1593
-358
lines changed

.gdbinit

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ define dump_bt
6666
if $func
6767
if $ex->This->value.obj
6868
if $func->common.scope
69-
printf "%s->", $func->common.scope->name->val
69+
printf "%s->", (char*)$func->common.scope->name->val
7070
else
71-
printf "%s->", $ex->This->value.obj->ce.name->val
71+
printf "%s->", (char*)$ex->This->value.obj->ce.name->val
7272
end
7373
else
7474
if $func->common.scope
75-
printf "%s::", $func->common.scope->name->val
75+
printf "%s::", (char*)$func->common.scope->name->val
7676
end
7777
end
7878

7979
if $func->common.function_name
80-
printf "%s(", $func->common.function_name->val
80+
printf "%s(", (char*)$func->common.function_name->val
8181
else
8282
printf "(main"
8383
end
@@ -109,7 +109,7 @@ define dump_bt
109109
printf "%f", $zvalue->value.dval
110110
end
111111
if $type == 6
112-
____print_str $zvalue->value.str->val $zvalue->value.str->len
112+
____print_str (char*)$zvalue->value.str->val $zvalue->value.str->len
113113
end
114114
if $type == 7
115115
printf "array(%d)[%p]", $zvalue->value.arr->nNumOfElements, $zvalue
@@ -135,7 +135,7 @@ define dump_bt
135135
end
136136
if $func != 0
137137
if $func->type == 2
138-
printf "%s:%d ", $func->op_array.filename->val, $ex->opline->lineno
138+
printf "%s:%d ", (char*)$func->op_array.filename->val, $ex->opline->lineno
139139
else
140140
printf "[internal function]"
141141
end
@@ -186,7 +186,7 @@ define ____printzv_contents
186186
printf "double: %f", $zvalue->value.dval
187187
end
188188
if $type == 6
189-
printf "string: %s", $zvalue->value.str->val
189+
printf "string: %s", (char*)$zvalue->value.str->val
190190
end
191191
if $type == 7
192192
printf "array: "
@@ -208,7 +208,7 @@ define ____printzv_contents
208208
set $handle = $zvalue->value.obj.handle
209209
set $handlers = $zvalue->value.obj.handlers
210210
set $zobj = $zvalue->value.obj
211-
set $cname = $zobj->ce->name->val
211+
set $cname = (char*)$zobj->ce->name->val
212212
printf "(%s) #%d", $cname, $handle
213213
if ! $arg1
214214
if $handlers->get_properties == &zend_std_get_properties
@@ -233,7 +233,7 @@ define ____printzv_contents
233233
set $name = $p->key
234234
set $prop = (zend_property_info*)$p->val.value.ptr
235235
set $val = (zval*)((char*)$zobj + $prop->offset)
236-
printf "%s => ", $name->val
236+
printf "%s => ", (char*)$name->val
237237
printzv $val
238238
set $k = $k + 1
239239
end
@@ -348,7 +348,7 @@ define ____print_ht
348348
end
349349
printf "[%d] ", $i
350350
if $key
351-
____print_str $key->val $key->len
351+
____print_str (char*)$key->val $key->len
352352
printf " => "
353353
else
354354
printf "%d => ", $h
@@ -365,7 +365,7 @@ define ____print_ht
365365
end
366366
if $arg1 == 3
367367
set $func = (zend_function*)$val->value.ptr
368-
printf "\"%s\"\n", $func->common.function_name->val
368+
printf "\"%s\"\n", (char*)$func->common.function_name->val
369369
end
370370
if $arg1 == 4
371371
set $const = (zend_constant *)$val->value.ptr
@@ -423,15 +423,15 @@ define ____print_inh_class
423423
printf "final "
424424
end
425425
end
426-
printf "class %s", $ce->name->val
426+
printf "class %s", (char*)$ce->name->val
427427
if $ce->parent != 0
428-
printf " extends %s", $ce->parent->name->val
428+
printf " extends %s", (char*)$ce->parent->name->val
429429
end
430430
if $ce->num_interfaces != 0
431431
printf " implements"
432432
set $tmp = 0
433433
while $tmp < $ce->num_interfaces
434-
printf " %s", $ce->interfaces[$tmp]->name->val
434+
printf " %s", (char*)$ce->interfaces[$tmp]->name->val
435435
set $tmp = $tmp + 1
436436
if $tmp < $ce->num_interfaces
437437
printf ","
@@ -443,10 +443,10 @@ end
443443

444444
define ____print_inh_iface
445445
set $ce = $arg0
446-
printf "interface %s", $ce->name->val
446+
printf "interface %s", (char*)$ce->name->val
447447
if $ce->num_interfaces != 0
448448
set $ce = $ce->interfaces[0]
449-
printf " extends %s", $ce->name->val
449+
printf " extends %s", (char*)$ce->name->val
450450
else
451451
set $ce = 0
452452
end
@@ -486,7 +486,7 @@ define print_pi
486486
set $ptr_to_val = (zval*)((char*)$pi->ce->default_properties_table + $pi->offset - $initial_offset)
487487
printf "[%p] {\n", $pi
488488
printf " offset = %p\n", $pi->offset
489-
printf " ce = [%p] %s\n", $pi->ce, $pi->ce->name->val
489+
printf " ce = [%p] %s\n", $pi->ce, (char*)$pi->ce->name->val
490490
printf " flags = 0x%x (", $pi->flags
491491
if $pi->flags & 0x100
492492
printf "ZEND_ACC_PUBLIC"
@@ -608,7 +608,7 @@ define print_zstr
608608
set $maxlen = $zstr->len
609609
end
610610
printf "string(%d) ", $zstr->len
611-
____print_str $zstr->val $zstr->len $maxlen
611+
____print_str (char*)$zstr->val $zstr->len $maxlen
612612
printf "\n"
613613
end
614614

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--------------------------------------------------------------------
22
The PHP License, version 3.01
3-
Copyright (c) 1999 - 2023 The PHP Group. All rights reserved.
3+
Copyright (c) 1999 - 2024 The PHP Group. All rights reserved.
44
--------------------------------------------------------------------
55

66
Redistribution and use in source and binary forms, with or without

NEWS

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,69 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3+
15 Feb 2024, PHP 8.3.3
4+
5+
- Core:
6+
. Fixed timer leak in zend-max-execution-timers builds. (withinboredom)
7+
. Fixed bug GH-12349 (linking failure on ARM with mold). (Jan Palus)
8+
. Fixed bug GH-13097 (Anonymous class reference in trigger_error / thrown
9+
Exception). (nielsdos)
10+
. Fixed bug GH-13177 (PHP 8.3.2: final private constructor not allowed
11+
when used in trait). (nielsdos)
12+
. Fixed bug GH-13215 (GCC 14 build failure). (Remi)
13+
14+
- Curl:
15+
. Fix missing error check in curl_multi_init(). (divinity76)
16+
17+
- FPM:
18+
. Fixed bug GH-12996 (Incorrect SCRIPT_NAME with Apache ProxyPassMatch when
19+
plus in path). (Jakub Zelenka)
20+
21+
- GD:
22+
. Fixed bug GH-10344 (imagettfbbox(): Could not find/open font UNC path).
23+
(nielsdos)
24+
. Fixed bug GH-10614 (imagerotate will turn the picture all black, when
25+
rotated 90). (nielsdos)
26+
27+
- LibXML:
28+
. Fix crashes with entity references and predefined entities. (nielsdos)
29+
30+
- MySQLnd:
31+
. Fixed bug GH-12107 (When running a stored procedure (that returns a result
32+
set) twice, PHP crashes). (nielsdos)
33+
34+
- Opcache:
35+
. Fixed bug GH-13145 (strtok() is not comptime). (ilutov)
36+
. Fixed type inference of range(). (ilutov)
37+
. Fixed bug GH-13232 (Segmentation fault will be reported when JIT is off but
38+
JIT_debug is still on). (nielsdos)
39+
40+
- OpenSSL:
41+
. Fixed LibreSSL undefined reference when OPENSSL_NO_ENGINE not set.
42+
(David Carlier).
43+
44+
- PDO_Firebird:
45+
. Fix GH-13119 (Changed to convert float and double values ​​into strings using
46+
`H` format). (SakiTakamachi)
47+
48+
- Phar:
49+
. Fixed bug #71465 (PHAR doesn't know about litespeed). (nielsdos)
50+
. Fixed bug GH-13037 (PharData incorrectly extracts zip file). (nielsdos)
51+
52+
- Random:
53+
. Fixed bug GH-13138 (Randomizer::pickArrayKeys() does not detect broken
54+
engines). (timwolla)
55+
56+
- Session:
57+
. Fixed bug GH-12504 (Corrupted session written when there's a fatal error
58+
in autoloader). (nielsdos)
59+
60+
- Standard:
61+
. Fixed bug GH-13094 (range(9.9, '0') causes segmentation fault). (nielsdos)
62+
63+
- Streams:
64+
. Fixed bug GH-13071 (Copying large files using mmap-able source streams may
65+
exhaust available memory and fail). (nielsdos)
66+
367
18 Jan 2024, PHP 8.3.2
468

569
- Core:
@@ -29,6 +93,10 @@ PHP NEWS
2993
(Jakub Zelenka)
3094
. Fixed bug GH-12905 (FFI::new interacts badly with observers). (nielsdos)
3195

96+
- GD:
97+
. Fixed GH-13082 undefined behavior with GdFont instances handling with
98+
imageload* and imagechar*. (David Carlier)
99+
32100
- Intl:
33101
. Fixed GH-12943 (IntlDateFormatter::__construct accepts 'C' as valid locale).
34102
(David Carlier)
@@ -37,6 +105,11 @@ PHP NEWS
37105
. Fixed bug GH-12936 (hash() function hangs endlessly if using sha512 on
38106
strings >= 4GiB). (nielsdos)
39107

108+
- MBString:
109+
. When operating on a string with invalid encoding, mb_substr (as well
110+
as mb_strstr and its variants) defines character indices in the same
111+
way as other mbstring functions such as mb_strpos. (Alex Dowad)
112+
40113
- ODBC:
41114
. Fix crash on Apache shutdown with persistent connections. (nielsdos)
42115

0 commit comments

Comments
 (0)