#1150492 roundcube: FTBFS with PHP 8.5: TypeError in test_array_first

Package:
roundcube
Source:
roundcube
Submitter:
Viktor Pashaiev
Date:
2026-10-20 12:19:01 UTC
Severity:
normal
Tags:
#1150492#5
Date:
2026-10-10 07:54:39 UTC
From:
To:
Dear Maintainer,

Under PHP 8.5, array_first(array $array) is a strictly typed native function.
Framework_Bootstrap::test_array_first asserted that non-array arguments
(false, string) return null, which now throws TypeError:
  TypeError: array_first(): Argument #1 ($array) must be of type array, false given

This causes the package test suite to fail under PHP 8.5.

Upstream resolved this in commit 060fc95672498993d37e57f74d146a087eb572e0
by dropping the non-array assertions from the test.

Attached is a patch backporting the upstream fix.

Thanks,
Viktor Pashaiev

#1150492#10
Date:
2026-10-19 15:28:50 UTC
From:
To:
Hi,

AFAICT Roundcube 1.6.x is not officially supported with PHP 8.5, so I'm
lowering the severity accordingly.  I hope to find time to finalize
packaging 1.7.x for forky.