--TEST-- Test pathinfo() function: basic functionality --FILE-- --EXPECTF-- *** 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