X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildLocalisationCache.php;h=48602de0f46c63b2f6fef17b33920e4a6f53ebe8;hb=202f695f671bb1b6c25ebec219da348e9935692e;hp=82b362b81728a305dac38f58eca162417c3aae5a;hpb=6593f76927558202414e67d4ee1435c96baea658;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index 82b362b817..48602de0f4 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -29,8 +29,6 @@ * @ingroup Maintenance */ -use MediaWiki\MediaWikiServices; - require_once __DIR__ . '/Maintenance.php'; /** @@ -113,8 +111,9 @@ class RebuildLocalisationCache extends Maintenance { $pid = ( $threads > 1 ) ? pcntl_fork() : -1; if ( $pid === 0 ) { - // Reset services, so we don't re-use connections. - MediaWikiServices::resetChildProcessServices(); + // Child, reseed because there is no bug in PHP: + // https://bugs.php.net/bug.php?id=42465 + mt_srand( getmypid() ); $this->doRebuild( $codes, $lc, $force ); exit( 0 );