Page MenuHomePhabricator

Fix a PHP 8.1 strlen() issue with "mysql.pass" configuration
ClosedPublic

Authored by epriestley on Dec 16 2021, 11:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 3:23 AM
Unknown Object (File)
Fri, Dec 20, 9:12 PM
Unknown Object (File)
Sun, Dec 15, 10:43 AM
Unknown Object (File)
Wed, Dec 11, 8:11 PM
Unknown Object (File)
Mon, Dec 9, 2:46 PM
Unknown Object (File)
Sat, Dec 7, 3:14 PM
Unknown Object (File)
Fri, Dec 6, 3:25 AM
Unknown Object (File)
Mon, Dec 2, 2:10 PM
Subscribers
None

Details

Summary

Ref T13588. This configuration value may not be set.

Also fix an issue in bin/storage and whatever else I hit between now and this diff actually uploading.

Also fix a MySQLi report mode difference, beginning in PHP 8.1.

Also update a bunch of "static" property usage in Lisk.

Test Plan

Ran bin/files ... locally under PHP 8.1.

Diff Detail

Repository
rP Phabricator
Branch
php81
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25617
Build 35437: Run Core Tests
Build 35436: arc lint + arc unit

Unit TestsFailed

TimeTest
11 msPhabricatorHandlePoolTestCase::testHandlePools
EXCEPTION (PhutilAggregateException): Multiple exceptions were raised during test execution. - Execution: RuntimeException: strlen(): Passing null to parameter #1 ($string) of type string is deprecated - Shutdown: Exception: Process exited with an open transaction! The transaction will be implicitly rolled back. Calls to openTransaction() must always be paired with a call to saveTransaction() or killTransaction().
0 msAlmanacNamesTestCase::testServiceOrDeviceNames
30 assertions passed.
0 msAlmanacServiceTypeTestCase::testGetAllServiceTypes
1 assertion passed.
0 msAphrontHTTPHeaderParserTestCase::testHeaderParser
18 assertions passed.
0 msAphrontHTTPSinkTestCase::testHTTPHeaderNames
2 assertions passed.
View Full Test Results (1 Failed · 452 Passed · 2 Skipped)

Event Timeline

  • Add annotations for interfaces implemented by PhabricatorHandleList.
  • Fix a strlen() in query construction.
  • Correct behavior in query clause construction.
  • Fix a piece of user initializing code for PHP 8.1.
  • Fix a PHP 8.1 issue in user querying.
  • Fix a PHP 8.1 check in local disk storage engine code.
  • Fix a PHP 8.1 issue in application search code.
  • Fix another random PHP 8.1 issue.
This revision was not accepted when it landed; it landed in state Needs Review.Dec 16 2021, 11:24 PM
This revision was automatically updated to reflect the committed changes.