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