/PHP-8.3/tests/security/ |
H A D | open_basedir_file_put_contents.phpt | 9 test_open_basedir_before("file_put_contents"); 11 var_dump(file_put_contents("../bad/bad.txt", "Hello World!")); 12 var_dump(file_put_contents(".././bad/bad.txt", "Hello World!")); 13 var_dump(file_put_contents("../bad/../bad/bad.txt", "Hello World!")); 14 var_dump(file_put_contents("./.././bad/bad.txt", "Hello World!")); 15 var_dump(file_put_contents($initdir."/test/bad/bad.txt", "Hello World!")); 17 test_open_basedir_after("file_put_contents"); 25 *** Testing open_basedir configuration [file_put_contents] *** 34 Warning: file_put_contents(../bad/bad.txt): Failed to open stream: %s in %s on line %d 39 Warning: file_put_contents(.././bad/bad.txt): Failed to open stream: %s in %s on line %d [all …]
|
/PHP-8.3/ext/standard/tests/file/ |
H A D | file_put_contents.phpt | 2 file_put_contents() and invalid parameters 10 $file = __DIR__."/file_put_contents.txt"; 15 var_dump(file_put_contents($file, $context)); 19 var_dump(file_put_contents($file, new stdClass)); 20 var_dump(file_put_contents($file, new foo)); 23 var_dump(file_put_contents($file, "string", 0, $fp)); 32 $file = __DIR__."/file_put_contents.txt"; 36 file_put_contents(): supplied resource is not a valid stream resource 39 file_put_contents(): supplied resource is not a valid Stream-Context resource
|
H A D | file_put_contents_variation1.phpt | 2 Test file_put_contents() function : variation - test append flag 7 echo "*** Testing file_put_contents() : variation ***\n"; 14 var_dump(file_put_contents($filename, $data)); 15 var_dump(file_put_contents($filename, $extra, FILE_APPEND)); 20 file_put_contents($filename, $data); 33 *** Testing file_put_contents() : variation ***
|
H A D | file_put_contents_variation8-win32.phpt | 2 Test file_put_contents() function : usage variation - obscure filenames 14 echo "*** Testing file_put_contents() : usage variation ***\n"; 35 $res = file_put_contents($value, "Some data"); 49 *** Testing file_put_contents() : usage variation *** 65 Warning: file_put_contents( ): Failed to open stream: Permission denied in %s on line %d 69 ValueError: file_put_contents(): Argument #1 ($filename) must not contain any null bytes 72 TypeError: file_put_contents(): Argument #1 ($filename) must be of type string, array given 76 Warning: file_put_contents(/no/such/file/dir): Failed to open stream: %s in %s on line %d 81 Warning: file_put_contents(php/php): Failed to open stream: %s in %s on line %d
|
H A D | 004.phpt | 2 file_put_contents() test 11 echo file_put_contents("TEST1", file_get_contents(__FILE__)) !== FALSE ? 'OK' : 'FAIL'; 15 $ret = file_put_contents("TEST2", $int); 25 $ret = file_put_contents("TEST3", $int); 34 $ret = file_put_contents("TEST4", __FILE__); 43 $ret = @file_put_contents("TEST5", $_SERVER);
|
H A D | file_put_contents_variation8.phpt | 2 Test file_put_contents() function : usage variation - obscure filenames 14 echo "*** Testing file_put_contents() : usage variation ***\n"; 40 $res = file_put_contents($names_arr[$i], "Some data"); 61 *** Testing file_put_contents() : usage variation *** 73 ValueError: file_put_contents(): Argument #1 ($filename) must not contain any null bytes 75 TypeError: file_put_contents(): Argument #1 ($filename) must be of type string, array given 78 Warning: file_put_contents(%sdir): Failed to open stream: %s in %s on line %d 82 Warning: file_put_contents(%sphp): Failed to open stream: %s in %s on line %d
|
H A D | file_get_contents_file_put_contents_basic.phpt | 2 Test file_put_contents() and file_get_contents() functions : basic functionality 9 echo "*** Testing the basic functionality of file_put_contents() and file_get_contents() functions … 15 file_put_contents( $file_path.$file_name, $text_buffer ); 22 file_put_contents( $file_path.$file_name, ""); 34 *** Testing the basic functionality of file_put_contents() and file_get_contents() functions ***
|
H A D | file_put_contents_variation9.phpt | 2 est file_put_contents() function : usage variation - linked files 12 echo "*** Testing file_put_contents() : usage variation ***\n"; 30 file_put_contents($filename,""); 37 var_dump(file_put_contents($file, $data)); 38 var_dump(file_put_contents($file, $extra, FILE_APPEND)); 58 *** Testing file_put_contents() : usage variation ***
|
H A D | file_put_contents_variation6.phpt | 2 Test file_put_contents() function : variation - include path testing 7 echo "*** Testing file_put_contents() : variation ***\n"; 35 file_put_contents($filename, "File in include path", FILE_USE_INCLUDE_PATH); 36 file_put_contents($filename, ". This was appended", FILE_USE_INCLUDE_PATH | FILE_APPEND); 51 *** Testing file_put_contents() : variation ***
|
H A D | file_put_contents_variation7.phpt | 2 Test file_put_contents() function : usage variation - various absolute and relative paths 7 echo "*** Testing file_put_contents() : usage variation ***\n"; 48 $res = file_put_contents($dir."/".$filename, ($data . $i)); 82 *** Testing file_put_contents() : usage variation *** 98 Warning: file_put_contents(%sfilePutContentsVar7.dir/filePutContentsVar7Sub/..///filePutContentsVar… 103 Warning: file_put_contents(%sfilePutContentsVar7.dir/filePutContentsVar7Sub/BADDIR/FileGetContentsV… 120 Warning: file_put_contents(BADDIR/FileGetContentsVar7.tmp): Failed to open stream: %s in %s on line…
|
H A D | file_put_contents_variation7-win32.phpt | 2 Test file_put_contents() function : usage variation - various absolute and relative paths 12 echo "*** Testing file_put_contents() : usage variation ***\n"; 56 $res = file_put_contents($dir."\\".$filename, ($data . $i)); 90 *** Testing file_put_contents() : usage variation *** 106 Warning: file_put_contents(%sfilePutContentsVar7.dir\filePutContentsVar7Sub\..\\\filePutContentsVar… 111 Warning: file_put_contents(%sfilePutContentsVar7.dir\filePutContentsVar7Sub\BADDIR\FileGetContentsV… 128 Warning: file_put_contents(BADDIR\FileGetContentsVar7.tmp): Failed to open stream: %s in %s on line…
|
H A D | bug69628.phpt | 21 file_put_contents("$dirname/image.jPg", ''); 22 file_put_contents("$dirname/image.gIf", ''); 23 file_put_contents("$dirname/image.png", '');
|
/PHP-8.3/ext/standard/tests/general_functions/ |
H A D | parse_ini_file.phpt | 15 file_put_contents($filename, $ini); 20 file_put_contents($filename, $ini); 26 file_put_contents($filename, $ini); 33 file_put_contents($filename, $ini); 40 file_put_contents($filename, $ini); 47 file_put_contents($filename, $ini); 54 file_put_contents($filename, $ini); 60 file_put_contents($filename, $ini); 67 file_put_contents($filename, $ini); 74 file_put_contents($filename, $ini); [all …]
|
/PHP-8.3/ext/phar/tests/ |
H A D | create_path_error.phpt | 16 file_put_contents($pname . '/a.php?', "query"); 17 file_put_contents($pname . '/b.php?bla', "query"); 44 file_put_contents($pname . '/' . $check, "error"); 68 1:Error: file_put_contents(phar://%s//): Failed to open stream: phar error: file "" in phar "%s" ca… 69 2:Error: file_put_contents(phar://%s/.): Failed to open stream: phar error: file "" in phar "%s" ca… 70 3:Error: file_put_contents(phar://%s/../): Failed to open stream: phar error: file "" in phar "%s" … 71 4:Error: file_put_contents(phar://%s/a/..): Failed to open stream: phar error: file "" in phar "%s"… 76 9:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contain… 77 10:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contai… 78 11:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contai… [all …]
|
H A D | phar_oo_compressed_002.phpt | 33 file_put_contents($pname . '/b', 'new b'); 34 file_put_contents($pname . '/c', 'new c', 0, $context); 35 file_put_contents($pname . '/d', 'new d'); 36 file_put_contents($pname . '/e', 'new e', 0, $context);
|
H A D | phar_oo_compressed_002b.phpt | 33 file_put_contents($pname . '/b', 'new b'); 34 file_put_contents($pname . '/c', 'new c', 0, $context); 35 file_put_contents($pname . '/d', 'new d'); 36 file_put_contents($pname . '/e', 'new e', 0, $context);
|
/PHP-8.3/Zend/tests/ |
H A D | bug78396.phpt | 2 Bug #78396: Second file_put_contents in Shutdown hangs script 7 file_put_contents(__DIR__ . '/bug78396.txt', '1', FILE_APPEND | LOCK_EX); 8 file_put_contents(__DIR__ . '/bug78396.txt', '2', FILE_APPEND | LOCK_EX);
|
/PHP-8.3/ext/standard/tests/strings/ |
H A D | php_strip_whitespace.phpt | 11 file_put_contents($filename, $data); 15 file_put_contents($filename, $data); 35 file_put_contents($filename, $data);
|
/PHP-8.3/ext/fileinfo/tests/ |
H A D | cve-2014-1943-mb.phpt | 15 file_put_contents($fd, $a); 20 file_put_contents($fd, $b); 21 file_put_contents($fm, $m);
|
H A D | cve-2014-1943.phpt | 15 file_put_contents($fd, $a); 20 file_put_contents($fd, $b); 21 file_put_contents($fm, $m);
|
/PHP-8.3/ext/standard/tests/streams/ |
H A D | bug79467.phpt | 5 var_dump(file_put_contents('data://text/plain,cccc', 'data')); 8 Notice: file_put_contents(): Stream is not writable in %s on line %d
|
/PHP-8.3/sapi/fpm/tests/ |
H A D | log-bwd-multiple-msgs.phpt | 25 file_put_contents('php://stderr', "msg 1 - "); 27 file_put_contents('php://stderr', "msg 2 - "); 29 file_put_contents('php://stderr', "msg 3");
|
H A D | log-bwd-multiple-msgs-stdout-stderr.phpt | 27 file_put_contents('php://stdout', "msg 1 - "); 29 file_put_contents('php://stderr', "msg 2 - "); 31 file_put_contents('php://stderr', "msg 3");
|
/PHP-8.3/sapi/cgi/tests/ |
H A D | 010.phpt | 17 file_put_contents($f, '<?php 24 file_put_contents($f, '<?php 30 file_put_contents($f, '<?php
|
/PHP-8.3/ext/tokenizer/ |
H A D | tokenizer_data_gen.php | 35 file_put_contents($outfile_stub, $result); 92 file_put_contents($outfile_c, $result);
|