Home
last modified time | relevance | path

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

12345678910>>...13

/PHP-8.0/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.0/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));
33 file_put_contents(): supplied resource is not a valid stream resource
36 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);
29 *** Testing file_put_contents() : variation ***
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 …
13 $file_name = "/file_put_contents.tmp";
15 file_put_contents( $file_path.$file_name, $text_buffer );
22 file_put_contents( $file_path.$file_name, "");
30 unlink($file_path."/file_put_contents.tmp");
34 *** Testing the basic functionality of file_put_contents() and file_get_contents() functions ***
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";
36 $res = file_put_contents($value, "Some data");
50 *** Testing file_put_contents() : usage variation ***
69 Warning: file_put_contents( ): Failed to open stream: Permission denied in %s on line %d
73 ValueError: file_put_contents(): Argument #1 ($filename) must not contain any null bytes
76 TypeError: file_put_contents(): Argument #1 ($filename) must be of type string, array given
80 Warning: file_put_contents(/no/such/file/dir): Failed to open stream: %s in %s on line %d
85 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_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,"");
43 var_dump(file_put_contents($file, $data));
44 var_dump(file_put_contents($file, $extra, FILE_APPEND));
53 *** Testing file_put_contents() : usage variation ***
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";
41 $res = file_put_contents($names_arr[$i], "Some data");
57 *** Testing file_put_contents() : usage variation ***
71 ValueError: file_put_contents(): Argument #1 ($filename) must not contain any null bytes
73 TypeError: file_put_contents(): Argument #1 ($filename) must be of type string, array given
76 Warning: file_put_contents(%sdir): Failed to open stream: %s in %s on line %d
80 Warning: file_put_contents(%sphp): Failed to open stream: %s in %s on line %d
H A Dfile_put_contents_variation6.phpt2 Test file_put_contents() function : variation - include path testing
7 echo "*** Testing file_put_contents() : variation ***\n";
36 file_put_contents($filename, "File in include path", FILE_USE_INCLUDE_PATH);
37 file_put_contents($filename, ". This was appended", FILE_USE_INCLUDE_PATH | FILE_APPEND);
45 *** 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));
72 *** Testing file_put_contents() : usage variation ***
88 Warning: file_put_contents(%sfilePutContentsVar7.dir/filePutContentsVar7Sub/..///filePutContentsVar…
93 Warning: file_put_contents(%sfilePutContentsVar7.dir/filePutContentsVar7Sub/BADDIR/FileGetContentsV…
110 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));
80 *** Testing file_put_contents() : usage variation ***
96 Warning: file_put_contents(%sfilePutContentsVar7.dir\filePutContentsVar7Sub\..\\\filePutContentsVar…
101 Warning: file_put_contents(%sfilePutContentsVar7.dir\filePutContentsVar7Sub\BADDIR\FileGetContentsV…
118 Warning: file_put_contents(BADDIR\FileGetContentsVar7.tmp): Failed to open stream: %s in %s on line…
H A Dfile_get_contents_file_put_contents_error.phpt2 Test file-get_contents() and file_put_contents() functions : error conditions
13 $file_handle = fopen($file_path."/file_put_contents.tmp", "w");
16 file_put_contents($file_path."/file_put_contents1.tmp", "Garbage data in the file");
30 unlink($file_path."/file_put_contents.tmp");
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.0/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 …]
H A Dbug40752.phpt7 file_put_contents($file, '
14 file_put_contents($file, '
/PHP-8.0/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 …]
/PHP-8.0/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.0/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.0/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.0/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.0/ext/fileinfo/tests/
H A Dcve-2014-1943-mb.phpt17 file_put_contents($fd, $a);
22 file_put_contents($fd, $b);
23 file_put_contents($fm, $m);
H A Dcve-2014-1943.phpt17 file_put_contents($fd, $a);
22 file_put_contents($fd, $b);
23 file_put_contents($fm, $m);
/PHP-8.0/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.0/ext/opcache/tests/
H A Dbug65559.phpt12 file_put_contents($file, '<?php return 1;');
15 file_put_contents($file, '<?php return 2;');

Completed in 45 milliseconds

12345678910>>...13