Page MenuHomePhabricator

PHP Deprecated: Brick\Math\BigInteger implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Brick\Math\BigInteger implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.14/vendor/brick/math/src/BigInteger.php(22)
#0/srv/mediawiki/php-1.44.0-wmf.14/vendor/brick/math/src/BigInteger.php(22)MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.14/vendor/composer/ClassLoader.php(576)include(string)
#2/srv/mediawiki/php-1.44.0-wmf.14/vendor/composer/ClassLoader.php(427)Composer\Autoload\{closure}(string)
#3/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Utils.php(42)Composer\Autoload\ClassLoader->loadClass(string)
#4/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Utils.php(32)CBOR\Utils::hexToBigInteger(string)
#5/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Utils.php(27)CBOR\Utils::binToBigInteger(string)
#6/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Decoder.php(131)CBOR\Utils::binToInt(string)
#7/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Decoder.php(120)CBOR\Decoder->processFinite(Webauthn\StringStream, int, int, string)
#8/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Decoder.php(150)CBOR\Decoder->process(Webauthn\StringStream, bool)
#9/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Decoder.php(120)CBOR\Decoder->processFinite(Webauthn\StringStream, int, int, null)
#10/srv/mediawiki/php-1.44.0-wmf.14/vendor/spomky-labs/cbor-php/src/Decoder.php(92)CBOR\Decoder->process(Webauthn\StringStream, bool)
#11/srv/mediawiki/php-1.44.0-wmf.14/vendor/web-auth/webauthn-lib/src/AuthenticatorAssertionResponseValidator.php(138)CBOR\Decoder->decode(Webauthn\StringStream)
#12/srv/mediawiki/php-1.44.0-wmf.14/extensions/WebAuthn/src/Key/WebAuthnKey.php(500)Webauthn\AuthenticatorAssertionResponseValidator->check(string, Webauthn\AuthenticatorAssertionResponse, Webauthn\PublicKeyCredentialRequestOptions, MediaWiki\Extension\WebAuthn\Request, string)
#13/srv/mediawiki/php-1.44.0-wmf.14/extensions/WebAuthn/src/Key/WebAuthnKey.php(296)MediaWiki\Extension\WebAuthn\Key\WebAuthnKey->authenticationCeremony(string, Webauthn\PublicKeyCredentialRequestOptions, MediaWiki\Extension\OATHAuth\OATHUser)
#14/srv/mediawiki/php-1.44.0-wmf.14/extensions/WebAuthn/src/Module/WebAuthn.php(80)MediaWiki\Extension\WebAuthn\Key\WebAuthnKey->verify(array, MediaWiki\Extension\OATHAuth\OATHUser)
#15/srv/mediawiki/php-1.44.0-wmf.14/extensions/WebAuthn/src/Authenticator.php(225)MediaWiki\Extension\WebAuthn\Module\WebAuthn->verify(MediaWiki\Extension\OATHAuth\OATHUser, array)
#16/srv/mediawiki/php-1.44.0-wmf.14/extensions/WebAuthn/src/Auth/WebAuthnSecondaryAuthenticationProvider.php(88)MediaWiki\Extension\WebAuthn\Authenticator->continueAuthentication(array)
#17/srv/mediawiki/php-1.44.0-wmf.14/extensions/OATHAuth/src/Auth/SecondaryAuthenticationProvider.php(65)MediaWiki\Extension\WebAuthn\Auth\WebAuthnSecondaryAuthenticationProvider->continueSecondaryAuthentication(MediaWiki\User\User, array)
#18/srv/mediawiki/php-1.44.0-wmf.14/includes/auth/AuthManager.php(791)MediaWiki\Extension\OATHAuth\Auth\SecondaryAuthenticationProvider->continueSecondaryAuthentication(MediaWiki\User\User, array)
#19/srv/mediawiki/php-1.44.0-wmf.14/includes/specialpage/AuthManagerSpecialPage.php(392)MediaWiki\Auth\AuthManager->continueAuthentication(array)
#20/srv/mediawiki/php-1.44.0-wmf.14/includes/specialpage/AuthManagerSpecialPage.php(524)MediaWiki\SpecialPage\AuthManagerSpecialPage->performAuthenticationStep(string, array)
#21[internal function]MediaWiki\SpecialPage\AuthManagerSpecialPage->handleFormSubmit(array, MediaWiki\HTMLForm\CodexHTMLForm)
#22/srv/mediawiki/php-1.44.0-wmf.14/includes/htmlform/HTMLForm.php(822)call_user_func(array, array, MediaWiki\HTMLForm\CodexHTMLForm)
#23/srv/mediawiki/php-1.44.0-wmf.14/includes/specialpage/AuthManagerSpecialPage.php(455)MediaWiki\HTMLForm\HTMLForm->trySubmit()
#24/srv/mediawiki/php-1.44.0-wmf.14/includes/specialpage/LoginSignupSpecialPage.php(404)MediaWiki\SpecialPage\AuthManagerSpecialPage->trySubmit()
#25/srv/mediawiki/php-1.44.0-wmf.14/includes/specialpage/SpecialPage.php(729)MediaWiki\SpecialPage\LoginSignupSpecialPage->execute(null)
#26/srv/mediawiki/php-1.44.0-wmf.14/includes/specialpage/SpecialPageFactory.php(1735)MediaWiki\SpecialPage\SpecialPage->run(null)
#27/srv/mediawiki/php-1.44.0-wmf.14/includes/actions/ActionEntryPoint.php(503)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#28/srv/mediawiki/php-1.44.0-wmf.14/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#29/srv/mediawiki/php-1.44.0-wmf.14/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#30/srv/mediawiki/php-1.44.0-wmf.14/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#31/srv/mediawiki/w/index.php(3)require(string)
#32{main}
Impact
Notes

We're using https://packagist.org/packages/brick/math#0.8.17 currently.

https://github.com/brick/math/pull/60 is the upstream fix

We need https://packagist.org/packages/brick/math#0.9.3...

Details

Request URL
https://meta.wikimedia.org/w/index.php?returnto=*&returntoquery=*&title=*
Related Changes in Gerrit:

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Change #1116792 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/vendor@master] Upgrading brick/math (0.8.17 => 0.9.3)

https://gerrit.wikimedia.org/r/1116792

Change #1116792 merged by jenkins-bot:

[mediawiki/vendor@master] Upgrading brick/math (0.8.17 => 0.9.3)

https://gerrit.wikimedia.org/r/1116792

Reedy claimed this task.