Home
last modified time | relevance | path

Searched refs:file_put_contents (Results 1 – 25 of 360) sorted by relevance

12345678910>>...15

/PHP-8.3/tests/security/
H A Dopen_basedir_file_put_contents.phpt9 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 Dfile_put_contents.phpt2 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 Dfile_put_contents_variation1.phpt2 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 Dfile_put_contents_variation8-win32.phpt2 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 D004.phpt2 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 Dfile_put_contents_variation8.phpt2 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 Dfile_get_contents_file_put_contents_basic.phpt2 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 Dfile_put_contents_variation9.phpt2 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 Dfile_put_contents_variation6.phpt2 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 Dfile_put_contents_variation7.phpt2 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 Dfile_put_contents_variation7-win32.phpt2 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 Dbug69628.phpt21 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 Dparse_ini_file.phpt15 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 Dcreate_path_error.phpt16 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 Dphar_oo_compressed_002.phpt33 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 Dphar_oo_compressed_002b.phpt33 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 Dbug78396.phpt2 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 Dphp_strip_whitespace.phpt11 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 Dcve-2014-1943-mb.phpt15 file_put_contents($fd, $a);
20 file_put_contents($fd, $b);
21 file_put_contents($fm, $m);
H A Dcve-2014-1943.phpt15 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 Dbug79467.phpt5 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 Dlog-bwd-multiple-msgs.phpt25 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 Dlog-bwd-multiple-msgs-stdout-stderr.phpt27 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 D010.phpt17 file_put_contents($f, '<?php
24 file_put_contents($f, '<?php
30 file_put_contents($f, '<?php
/PHP-8.3/ext/tokenizer/
H A Dtokenizer_data_gen.php35 file_put_contents($outfile_stub, $result);
92 file_put_contents($outfile_c, $result);

Completed in 38 milliseconds

12345678910>>...15