Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f45c869

Browse files
Fix test 14-array-unset -- php8.1 now hardened unset on absent indexes
1 parent 9d501be commit f45c869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎common.inc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ function test_14_Array_Unset()
406406
$time_start = get_microtime();
407407
for ($n = 0; $n < $arrayTestLoopLimit; ++$n) {
408408
$x = $xx;
409-
for ($i = $arrayDimensionLimit; $i >= 0; $i--) {
410-
for ($j = 0; $j <= $arrayDimensionLimit; $j++) {
409+
for ($i = $arrayDimensionLimit-1; $i >= 0; $i--) {
410+
for ($j = 0; $j < $arrayDimensionLimit; $j++) {
411411
unset($x[$i][$j]);
412412
}
413413
unset($x[$i]);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /