Error
- mwversion: 1.44.0-wmf.13
- reqId: 241fa876-813a-49ed-b91b-2236bcbfa54f
- Find reqId in Logstash
[{reqId}] {exception_url} PHP Deprecated: strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecatedImpact
Notes
// Get the file extension from the last chunk $ext = FileBackend::extensionFromPath( $this->mVirtualTempPath ); // Get a 0-byte temp file to perform the concatenation at $tmpFile = MediaWikiServices::getInstance()->getTempFSFileFactory() ->newTempFSFile( 'chunkedupload_', $ext );
$this->mVirtualTempPath is null.
newTempFSFile wants an empty string, not null. I guess on PHP 7.4 FileBackend::extensionFromPath results in a string being returned.