Skip to content

Commit 9ee8d8c

Browse files
committed
Remove textured background
2 parents c85b1fc + b22d2bf commit 9ee8d8c

Some content is hidden

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

65 files changed

+1398
-442
lines changed

.github/labeler.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,22 @@
219219
- ext/zlib/**/*
220220

221221
"SAPI: apache2handler":
222-
- ext/sapi/apache2handler/**/*
222+
- sapi/apache2handler/**/*
223223

224224
"SAPI: cgi":
225-
- ext/sapi/cgi/**/*
225+
- sapi/cgi/**/*
226226

227227
"SAPI: cli":
228-
- ext/sapi/cli/**/*
228+
- sapi/cli/**/*
229229

230230
"SAPI: fpm":
231-
- ext/sapi/fpm/**/*
231+
- sapi/fpm/**/*
232232

233233
"SAPI: fuzzer":
234-
- ext/sapi/fuzzer/**/*
234+
- sapi/fuzzer/**/*
235235

236236
"SAPI: litespeed":
237-
- ext/sapi/litespeed/**/*
237+
- sapi/litespeed/**/*
238238

239239
"SAPI: phpdbg":
240-
- ext/sapi/phpdbg/**/*
240+
- sapi/phpdbg/**/*

NEWS

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3-
?? ??? ????, PHP 8.2.0alpha3
3+
?? ??? ????, PHP 8.2.0beta1
4+
5+
07 Jul 2022, PHP 8.2.0alpha3
6+
7+
- Core:
8+
. Uses safe_perealloc instead of perealloc for the
9+
ZEND_PTR_STACK_RESIZE_IF_NEEDED to avoid possible overflows. (David Carlier)
10+
11+
- DBA:
12+
. Fixed LMDB driver hanging when attempting to delete a non-existing key
13+
(Girgias)
14+
15+
- Intl:
16+
. Fixed build for ICU 69.x and onwards. (David Carlier)
17+
18+
- Opcache:
19+
. Allocate JIT buffer close to PHP .text segemnt to allow using direct
20+
IP-relative calls and jumps.
21+
(Su Tao, Wang Xue, Chen Hu, Lizhen Lizhen, Dmitry)
22+
23+
- Sockets:
24+
. Added TCP_CONGESTION socket option. (David Carlier)
25+
26+
- SPL:
27+
. Uses safe_erealloc instead of erealloc to handle heap growth
28+
for the SplHeap::insert method to avoid possible overflows. (David Carlier)
29+
30+
- Standard:
31+
. Fixed the crypt_sha256/512 api build with clang > 12. (David Carlier)
32+
. Uses safe_erealloc instead of erealloc to handle options in getopt
33+
to avoid possible overflows. (David Carlier)
434

535
- Zip:
636

@@ -17,6 +47,7 @@ PHP NEWS
1747
enums). (ilutov)
1848
. Fixed bug GH-8810 (Incorrect lineno in backtrace of multi-line function
1949
calls). (ilutov)
50+
. Optimised code path for newly created file with the stream plain wrapper. (Max Kellermann)
2051

2152
- Curl:
2253
. Added new constants from cURL 7.62 to 7.80. (Pierrick)

UPGRADING

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ PHP 8.2 UPGRADE NOTES
163163
5. Changed Functions
164164
========================================
165165

166+
- Core
167+
. str*cmp, str*pos, substr_compare functions, using binary safe string
168+
comparison now return -1, 0 and 1.
169+
166170
- DBA
167171
. dba_open() and dba_popen() now have the following enforced function signature
168172
dba_open(string $path, string $mode, ?string $handler = null, int $permission = 0o644, int $map_size = 0)
@@ -180,6 +184,9 @@ PHP 8.2 UPGRADE NOTES
180184
- Curl:
181185
. curl_upkeep() (libcurl >= 7.62.0)
182186

187+
- mysqli:
188+
. mysqli_execute_query()
189+
183190
- Reflection:
184191
. ReflectionFunction::isAnonymous()
185192
. ReflectionMethod::hasPrototype()
@@ -342,6 +349,7 @@ PHP 8.2 UPGRADE NOTES
342349
. LOCAL_CREDS (NetBSD)
343350
. SO_BPF_EXTENSIONS
344351
. SO_SETFIB
352+
. TCP_CONGESTION (Linux, FreeBSD)
345353

346354
========================================
347355
11. Changes to INI File Handling

UPGRADING.INTERNALS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ PHP 8.2 INTERNALS UPGRADE NOTES
3737
- zend_object_count_elements_t
3838
- zend_object_get_closure_t
3939
- zend_object_do_operation_t
40+
* Added a new zero_position argument to php_stream_fopen_from_fd_rel to reflect
41+
if this a newly created file so the current file offset needs not to be checked.
4042

