Do we care about php < 5.2?
If not this could be simplified to
```php
register_shutdown_function( function() {
  register_shutdown_function('xhprof_shutdown');
} );
```