1--TEST--
2Test pathinfo() function: error conditions
3--FILE--
4<?php
5/* Prototype: mixed pathinfo ( string $path [, int $options] );
6   Description: Returns information about a file path
7*/
8
9echo "*** Testing pathinfo() for error conditions ***\n";
10/* unexpected no. of arguments */
11var_dump( pathinfo() );  /* args < expected */
12var_dump( pathinfo("/home/1.html", 1, 3) );  /* args > expected */
13
14echo "Done\n";
15?>
16--EXPECTF--
17*** Testing pathinfo() for error conditions ***
18
19Warning: pathinfo() expects at least 1 parameter, 0 given in %s on line %d
20NULL
21
22Warning: pathinfo() expects at most 2 parameters, 3 given in %s on line %d
23NULL
24Done
25