1--TEST--
2Test realpath() function: error conditions
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) != 'WIN') {
6    die('skip only on Windows');
7}
8?>
9--FILE--
10<?php
11/* Prototype: string realpath ( string $path );
12   Description: Returns canonicalized absolute pathname
13*/
14
15echo "*** Testing realpath() for error conditions ***\n";
16var_dump( realpath() );  // args < expected
17var_dump( realpath(1, 2) );  // args > expected
18
19echo "Done\n";
20?>
21--EXPECTF--
22*** Testing realpath() for error conditions ***
23
24Warning: realpath() expects exactly 1 parameter, 0 given in %s on line %d
25NULL
26
27Warning: realpath() expects exactly 1 parameter, 2 given in %s on line %d
28NULL
29Done
30