Created
March 1, 2012 15:44
-
-
Save nacin/1950612 to your computer and use it in GitHub Desktop.
Example insanity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class foo { | |
function bar() {} | |
} | |
$GLOBALS['fb'] =& new foo; | |
function foo_bar($buffer) { | |
$GLOBALS['fb']->bar(); | |
return $buffer; | |
} | |
ob_start('foo_bar'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment