Page MenuHomePhabricator

Test failures from PHPSessionHandlerTest in PHP 7.2
Closed, DuplicatePublic

Description

  • UnexpectedValueException: MediaWiki\Session\PHPSessionHandler::open: Wrong instance called!
  • Warning: ini_set(): Headers already sent.
20) MediaWiki\Session\PHPSessionHandlerTest::testSessionHandling with data set #2 ('php_serialize')

UnexpectedValueException: MediaWiki\Session\PHPSessionHandler::open: Wrong instance called!


/home/travis/build/wikimedia/mediawiki/includes/session/PHPSessionHandler.php:201

/home/travis/build/wikimedia/mediawiki/tests/phpunit/includes/session/PHPSessionHandlerTest.php:149

/home/travis/build/wikimedia/mediawiki/tests/phpunit/MediaWikiTestCase.php:416

/home/travis/build/wikimedia/mediawiki/maintenance/doMaintenance.php:94


21) MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession

UnexpectedValueException: MediaWiki\Session\PHPSessionHandler::open: Wrong instance called!


/home/travis/build/wikimedia/mediawiki/includes/session/PHPSessionHandler.php:201

/home/travis/build/wikimedia/mediawiki/vendor/mediawiki/at-ease/src/Functions.php:72

/home/travis/build/wikimedia/mediawiki/includes/session/SessionBackend.php:767

/home/travis/build/wikimedia/mediawiki/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php:72

/home/travis/build/wikimedia/mediawiki/tests/phpunit/includes/session/SessionBackendTest.php:854

/home/travis/build/wikimedia/mediawiki/tests/phpunit/MediaWikiTestCase.php:416

/home/travis/build/wikimedia/mediawiki/maintenance/doMaintenance.php:94


22) MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession

UnexpectedValueException: MediaWiki\Session\PHPSessionHandler::open: Wrong instance called!


/home/travis/build/wikimedia/mediawiki/includes/session/PHPSessionHandler.php:201

/home/travis/build/wikimedia/mediawiki/vendor/mediawiki/at-ease/src/Functions.php:72

/home/travis/build/wikimedia/mediawiki/tests/phpunit/includes/session/SessionBackendTest.php:894

/home/travis/build/wikimedia/mediawiki/tests/phpunit/MediaWikiTestCase.php:416

/home/travis/build/wikimedia/mediawiki/maintenance/doMaintenance.php:94


23) MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession

UnexpectedValueException: MediaWiki\Session\PHPSessionHandler::open: Wrong instance called!


/home/travis/build/wikimedia/mediawiki/includes/session/PHPSessionHandler.php:201

/home/travis/build/wikimedia/mediawiki/vendor/mediawiki/at-ease/src/Functions.php:72

/home/travis/build/wikimedia/mediawiki/tests/phpunit/includes/session/SessionBackendTest.php:932

/home/travis/build/wikimedia/mediawiki/tests/phpunit/MediaWikiTestCase.php:416

/home/travis/build/wikimedia/mediawiki/maintenance/doMaintenance.php:94


24) MediaWiki\Session\SessionManagerTest::testGetGlobalSession

UnexpectedValueException: MediaWiki\Session\PHPSessionHandler::open: Wrong instance called!


/home/travis/build/wikimedia/mediawiki/includes/session/PHPSessionHandler.php:201

/home/travis/build/wikimedia/mediawiki/vendor/mediawiki/at-ease/src/Functions.php:72

/home/travis/build/wikimedia/mediawiki/includes/session/SessionBackend.php:767

/home/travis/build/wikimedia/mediawiki/includes/session/SessionBackend.php:690

/home/travis/build/wikimedia/mediawiki/includes/session/SessionBackend.php:596

/home/travis/build/wikimedia/mediawiki/vendor/wikimedia/scoped-callback/src/ScopedCallback.php:76

/home/travis/build/wikimedia/mediawiki/vendor/wikimedia/scoped-callback/src/ScopedCallback.php:56

/home/travis/build/wikimedia/mediawiki/includes/session/SessionManager.php:885

/home/travis/build/wikimedia/mediawiki/includes/session/SessionManager.php:195

/home/travis/build/wikimedia/mediawiki/includes/WebRequest.php:735

/home/travis/build/wikimedia/mediawiki/tests/phpunit/includes/session/SessionManagerTest.php:76

/home/travis/build/wikimedia/mediawiki/tests/phpunit/MediaWikiTestCase.php:416

/home/travis/build/wikimedia/mediawiki/maintenance/doMaintenance.php:94


25) MediaWiki\Session\SessionTest::testSecrets

unserialize(): Error at offset 0 of 6 bytes


/home/travis/build/wikimedia/mediawiki/includes/session/Session.php:591

/home/travis/build/wikimedia/mediawiki/tests/phpunit/includes/session/SessionTest.php:369

/home/travis/build/wikimedia/mediawiki/tests/phpunit/MediaWikiTestCase.php:416

/home/travis/build/wikimedia/mediawiki/maintenance/doMaintenance.php:94

Event Timeline

Reedy created this task.Dec 8 2017, 2:51 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 8 2017, 2:51 AM
Reedy moved this task from Unsorted to PHP 7.2 on the [DO NOT USE] NewPHP board.Dec 8 2017, 2:56 AM
Krinkle renamed this task from Session test failures in PHP 7.2 to Session test failures from PHPSessionHandlerTest in PHP 7.2.Jun 25 2018, 4:26 PM
Krinkle updated the task description. (Show Details)
Krinkle moved this task from Inbox to PHPUnit on the MediaWiki-Core-Testing board.
Krinkle renamed this task from Session test failures from PHPSessionHandlerTest in PHP 7.2 to Test failures from PHPSessionHandlerTest in PHP 7.2.Jun 25 2018, 4:28 PM
Krinkle removed a project: php-session-serializer.
Krinkle added subscribers: Paladox, demon, gerritbot and 3 others.
Aklapper removed a subscriber: Anomie.Oct 16 2020, 5:39 PM