krakjoe / apcu

APCu - APC User Cache
Other
964 stars 196 forks source link

Startup errors with PHP 8.1.0RC1 #423

Closed ettoredn closed 3 years ago

ettoredn commented 3 years ago
/usr/local/bin # php -v
PHP Deprecated:  Return type of APCUIterator::current() should either be compatible with Iterator::current(): mixed, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
PHP Deprecated:  Return type of APCUIterator::next() should either be compatible with Iterator::next(): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
PHP Deprecated:  Return type of APCUIterator::key() should either be compatible with Iterator::key(): mixed, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
PHP Deprecated:  Return type of APCUIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
PHP Deprecated:  Return type of APCUIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
PHP 8.1.0RC1 (cli) (built: Sep 13 2021 20:00:47) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0RC1, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.0RC1, Copyright (c), by Zend Technologies
ettoredn commented 3 years ago

Nevermind. I was using 5.1.20 and I just noticed this is likely fiex in https://github.com/krakjoe/apcu/commit/ddc5a8b86f88495aa2da1e9df2f6d187c420c3c1