Index: trunk/phase3/includes/media/SVG.php |
— | — | @@ -216,7 +216,9 @@ |
217 | 217 | } |
218 | 218 | |
219 | 219 | function unpackMetadata( $metadata ) { |
| 220 | + wfSuppressWarnings(); |
220 | 221 | $unser = @unserialize( $metadata ); |
| 222 | + wfRestoreWarnings(); |
221 | 223 | if ( isset( $unser['version'] ) && $unser['version'] == self::SVG_METADATA_VERSION ) { |
222 | 224 | return $unser; |
223 | 225 | } else { |
Index: trunk/phase3/includes/media/Bitmap.php |
— | — | @@ -682,7 +682,9 @@ |
683 | 683 | if ( !$data ) { |
684 | 684 | return 0; |
685 | 685 | } |
| 686 | + wfSuppressWarnings(); |
686 | 687 | $data = unserialize( $data ); |
| 688 | + wfRestoreWarnings(); |
687 | 689 | if ( isset( $data['Orientation'] ) ) { |
688 | 690 | # See http://sylvana.net/jpegcrop/exif_orientation.html |
689 | 691 | switch ( $data['Orientation'] ) { |