--TEST-- Test ftruncate() function : error conditions --FILE-- --CLEAN-- --EXPECTF-- *** Testing ftruncate() : error conditions *** Initial file size = 36 -- Testing ftruncate() with less than expected number of arguments -- Warning: Wrong parameter count for ftruncate() in %s on line %d NULL Warning: Wrong parameter count for ftruncate() in %s on line %d NULL int(36) -- Testing ftruncate() with more than expected number of arguments -- Warning: Wrong parameter count for ftruncate() in %s on line %d NULL int(36) -- Testing ftruncate() with invalid file pointer -- -- Iteration 1 -- Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d bool(false) -- Iteration 2 -- Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d bool(false) -- Iteration 3 -- Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d bool(false) -- Iteration 4 -- Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d bool(false) -- Iteration 5 -- Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d bool(false) -- Iteration 6 -- Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d bool(false) -- Testing ftruncate() with closed/unset file handle -- Warning: ftruncate(): 5 is not a valid stream resource in %s on line %d bool(false) int(36) Warning: ftruncate(): supplied argument is not a valid stream resource in %s on line %d bool(false) int(36) Done