1--TEST-- 2Test posix_get_last_error() function : error conditions 3--SKIPIF-- 4<?php 5 if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 6?> 7--FILE-- 8<?php 9/* Prototype : proto int posix_get_last_error(void) 10 * Description: Retrieve the error number set by the last posix function which failed. 11 * Source code: ext/posix/posix.c 12 * Alias to functions: posix_errno 13 */ 14 15echo "*** Testing posix_get_last_error() : error conditions ***\n"; 16 17// One argument 18echo "\n-- Testing posix_get_last_error() function with one argument --\n"; 19$extra_arg = 10; 20var_dump( posix_get_last_error($extra_arg) ); 21 22echo "Done"; 23?> 24--EXPECTF-- 25*** Testing posix_get_last_error() : error conditions *** 26 27-- Testing posix_get_last_error() function with one argument -- 28 29Warning: posix_get_last_error() expects exactly 0 parameters, 1 given in %s on line %d 30NULL 31Done 32