You’re probably calling the function before it’s defined – why not hook into it?
Something like:
function someFunction() {
require( '/full/path/to/wp-blog-header.php' );
}
add_action('some_hook', 'someFunction');
Note: You might try the plugins_loaded
hook.