1--TEST--
2Test basename() function : usage variations with invalid paths
3--SKIPIF--
4<?php
5if((substr(PHP_OS, 0, 3) == "WIN"))
6  die('skip not for Windows"');
7?>
8--FILE--
9<?php
10setlocale(LC_CTYPE, "C");
11var_dump(bin2hex(basename("\xff")));
12var_dump(bin2hex(basename("a\xffb")));
13
14echo "Done\n";
15?>
16--EXPECT--
17string(2) "ff"
18string(6) "61ff62"
19Done
20