1--TEST--
2Test basename() function : usage variations with invalid paths
3--SKIPIF--
4<?php
5if((substr(PHP_OS, 0, 3) != "WIN"))
6  die('skip Run only on Windows"');
7?>
8--FILE--
9<?php
10/* Prototype: string basename ( string $path [, string $suffix] );
11   Description: Given a string containing a path to a file,
12                this function will return the base name of the file.
13                If the filename ends in suffix this will also be cut off.
14*/
15
16var_dump(basename("\377"));
17
18echo "Done\n";
19--EXPECTF--
20string(1) "%c"
21Done
22