basename_bug66395-win32.phpt 378 B

12345678910111213141516
  1. --TEST--
  2. basename bug #66395
  3. --SKIPIF--
  4. <?php if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip Windows only basename tests'); } ?>
  5. --FILE--
  6. <?php
  7. echo basename("c:file.txt") . "\n";
  8. echo basename("d:subdir\\file.txt") . "\n";
  9. echo basename("y:file.txt", ".txt") . "\n";
  10. echo basename("notdriveletter:file.txt") . "\n";
  11. ?>
  12. --EXPECT--
  13. file.txt
  14. file.txt
  15. file
  16. notdriveletter:file.txt