Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1003651: php-horde-auth: (autopkgtest) needs update for php8.1: deprecation warnings on stderr

19 views
Skip to first unread message

Mike Gabriel

unread,
Jul 16, 2022, 9:40:04 AM7/16/22
to
Control: close -1
Control: fixed 2.2.2-9

Hi,

On Do 13 Jan 2022 10:09:07 CET, Paul Gevers wrote:

> Source: php-horde-auth
> Version: 2.2.2-8
> Severity: serious
> X-Debbugs-CC: debi...@lists.debian.org
> Tags: sid bookworm
> User: debi...@lists.debian.org
> Usertags: needs-update
> Control: affects -1 src:php-defaults
>
> Dear maintainer(s),
>
> We are in the transition of replacing php7.4 with php8.1 [0]. With a
> recent upload of php-defaults the autopkgtest of php-horde-auth
> fails in testing when that autopkgtest is run with the binary
> packages of php-defaults from unstable. It passes when run with only
> packages from testing. In tabular form:
>
> pass fail
> php-defaults from testing 92
> php-horde-auth from testing 2.2.2-8
> versioned deps from testing from unstable
> all others from testing from testing
>
> I copied some of the output at the bottom of this report.
>
> Currently this regression is blocking the migration of php-defaults
> to testing [1]. https://www.php.net/ChangeLog-8.php list the changes
> since 7.4 and may help to identify what needs to be updated.
>
> The test itself passes, but the autopkgtest fails because of
> deprecation warnings on stderr. Output on stderr makes autopkgtest
> fail by default, unless `allow-stderr` is added to the set of
> restrictions. As a flood of deprecation warnings in server logs my
> be very unwanted, I'm not saying that adding the restriction to
> autopkgtest is the right answer to this issue, but because of the
> php8.1 transition, it needs to be resolved one way or the other.
>
> More information about this bug and the reason for filing it can be found on
> https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
>
> Paul
>
> [0] https://bugs.debian.org/976811
> [1] https://qa.debian.org/excuses.php?package=php-defaults
>
> https://ci.debian.net/data/autopkgtest/testing/amd64/p/php-horde-auth/18254589/log.gz
>
> PHPUnit 9.5.11 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.1.1
> Configuration:
> /tmp/autopkgtest-lxc.2fo4kd22/downtmp/build.jN3/src/Horde_Auth-2.2.2/test/Horde/Auth/phpunit.xml
> Warning: Your XML configuration validates against a deprecated schema.
> Suggestion: Migrate your XML configuration using
> "--migrate-configuration"!
>
> Warning: Test case class not matching filename is deprecated
> in
> /tmp/autopkgtest-lxc.2fo4kd22/downtmp/build.jN3/src/Horde_Auth-2.2.2/test/Horde/Auth/Unit/AuthTest.php
> Class name was 'Horde_Auth_Unit_AuthTest', expected 'AuthTest'
> Warning: Test case class not matching filename is deprecated
> in
> /tmp/autopkgtest-lxc.2fo4kd22/downtmp/build.jN3/src/Horde_Auth-2.2.2/test/Horde/Auth/Unit/KolabTest.php
> Class name was 'Horde_Auth_Unit_KolabTest', expected
> 'KolabTest'
> Warning: Test case class not matching filename is deprecated
> in
> /tmp/autopkgtest-lxc.2fo4kd22/downtmp/build.jN3/src/Horde_Auth-2.2.2/test/Horde/Auth/Unit/PasswdTest.php
> Class name was 'Horde_Auth_Unit_PasswdTest', expected
> 'PasswdTest'
> Warning: Test case class not matching filename is deprecated
> in
> /tmp/autopkgtest-lxc.2fo4kd22/downtmp/build.jN3/src/Horde_Auth-2.2.2/test/Horde/Auth/Unit/Sql/Pdo/SqliteLockTest.php
> Class name was
> 'Horde_Auth_Unit_Sql_Pdo_SqliteLockTest', expected 'SqliteLockTest'
> Warning: Test case class not matching filename is deprecated
> in
> /tmp/autopkgtest-lxc.2fo4kd22/downtmp/build.jN3/src/Horde_Auth-2.2.2/test/Horde/Auth/Unit/Sql/Pdo/SqliteTest.php
> Class name was 'Horde_Auth_Unit_Sql_Pdo_SqliteTest',
> expected 'SqliteTest'
>
> ....................................................PHP Deprecated:
> Return type of Horde_Support_Stub::offsetExists($offset) should
> either be compatible with ArrayAccess::offsetExists(mixed $offset):
> bool, or the #[\ReturnTypeWillChange] attribute should be used to
> temporarily suppress the notice in
> /usr/share/php/Horde/Support/Stub.php on line 111
> PHP Deprecated: Return type of
> Horde_Support_Stub::offsetGet($offset) should either be compatible
> with ArrayAccess::offsetGet(mixed $offset): mixed, or the
> #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in /usr/share/php/Horde/Support/Stub.php on line
> 98
> PHP Deprecated: Return type of
> Horde_Support_Stub::offsetSet($offset, $value) should either be
> compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value):
> void, or the #[\ReturnTypeWillChange] attribute should be used to
> temporarily suppress the notice in
> /usr/share/php/Horde/Support/Stub.php on line 105
> PHP Deprecated: Return type of
> Horde_Support_Stub::offsetUnset($offset) should either be compatible
> with ArrayAccess::offsetUnset(mixed $offset): void, or the
> #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in /usr/share/php/Horde/Support/Stub.php on line
> 118
> PHP Deprecated: Return type of Horde_Support_Stub::count() should
> either be compatible with Countable::count(): int, or the
> #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in /usr/share/php/Horde/Support/Stub.php on line
> 126
> PHP Deprecated: Return type of Horde_Support_Stub::getIterator()
> should either be compatible with IteratorAggregate::getIterator():
> Traversable, or the #[\ReturnTypeWillChange] attribute should be
> used to temporarily suppress the notice in
> /usr/share/php/Horde/Support/Stub.php on line 135
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_TableDefinition::offsetExists($offset) should
> either be compatible with ArrayAccess::offsetExists(mixed $offset):
> bool, or the #[\ReturnTypeWillChange] attribute should be used to
> temporarily suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/TableDefinition.php on line 260
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_TableDefinition::offsetGet($offset) should
> either be compatible with ArrayAccess::offsetGet(mixed $offset):
> mixed, or the #[\ReturnTypeWillChange] attribute should be used to
> temporarily suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/TableDefinition.php on line 274
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_TableDefinition::offsetSet($offset, $value)
> should either be compatible with ArrayAccess::offsetSet(mixed
> $offset, mixed $value): void, or the #[\ReturnTypeWillChange]
> attribute should be used to temporarily suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/TableDefinition.php on line 293
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_TableDefinition::offsetUnset($offset) should
> either be compatible with ArrayAccess::offsetUnset(mixed $offset):
> void, or the #[\ReturnTypeWillChange] attribute should be used to
> temporarily suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/TableDefinition.php on line 307
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_TableDefinition::getIterator() should either
> be compatible with IteratorAggregate::getIterator(): Traversable, or
> the #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/TableDefinition.php on line 321
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_Result::current() should either be compatible
> with Iterator::current(): mixed, or the #[\ReturnTypeWillChange]
> attribute should be used to temporarily suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/Result.php on line 131
> PHP Deprecated: Return type of Horde_Db_Adapter_Base_Result::next()
> should either be compatible with Iterator::next(): void, or the
> #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/Result.php on line 158
> PHP Deprecated: Return type of Horde_Db_Adapter_Base_Result::key()
> should either be compatible with Iterator::key(): mixed, or the
> #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/Result.php on line 144
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_Result::valid() should either be compatible
> with Iterator::valid(): bool, or the #[\ReturnTypeWillChange]
> attribute should be used to temporarily suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/Result.php on line 189
> PHP Deprecated: Return type of
> Horde_Db_Adapter_Base_Result::rewind() should either be compatible
> with Iterator::rewind(): void, or the #[\ReturnTypeWillChange]
> attribute should be used to temporarily suppress the notice in
> /usr/share/php/Horde/Db/Adapter/Base/Result.php on line 111
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> PHP Deprecated: substr(): Passing null to parameter #1 ($string) of
> type string is deprecated in
> /usr/share/php/Horde/Db/Adapter/Sqlite/Column.php on line 79
> ............. 65 / 69 ( 94%)
> .... 69
> / 69 (100%)
>
> Time: 00:00.054, Memory: 8.00 MB
>
> OK (69 tests, 71 assertions)
> autopkgtest [05:11:31]: test phpunit


This issue should be resolved since upload of 2.2.2-9 of php-horde-auth.

However, the above unit test PHP deprecations to stderr have been
addressed in other packages:

php-horde-db 2.4.1-3 (however, php-horde-db is not yet
autopkgtest-clean again)
php-horde-support 2.2.2-1

Greets
Mike
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31
mail: mike.g...@das-netzwerkteam.de, http://das-netzwerkteam.de

0 new messages