test_head();
define("TEMPLATEPATH", "../");
test_head();
?>
<style type="text/css" media="screen">
.wp_syntax td div, .wp_syntax div div {
  padding: 0;
}
</style>
</head>

<body>
<div style="width:50%;">
  <h1>Vanilla, without other filters</h1>
<?php 
test_all();
?>

  <h1>Modified, with other filters</h1>
<?php 
test_all_with_other_filters();
?>
</div>
</body>
</html>


<?php 
function amp_exposer($content)
{
    return str_replace("&", "&amp;", $content);
Example #2
0
class X extends W
{
    public function bar($s)
    {
        $s();
    }
}
class Y extends X
{
}
function test($str)
{
    X::bar($str);
    (new X())->bar($str);
    Y::bar($str);
    (new Y())->bar($str);
}
function test_all($str)
{
    test("X::{$str}");
    echo "----\n";
    test("self::{$str}");
    echo "----\n";
    test("parent::{$str}");
    echo "----\n";
    test("static::{$str}");
    echo "====\n";
}
test_all("stc");
test_all("dyn");
X::bar("W::non");