--TEST-- Test file_put_contents() function : usage variation - obscure filenames --CREDITS-- Dave Kelsey --SKIPIF-- --CONFLICTS-- obscure_filename --FILE-- getMessage(), "\n"; } } echo "\n*** Done ***\n"; ?> --CLEAN-- --EXPECTF-- *** Testing file_put_contents() : usage variation *** -- Iteration 0 -- 9 bytes written to: '-1' -- Iteration 1 -- 9 bytes written to: '1' -- Iteration 2 -- ValueError: Path must not be empty -- Iteration 3 -- ValueError: Path must not be empty -- Iteration 4 -- 9 bytes written to: ' ' -- Iteration 5 -- ValueError: file_put_contents(): Argument #1 ($filename) must not contain any null bytes -- Iteration 6 -- TypeError: file_put_contents(): Argument #1 ($filename) must be of type string, array given -- Iteration 7 -- Warning: file_put_contents(%sdir): Failed to open stream: %s in %s on line %d Failed to write data to: '%sir' -- Iteration 8 -- Warning: file_put_contents(%sphp): Failed to open stream: %s in %s on line %d Failed to write data to: '%sphp' *** Done ***