blob: 79fac300297fe890dc32795f56d41c75770d94da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
Test dirname() function : error conditions
--FILE--
<?php
/* Prototype: string dirname ( string $path );
Description: Returns directory name component of path.
*/
echo "*** Testing error conditions ***\n";
// Bad arg
var_dump( dirname("/var/tmp/bar.gz", 0) );
echo "Done\n";
?>
--EXPECTF--
*** Testing error conditions ***
Warning: dirname(): Invalid argument, levels must be >= 1 in %s on line %d
NULL
Done
|