Ticket #21650: 21650-try-catch-for-real.diff
File 21650-try-catch-for-real.diff, 690 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 ) ) / 1024, 2 ) . 'k )</li>'; 646 } 643 647 } 644 648 echo '</ul>'; 645 649 }