Home
last modified time | relevance | path

Searched refs:file (Results 326 – 350 of 2191) sorted by relevance

1...<<11121314151617181920>>...88

/PHP-7.1/ext/mbstring/libmbfl/
H A Dconfig.h.in3 /* Define to 1 if you have the <assert.h> header file. */
6 /* Define to 1 if you have the <dlfcn.h> header file. */
9 /* Define to 1 if you have the <inttypes.h> header file. */
16 /* Define to 1 if you have the <memory.h> header file. */
23 /* Define to 1 if you have the <stddef.h> header file. */
26 /* Define to 1 if you have the <stdint.h> header file. */
29 /* Define to 1 if you have the <stdlib.h> header file. */
38 /* Define to 1 if you have the <strings.h> header file. */
41 /* Define to 1 if you have the <string.h> header file. */
44 /* Define to 1 if you have the <sys/stat.h> header file. */
[all …]
/PHP-7.1/ext/opcache/tests/
H A Dbug74663.phpt15 $file = __DIR__ . "/bug74663.inc";
16 file_put_contents($file, "");
17 include $file;
19 var_dump(is_file($file));
/PHP-7.1/ext/standard/tests/file/
H A Dfile_variation6.phpt2 file() with a range of integer flag values
12 var_dump(file($filepath, $flags));
236 Warning: file(): '24' flag is not supported in %s on line %d
239 Warning: file(): '25' flag is not supported in %s on line %d
242 Warning: file(): '26' flag is not supported in %s on line %d
245 Warning: file(): '27' flag is not supported in %s on line %d
248 Warning: file(): '28' flag is not supported in %s on line %d
251 Warning: file(): '29' flag is not supported in %s on line %d
254 Warning: file(): '30' flag is not supported in %s on line %d
257 Warning: file(): '31' flag is not supported in %s on line %d
[all …]
H A Dbug37158.phpt17 $file = dirname(__FILE__) . '/footest.txt';
19 $fp = fopen($file, 'w');
25 $fp = fopen($file, 'r');
29 $outsidecontents = file_get_contents($file);
32 unlink($file);
H A Dfileinode_basic.phpt7 Description: Returns the inode number of the file, or FALSE in case of an error.
10 echo "*** Testing fileinode() with file, directory ***\n";
12 /* Getting inode of created file */
17 /* Getting inode of current file */
30 *** Testing fileinode() with file, directory ***
H A Drename_basic.phpt6 Description: Renames a file or directory
9 echo "*** Testing rename() on non-existing file ***\n";
11 require "$file_path/file.inc";
16 // create the file
27 // checking statistics of old and renamed file - both should be same except ctime
40 *** Testing rename() on non-existing file ***
H A Dfile_get_contents_variation8-win32.phpt14 * Description: Read the entire file into a string
15 * Source code: ext/standard/file.c
34 "/no/such/file/dir" => "/no/such/file/dir",
51 Warning: file_get_contents(-1): failed to open stream: No such file or directory in %s on line %d
56 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d
89 -- Filename: /no/such/file/dir --
91 Warning: file_get_contents(/no/such/file/dir): failed to open stream: No such file or directory in …
96 Warning: file_get_contents(php/php): failed to open stream: No such file or directory in %s on line…
H A Dfopen_variation19.phpt13 * Description: Open a file or a URL and return a file pointer
14 * Source code: ext/standard/file.c
70 function readFile2($file) {
71 $h = fopen($file, 'r');
77 function appendFile($file) {
78 $h = fopen($file, 'a+');
86 function writeFile($file) {
87 $h = fopen($file, 'w');
90 readFile2($file);
H A Dreadfile_variation10-win32.phpt13 * Description: Output a file or a URL
14 * Source code: ext/standard/file.c
33 "/no/such/file/dir" => "/no/such/file/dir",
50 Warning: readfile(-1): failed to open stream: No such file or directory in %s on line %d
54 Warning: readfile(1): failed to open stream: No such file or directory in %s on line %d
80 -- Filename: /no/such/file/dir --
82 Warning: readfile(/no/such/file/dir): failed to open stream: No such file or directory in %s on lin…
86 Warning: readfile(php/php): failed to open stream: No such file or directory in %s on line %d
H A Dfputcsv.phpt29 $file = dirname(__FILE__) . 'fgetcsv.csv';
30 @unlink($file);
32 $fp = fopen($file, "w");
38 $res = file($file);
45 $fp = fopen($file, "r");
55 @unlink($file);
H A Dcopy_variation18.phpt6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): checking stat of file before and after after copy operation */
14 require($file_path."/file.inc");
16 echo "*** Test copy() function: stat of file before and after copy ***\n";
40 echo "Comparing the stats of file before and after copy operation => ";
51 *** Test copy() function: stat of file before and after copy ***
53 Comparing the stats of file before and after copy operation => bool(true)
/PHP-7.1/ext/xsl/tests/
H A Dbug54446.phpt2 Bug #54446 (Arbitrary file creation via libxslt 'output' extension)
43 print "OK, no file created\n";
54 print "OK, file exists\n";
70 print "OK, no file created\n";
73 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li…
77 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li…
80 OK, no file created
81 OK, file exists
83 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li…
87 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li…
[all …]
H A Dbug54446_with_ini.phpt2 Bug #54446 (Arbitrary file creation via libxslt 'output' extension with php.ini setting)
43 print "OK, no file created\n";
54 print "OK, file exists\n";
70 print "OK, no file created\n";
75 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li…
79 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li…
82 OK, no file created
83 OK, file exists
85 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li…
89 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li…
[all …]
/PHP-7.1/ext/zip/tests/
H A Doo_extract.phpt11 $file = $dirname . 'test_with_comment.zip';
14 if ($zip->open($file) !== TRUE) {
35 echo "failed. bar file\n";
41 echo "failed. foo file\n";
47 /* extract one file */
50 echo "failed. extract bar file\n";
58 echo "failed. extract bar file\n";
63 echo "failed. extract foo file\n";
/PHP-7.1/ext/zlib/tests/
H A Dzlib_scheme_fopen_variation1.phpt2 Test compress.zlib:// scheme with the fopen on a file scheme
12 $srcFile = "file://$inputFileName";
15 echo "file=$compressedFile\n\n";
22 file=compress.zlib://file://%s/004.txt.gz
/PHP-7.1/ext/standard/tests/general_functions/
H A Dgetservbyport_basic.phpt11 $file = "/etc/services";
13 elseif(substr(PHP_OS,0,3) == "WIN") $file = "C:/WINDOWS/system32/drivers/etc/services";
16 if(file_exists($file)){
17 $services = file_get_contents($file);
23 echo "Services file not found in expected location\n";
/PHP-7.1/ext/standard/tests/streams/
H A Dstream_resolve_include_path.phpt8 $include_path_file = $include_path . DIRECTORY_SEPARATOR . 'file';
9 $include_path_nested_file = $include_path_nested . DIRECTORY_SEPARATOR . 'file';
20 var_dump(stream_resolve_include_path('file-does-not-exist'));
23 var_dump(stream_resolve_include_path('file'));
25 var_dump(stream_resolve_include_path('file'));
H A Dstream_get_meta_data_file_variation5.phpt2 testing stream_get_meta_data() "eof" field for a file stream
10 echo "Write some data to the file:\n";
18 //seek to start of file
21 echo "\n\nRead entire file:\n";
34 Write some data to the file:
57 Read entire file:
/PHP-7.1/ext/fileinfo/tests/
H A Dfinfo_file_regex.phpt9 * Works with the unix file command:
10 * $ file -m magic resources/test.awk
19 $file = __DIR__ . '/resources/test.awk';
20 var_dump( finfo_file( $finfo, $file ) );
21 var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) );
/PHP-7.1/ext/phar/tests/tar/
H A Dlinks3.phpt14 echo $p['file.txt']->getContent();
15 echo $p['my/file']->getContent();
19 my file
20 my file
/PHP-7.1/ext/oci8/tests/
H A Ddefine3.phpt47 echo "file md5:" . md5($f->load()) . "\n";
56 echo "file md5:" . md5($outdata) . "\n";
65 echo "file md5:" . md5($outdata) . "\n";
75 echo "file md5:" . md5($fid->load()) . "\n";
96 file md5:614fcbba1effb7caa27ef0ef25c27fcf
101 file md5:06d4f219d946c74d748d43932cd9dcb2
108 file md5:614fcbba1effb7caa27ef0ef25c27fcf
109 file md5:06d4f219d946c74d748d43932cd9dcb2
112 file md5:614fcbba1effb7caa27ef0ef25c27fcf
113 file md5:06d4f219d946c74d748d43932cd9dcb2
/PHP-7.1/ext/xmlreader/tests/
H A D008.phpt26 $file = dirname(__FILE__) . '/_008.xml';
27 file_put_contents($file, $xmlstring);
31 $reader->open($file);
36 echo "file DTD: ok\n";
39 unlink($file);
42 <!DOCTYPE LIST SYSTEM "file:///' . $dtdfile. '">
69 file DTD: ok
/PHP-7.1/ext/gd/tests/
H A Dbug38212-mb.phpt9 $file = dirname(__FILE__) . '/bug38212私はガラスを食べられます.gd2';
12 imagegd2($im1, $file);
13 $im = imagecreatefromgd2part($file, 0,0, -25,10);
14 unlink($file);
H A Dbug38212.phpt9 $file = dirname(__FILE__) . '/bug38212.gd2';
12 imagegd2($im1, $file);
13 $im = imagecreatefromgd2part($file, 0,0, -25,10);
14 unlink($file);
/PHP-7.1/tests/security/
H A Dopen_basedir_tempnam.phpt20 $file = tempnam($initdir."/test/ok", "test");
21 var_dump($file);
22 var_dump(unlink($file));
25 $file = tempnam(".", "test");
26 var_dump($file);
27 var_dump(unlink($file));
29 $file = tempnam("../ok", "test");
30 var_dump($file);
31 var_dump(unlink($file));

Completed in 26 milliseconds

1...<<11121314151617181920>>...88