Skip to content

Instantly share code, notes, and snippets.

@fd00
Created August 13, 2012 15:02
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 fd00/3341550 to your computer and use it in GitHub Desktop.
Save fd00/3341550 to your computer and use it in GitHub Desktop.
funcall.php
<?php
fc_add_pre('require_once', 'pre_require_once');
fc_add_post('require_once', 'post_require_once');
require_once 'OS/Guess.php';
function pre_require_once($args)
{
printf("pre require_once (%s)\n", $args[0]);
}
function post_require_once($args, $result, $time)
{
printf("post require_once (%s)\n", $args[0]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment