Lines Matching refs:basename
2 Test basename() function : error conditions
5 /* Prototype: string basename ( string $path [, string $suffix] );
12 var_dump( basename() );
15 var_dump( basename("/var/tmp/bar.gz", ".gz", ".gz") );
19 var_dump( basename( array("string/bar") ) );
20 var_dump( basename( array("string/bar"), "bar" ) );
21 var_dump( basename( "bar", array("string/bar") ) );
22 var_dump( basename( $object, "bar" ) );
23 var_dump( basename( $object ) );
24 var_dump( basename( $object, $object ) );
25 var_dump( basename( "bar", $object ) );
32 Warning: basename() expects at least 1 parameter, 0 given in %s on line %d
35 Warning: basename() expects at most 2 parameters, 3 given in %s on line %d
38 Warning: basename() expects parameter 1 to be string, array given in %s on line %d
41 Warning: basename() expects parameter 1 to be string, array given in %s on line %d
44 Warning: basename() expects parameter 2 to be string, array given in %s on line %d
47 Warning: basename() expects parameter 1 to be string, object given in %s on line %d
50 Warning: basename() expects parameter 1 to be string, object given in %s on line %d
53 Warning: basename() expects parameter 1 to be string, object given in %s on line %d
56 Warning: basename() expects parameter 2 to be string, object given in %s on line %d