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