r91558 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91557‎ | r91558 | r91559 >
Date:16:29, 6 July 2011
Author:ialex
Status:ok
Tags:
Comment:
Removed usage of error suppression operator
Modified paths:
  • /trunk/phase3/includes/objectcache/SqlBagOStuff.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/objectcache/SqlBagOStuff.php
@@ -361,7 +361,9 @@
362362 */
363363 protected function unserialize( $serial ) {
364364 if ( function_exists( 'gzinflate' ) ) {
365 - $decomp = @gzinflate( $serial );
 365+ wfSuppressWarnings();
 366+ $decomp = gzinflate( $serial );
 367+ wfRestoreWarnings();
366368
367369 if ( false !== $decomp ) {
368370 $serial = $decomp;

Status & tagging log