Reading time as lines-of-code per hour

I was wondering how many lines of code it was possible to read per hour. I found on the Wikipedia code review article the claim: “Code review rates should be between 200 and 400 lines of code per hour.” They say any faster is too fast to find errors. I also found on the Wikipedia article source lines of code that a contemporary Linux kernel has 20 million lines-of-code. So if you didn’t sleep and read code 24×7 you could read the Linux kernel in a little over 5 years…

PHP finally blocks not run on exit

I confirmed with the following code that if you call ‘exit’ withing a ‘try’ block the ‘finally’ block does *not* execute. That’s probably what you would expect. But now we know.

register_shutdown_function( 'handle_shutdown' );

try {

  exit;

}
catch ( Exception $ex ) {

  echo "caught...\n";

}
finally {

  echo "finally...\n";

}

function handle_shutdown() {

  echo "shutdown...\n";

}