Annotation of embedaddon/php/ext/standard/tests/file/fstat_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function fstat() by calling it more than or less than its expected arguments
3: --FILE--
4: <?php
5: $fp = fopen (__FILE__, 'r');
6: $extra_arg = 'nothing';
7:
8: var_dump(fstat( $fp, $extra_arg ) );
9: var_dump(fstat());
10:
11: fclose($fp);
12:
13: ?>
14: ===DONE===
15: --EXPECTF--
16:
17: Warning: fstat() expects exactly 1 parameter, 2 given in %s on line %d
18: bool(false)
19:
20: Warning: fstat() expects exactly 1 parameter, 0 given in %s on line %d
21: bool(false)
22: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>