Ticket #21650: 21650-try-catch.fixed.diff
File 21650-try-catch.fixed.diff, 696 bytes (added by , 10 years ago) |
---|
-
cache.php
639 639 echo "</p>"; 640 640 echo '<ul>'; 641 641 foreach ($this->cache as $group => $cache) { 642 echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>'; 642 try { 643 echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>'; 644 } catch( Exception $e ) { 645 echo "<li><strong>Group:</strong> $group - ( " . number_format( strlen( print_r( $cache, true ) ) / 1024, 2 ) . 'k )</li>'; 646 } 643 647 } 644 648 echo '</ul>'; 645 649 }