--TEST-- Test pathinfo() function: basic functionality --FILE-- --EXPECTF-- *** Testing basic functions of pathinfo() *** -- Iteration 1 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 2 -- string(1) "." string(17) "www.example.co.in" string(2) "in" string(14) "www.example.co" array(4) { ["dirname"]=> string(1) "." ["basename"]=> string(17) "www.example.co.in" ["extension"]=> string(2) "in" ["filename"]=> string(14) "www.example.co" } -- Iteration 3 -- string(13) "/var/www/html" string(12) "example.html" string(4) "html" string(7) "example" array(4) { ["dirname"]=> string(13) "/var/www/html" ["basename"]=> string(12) "example.html" ["extension"]=> string(4) "html" ["filename"]=> string(7) "example" } -- Iteration 4 -- string(4) "/dir" string(11) "test.tar.gz" string(2) "gz" string(8) "test.tar" array(4) { ["dirname"]=> string(4) "/dir" ["basename"]=> string(11) "test.tar.gz" ["extension"]=> string(2) "gz" ["filename"]=> string(8) "test.tar" } -- Iteration 5 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 6 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 7 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 8 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 9 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 10 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 11 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 12 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 13 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { ["dirname"]=> string(%d) "%s/foo" ["basename"]=> string(12) "symlink.link" ["extension"]=> string(4) "link" ["filename"]=> string(7) "symlink" } -- Iteration 14 -- string(1) "." string(1) "." string(0) "" string(0) "" array(4) { ["dirname"]=> string(1) "." ["basename"]=> string(1) "." ["extension"]=> string(0) "" ["filename"]=> string(0) "" } -- Iteration 15 -- string(%d) "%s" string(3) "foo" string(0) "" string(3) "foo" array(3) { ["dirname"]=> string(%d) "%s" ["basename"]=> string(3) "foo" ["filename"]=> string(3) "foo" } -- Iteration 16 -- string(%d) "%s" string(3) "foo" string(0) "" string(3) "foo" array(3) { ["dirname"]=> string(%d) "%s" ["basename"]=> string(3) "foo" ["filename"]=> string(3) "foo" } -- Iteration 17 -- string(%d) "%s/.." string(3) "foo" string(0) "" string(3) "foo" array(3) { ["dirname"]=> string(%d) "%s/.." ["basename"]=> string(3) "foo" ["filename"]=> string(3) "foo" } -- Iteration 18 -- string(6) "../foo" string(3) "bar" string(0) "" string(3) "bar" array(3) { ["dirname"]=> string(6) "../foo" ["basename"]=> string(3) "bar" ["filename"]=> string(3) "bar" } -- Iteration 19 -- string(5) "./foo" string(3) "bar" string(0) "" string(3) "bar" array(3) { ["dirname"]=> string(5) "./foo" ["basename"]=> string(3) "bar" ["filename"]=> string(3) "bar" } -- Iteration 20 -- string(5) "//foo" string(3) "bar" string(0) "" string(3) "bar" array(3) { ["dirname"]=> string(5) "//foo" ["basename"]=> string(3) "bar" ["filename"]=> string(3) "bar" } -- Iteration 21 -- string(5) "~/PHP" string(8) "php5.2.0" string(1) "0" string(6) "php5.2" array(4) { ["dirname"]=> string(5) "~/PHP" ["basename"]=> string(8) "php5.2.0" ["extension"]=> string(1) "0" ["filename"]=> string(6) "php5.2" } -- Iteration 22 -- string(13) "/home/example" string(4) "test" string(0) "" string(4) "test" array(3) { ["dirname"]=> string(13) "/home/example" ["basename"]=> string(4) "test" ["filename"]=> string(4) "test" } -- Iteration 23 -- string(23) "http://httpd.apache.org" string(24) "core.html#acceptpathinfo" string(19) "html#acceptpathinfo" string(4) "core" array(4) { ["dirname"]=> string(23) "http://httpd.apache.org" ["basename"]=> string(24) "core.html#acceptpathinfo" ["extension"]=> string(19) "html#acceptpathinfo" ["filename"]=> string(4) "core" } Done --UEXPECTF-- *** Testing basic functions of pathinfo() *** -- Iteration 1 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 2 -- unicode(1) "." unicode(17) "www.example.co.in" unicode(2) "in" unicode(14) "www.example.co" array(4) { [u"dirname"]=> unicode(1) "." [u"basename"]=> unicode(17) "www.example.co.in" [u"extension"]=> unicode(2) "in" [u"filename"]=> unicode(14) "www.example.co" } -- Iteration 3 -- unicode(13) "/var/www/html" unicode(12) "example.html" unicode(4) "html" unicode(7) "example" array(4) { [u"dirname"]=> unicode(13) "/var/www/html" [u"basename"]=> unicode(12) "example.html" [u"extension"]=> unicode(4) "html" [u"filename"]=> unicode(7) "example" } -- Iteration 4 -- unicode(4) "/dir" unicode(11) "test.tar.gz" unicode(2) "gz" unicode(8) "test.tar" array(4) { [u"dirname"]=> unicode(4) "/dir" [u"basename"]=> unicode(11) "test.tar.gz" [u"extension"]=> unicode(2) "gz" [u"filename"]=> unicode(8) "test.tar" } -- Iteration 5 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 6 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 7 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 8 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 9 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 10 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 11 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 12 -- unicode(%d) "%s/foo" unicode(12) "symlink.link" unicode(4) "link" unicode(7) "symlink" array(4) { [u"dirname"]=> unicode(%d) "%s/foo" [u"basename"]=> unicode(12) "symlink.link" [u"extension"]=> unicode(4) "link" [u"filename"]=> unicode(7) "symlink" } -- Iteration 13 -- string(%d) "%s/foo" string(12) "symlink.link" string(4) "link" string(7) "symlink" array(4) { [u"dirname"]=> string(%d) "%s/foo" [u"basename"]=> string(12) "symlink.link" [u"extension"]=> string(4) "link" [u"filename"]=> string(7) "symlink" } -- Iteration 14 -- unicode(1) "." unicode(1) "." unicode(0) "" unicode(0) "" array(4) { [u"dirname"]=> unicode(1) "." [u"basename"]=> unicode(1) "." [u"extension"]=> unicode(0) "" [u"filename"]=> unicode(0) "" } -- Iteration 15 -- unicode(%d) "%s" unicode(3) "foo" string(0) "" unicode(3) "foo" array(3) { [u"dirname"]=> unicode(%d) "%s" [u"basename"]=> unicode(3) "foo" [u"filename"]=> unicode(3) "foo" } -- Iteration 16 -- unicode(%d) "%s" unicode(3) "foo" string(0) "" unicode(3) "foo" array(3) { [u"dirname"]=> unicode(%d) "%s" [u"basename"]=> unicode(3) "foo" [u"filename"]=> unicode(3) "foo" } -- Iteration 17 -- unicode(%d) "%s/.." unicode(3) "foo" string(0) "" unicode(3) "foo" array(3) { [u"dirname"]=> unicode(%d) "%s/.." [u"basename"]=> unicode(3) "foo" [u"filename"]=> unicode(3) "foo" } -- Iteration 18 -- unicode(6) "../foo" unicode(3) "bar" string(0) "" unicode(3) "bar" array(3) { [u"dirname"]=> unicode(6) "../foo" [u"basename"]=> unicode(3) "bar" [u"filename"]=> unicode(3) "bar" } -- Iteration 19 -- unicode(5) "./foo" unicode(3) "bar" string(0) "" unicode(3) "bar" array(3) { [u"dirname"]=> unicode(5) "./foo" [u"basename"]=> unicode(3) "bar" [u"filename"]=> unicode(3) "bar" } -- Iteration 20 -- unicode(5) "//foo" unicode(3) "bar" string(0) "" unicode(3) "bar" array(3) { [u"dirname"]=> unicode(5) "//foo" [u"basename"]=> unicode(3) "bar" [u"filename"]=> unicode(3) "bar" } -- Iteration 21 -- unicode(5) "~/PHP" unicode(8) "php5.2.0" unicode(1) "0" unicode(6) "php5.2" array(4) { [u"dirname"]=> unicode(5) "~/PHP" [u"basename"]=> unicode(8) "php5.2.0" [u"extension"]=> unicode(1) "0" [u"filename"]=> unicode(6) "php5.2" } -- Iteration 22 -- unicode(13) "/home/example" unicode(4) "test" string(0) "" unicode(4) "test" array(3) { [u"dirname"]=> unicode(13) "/home/example" [u"basename"]=> unicode(4) "test" [u"filename"]=> unicode(4) "test" } -- Iteration 23 -- unicode(23) "http://httpd.apache.org" unicode(24) "core.html#acceptpathinfo" unicode(19) "html#acceptpathinfo" unicode(4) "core" array(4) { [u"dirname"]=> unicode(23) "http://httpd.apache.org" [u"basename"]=> unicode(24) "core.html#acceptpathinfo" [u"extension"]=> unicode(19) "html#acceptpathinfo" [u"filename"]=> unicode(4) "core" } Done