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
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(chr(-1)));
17
18echo "Done\n";
19--EXPECT--
20string(0) ""
21Done
22