summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/htdocs/php/dirname.php
blob: 26f584501f2c4e3df16951a6314c3880e204c5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

        function check_dirname($path)
        {
                print "dirname($path) == " . dirname($path) . "\n";
        }

        check_dirname("/foo/");
        check_dirname("/foo");
        check_dirname("/foo/bar");
        check_dirname("d:\\foo\\bar.inc");
        check_dirname("/");
        check_dirname(".../foo");
        check_dirname("./foo");
        check_dirname("foobar///");
        check_dirname("c:\\foo");
?>