X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildLocalisationCache.php;h=48602de0f46c63b2f6fef17b33920e4a6f53ebe8;hb=67f11f117464c010a5b7fac754321754da5e14cc;hp=82b362b81728a305dac38f58eca162417c3aae5a;hpb=0d0059d36e7494792378c020f5de6033985c3637;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 );