4143
========================
4244
2. Build system changes

Zend/tests/bug69180-backtrace.phpt

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
--TEST--
2+
Bug #69180: Backtrace does not honor trait conflict resolution / method aliasing
3+
--FILE--
4+
<?php
5+
6+
trait T {
7+
public function __get($name): string {
8+
var_dump(__METHOD__);
9+
print_r(array_map(fn ($v) => $v['class'] . '::' . $v['function'], debug_backtrace()));
10+
11+
return '=' . $name;
12+
}
13+
}
14+
15+
class Model {
16+
use T {
17+
T::__get as private __t_get;
18+
}
19+
20+
public function __get($name): string {
21+
var_dump(__METHOD__);
22+
return $this->__t_get($name);
23+
}
24+
}
25+
26+
class X extends Model {}
27+
28+
class Y extends Model {
29+
public function __get($name): string {
30+
var_dump(__METHOD__);
31+
return parent::__get($name);
32+
}
33+
}
34+
35+
class Z extends Model {
36+
private function __x_get($name): string {
37+
var_dump(__METHOD__);
38+
return parent::__get($name);
39+
}
40+
41+
public function __get($name): string {
42+
var_dump(__METHOD__);
43+
return $this->__x_get($name);
44+
}
45+
}
46+
47+
class P extends Model {
48+
private function __t_get($name): string {
49+
var_dump(__METHOD__);
50+
return parent::__get($name);
51+
}
52+
53+
public function __get($name): string {
54+
var_dump(__METHOD__);
55+
return $this->__t_get($name);
56+
}
57+
}
58+
59+
$m = new X();
60+
$m->a;
61+
62+
echo "\n";
63+
64+
$m = new Y();
65+
$m->a;
66+
67+
echo "\n";
68+
69+
$m = new Z();
70+
$m->a;
71+
72+
echo "\n";
73+
74+
$m = new P();
75+
$m->a;
76+
77+
?>
78+
--EXPECT--
79+
string(12) "Model::__get"
80+
string(8) "T::__get"
81+
Array
82+
(
83+
[0] => Model::__t_get
84+
[1] => Model::__get
85+
)
86+
87+
string(8) "Y::__get"
88+
string(12) "Model::__get"
89+
string(8) "T::__get"
90+
Array
91+
(
92+
[0] => Model::__t_get
93+
[1] => Model::__get
94+
[2] => Y::__get
95+
)
96+
97+
string(8) "Z::__get"
98+
string(10) "Z::__x_get"
99+
string(12) "Model::__get"
100+
string(8) "T::__get"
101+
Array
102+
(
103+
[0] => Model::__t_get
104+
[1] => Model::__get
105+
[2] => Z::__x_get
106+
[3] => Z::__get
107+
)
108+
109+
string(8) "P::__get"
110+
string(10) "P::__t_get"
111+
string(12) "Model::__get"
112+
string(8) "T::__get"
113+
Array
114+
(
115+
[0] => Model::__t_get
116+
[1] => Model::__get
117+
[2] => P::__t_get
118+
[3] => P::__get
119+
)

Zend/tests/readonly_props/array_append_initialization.phpt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ function init() {
1919
var_dump($c->a);
2020
}
2121

22-
(new C)->init();
22+
try {
23+
(new C)->init();
24+
} catch (Error $e) {
25+
echo $e->getMessage(), "\n";
26+
}
2327

2428
try {
2529
init();
@@ -29,8 +33,5 @@ try {
2933

3034
?>
3135
--EXPECT--
32-
array(1) {
33-
[0]=>
34-
int(1)
35-
}
36-
Cannot initialize readonly property C::$a from global scope
36+
Cannot indirectly modify readonly property C::$a
37+
Cannot indirectly modify readonly property C::$a

Zend/tests/readonly_props/gh7942.phpt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--TEST--
2+
GH-7942: Disallow assigning reference to unset readonly property
3+
--FILE--
4+
<?php
5+
6+
class Foo {
7+
public readonly int $bar;
8+
public function __construct(int &$bar) {
9+
$this->bar = &$bar;
10+
}
11+
}
12+
13+
try {
14+
$i = 42;
15+
new Foo($i);
16+
} catch (Error $e) {
17+
echo $e->getMessage(), PHP_EOL;
18+
}
19+
20+
?>
21+
--EXPECT--
22+
Cannot indirectly modify readonly property Foo::$bar

0 commit comments

Comments
 (0)