Skip to content

Instantly share code, notes, and snippets.

@cweagans
Created September 15, 2015 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cweagans/9df375cb217b1fe79367 to your computer and use it in GitHub Desktop.
Save cweagans/9df375cb217b1fe79367 to your computer and use it in GitHub Desktop.
<?php
namespace My\Something {
class MyClass {
public static function my_function() {
echo "shutdown function called";
}
}
}
namespace {
echo "running";
register_shutdown_function('My\Something\MyClass::my_function');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment