X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Futils%2FUIDGenerator.php;h=4d5c3af82f62ba30dae9e5333000041f824aae2a;hp=68ef57ae2495879b4af26308afed6b9e378d622f;hb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;hpb=6f680554ceb988f3895184167d5006d722a0afb3 diff --git a/includes/utils/UIDGenerator.php b/includes/utils/UIDGenerator.php index 68ef57ae24..4d5c3af82f 100644 --- a/includes/utils/UIDGenerator.php +++ b/includes/utils/UIDGenerator.php @@ -53,7 +53,7 @@ class UIDGenerator { } // Try to get some ID that uniquely identifies this machine (RFC 4122)... if ( !preg_match( '/^[0-9a-f]{12}$/i', $nodeId ) ) { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); if ( wfIsWindows() ) { // https://technet.microsoft.com/en-us/library/bb490913.aspx $csv = trim( wfShellExec( 'getmac /NH /FO CSV' ) ); @@ -67,7 +67,7 @@ class UIDGenerator { wfShellExec( '/sbin/ifconfig -a' ), $m ); $nodeId = isset( $m[1] ) ? str_replace( ':', '', $m[1] ) : ''; } - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( !preg_match( '/^[0-9a-f]{12}$/i', $nodeId ) ) { $nodeId = MWCryptRand::generateHex( 12, true ); $nodeId[1] = dechex( hexdec( $nodeId[1] ) | 0x1 ); // set multicast bit @@ -364,7 +364,7 @@ class UIDGenerator { $counter = null; // post-increment persistent counter value - // Use APC/eAccelerator/xcache if requested, available, and not in CLI mode; + // Use APC/etc if requested, available, and not in CLI mode; // Counter values would not survive accross script instances in CLI mode. $cache = null; if ( ( $flags & self::QUICK_VOLATILE ) && !wfIsCLI() ) {