--TEST-- highlight_file() tests --INI-- highlight.string=#DD0000 highlight.comment=#FF9900 highlight.keyword=#007700 highlight.default=#0000BB highlight.html=#000000 allow_url_include=1 allow_url_fopen=1 --FILE-- ')); var_dump(highlight_file('data:,')); $data = ' '; file_put_contents($filename, $data); var_dump(highlight_file($filename)); @unlink($filename); echo "Done\n"; ?> --EXPECTF-- Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 Warning: highlight_file(%shighlight_file.dat): Failed to open stream: No such file or directory in %s on line %d Warning: highlight_file(): Failed opening '%shighlight_file.dat' for highlighting in %s on line %d bool(false) <?php echo "test"?> bool(true) <?php echo "test ?> bool(true)
<?php
class test {
    public 
$var 1;
    private function 
foo() { echo "foo"; }
    public function 
bar() { var_dump(test::foo()); }
}
?>
bool(true) Done