Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 980) sorted by relevance

12345678910>>...40

/PHP-7.4/ext/standard/tests/general_functions/
H A Dparse_ini_file.phpt6 $filename = __DIR__."/parse_ini_file.dat";
11 var_dump(parse_ini_file($filename));
17 file_put_contents($filename, $ini);
18 var_dump(parse_ini_file($filename));
22 file_put_contents($filename, $ini);
23 var_dump(parse_ini_file($filename));
28 file_put_contents($filename, $ini);
29 var_dump(parse_ini_file($filename));
35 file_put_contents($filename, $ini);
42 file_put_contents($filename, $ini);
[all …]
/PHP-7.4/ext/standard/tests/file/
H A Dftruncate.phpt6 $filename = __DIR__."/ftruncate.dat";
10 $fp = fopen($filename, "r");
13 var_dump(file_get_contents($filename));
15 $fp = fopen($filename, "w");
18 var_dump(file_get_contents($filename));
22 $fp = fopen($filename, "a");
25 var_dump(file_get_contents($filename));
27 $fp = fopen($filename, "a");
30 var_dump(file_get_contents($filename));
34 $fp = fopen($filename, "a");
[all …]
H A Dtouch.phpt14 $filename = __DIR__."/touch.dat";
17 var_dump(touch($filename));
18 var_dump(filemtime($filename));
19 @unlink($filename);
21 var_dump(filemtime($filename));
23 @unlink($filename);
24 var_dump(touch($filename, -1));
25 var_dump(filemtime($filename));
27 @unlink($filename);
31 @unlink($filename);
[all …]
H A Dtouch_variation1.phpt14 $filename = __DIR__."/touch_variation1.dat";
16 var_dump(touch($filename, 101));
17 var_dump(filemtime($filename));
18 var_dump(fileatime($filename));
20 @unlink($filename);
22 @unlink($filename);
23 var_dump(touch($filename, 100, 102));
24 var_dump(filemtime($filename));
25 var_dump(fileatime($filename));
27 @unlink($filename);
H A Dunlink_basic.phpt5 /* Prototype : bool unlink ( string $filename [, resource $context] );
6 Description : Deletes filename
12 $filename = "$file_path/unlink_basic.tmp"; // temp file name used here
13 $fp = fopen($filename, "w"); // create file
18 var_dump( unlink($filename) );
19 var_dump( file_exists($filename) ); // confirm file doesnt exist
25 $filename = "$file_path/unlink_basic.tmp";
26 $fp = fopen($filename, "w"); // create file
30 var_dump( unlink($filename, $context) ); // using $context in second argument
31 var_dump( file_exists($filename) ); // confirm file doesnt exist
H A Dfile_put_contents_variation1.phpt15 $filename = "FilePutContentsVar1.tmp";
20 var_dump(file_put_contents($filename, $data));
21 var_dump(file_put_contents($filename, $extra, FILE_APPEND));
22 echo filesize($filename)."\n";
23 readfile($filename);
26 file_put_contents($filename, $data);
27 echo filesize($filename)."\n";
28 readfile($filename);
30 unlink($filename);
H A Dtouch_basic-win32-mb.phpt24 @unlink($filename);
25 if (file_exists($filename)) {
28 var_dump( touch($filename) );
35 $h = fopen($filename, "wb");
38 touch($filename);
39 $h = fopen($filename, "rb");
44 $init_meta = stat($filename);
47 touch($filename);
48 $next_meta = stat($filename);
68 $init_meta = stat($filename);
[all …]
H A Dtouch_basic-win32.phpt24 @unlink($filename);
25 if (file_exists($filename)) {
28 var_dump( touch($filename) );
35 $h = fopen($filename, "wb");
38 touch($filename);
39 $h = fopen($filename, "rb");
44 $init_meta = stat($filename);
47 touch($filename);
48 $next_meta = stat($filename);
68 $init_meta = stat($filename);
[all …]
H A Dfscanf.phpt6 $filename = __DIR__."/fscanf.dat";
14 $fp = fopen($filename, "rt");
19 $fp = fopen($filename, "rt");
24 $fp = fopen($filename, "rt");
32 $fp = fopen($filename, "rt");
40 $fp = fopen($filename, "rt");
46 @unlink($filename);
47 touch($filename);
49 $fp = fopen($filename, "rt");
56 $fp = fopen($filename, "rt");
[all …]
H A Drealpath_variation-win32-mb.phpt24 $file_handle = fopen($filename, "w");
27 // creating object with members as filename
29 public $filename;
31 $this->filename = $file;
37 var_dump( realpath($obj1->filename) );
38 var_dump( realpath($obj2->filename) );
40 echo "\n*** Testing realpath() with filename stored in an array ***\n";
51 /* filename as spaces */
55 /* empty filename */
81 *** Testing realpath() with filename stored inside a object ***
[all …]
H A Drealpath_variation-win32.phpt24 $file_handle = fopen($filename, "w");
27 // creating object with members as filename
29 public $filename;
31 $this->filename = $file;
37 var_dump( realpath($obj1->filename) );
38 var_dump( realpath($obj2->filename) );
40 echo "\n*** Testing realpath() with filename stored in an array ***\n";
51 /* filename as spaces */
55 /* empty filename */
81 *** Testing realpath() with filename stored inside a object ***
[all …]
H A Dtouch_basic.phpt25 @unlink($filename);
26 if (file_exists($filename)) {
29 var_dump( touch($filename) );
36 $h = fopen($filename, "wb");
39 touch($filename);
40 $h = fopen($filename, "rb");
45 $init_meta = stat($filename);
48 touch($filename);
49 $next_meta = stat($filename);
69 $init_meta = stat($filename);
[all …]
H A Dchmod_basic.phpt14 $filename = __FILE__ . ".tmp";
16 $fd = fopen($filename, "w+");
20 chmod($filename, $perms_to_set);
21 $set_perms = (fileperms($filename) & MODE_MASK);
27 var_dump(chmod($filename, 0777));
29 unlink($filename);
H A Dunlink_variation2.phpt5 /* Prototype : bool unlink ( string $filename [, resource $context] );
6 Description : Deletes filename
15 $filename = "$file_path/unlink_variation2.tmp";
18 $fp = fopen($filename, "w");
19 // try unlink() on $filename
20 var_dump( unlink($filename) ); // expected: true on linux
21 var_dump( file_exists($filename) ); // confirm file is deleted
H A Dunlink_variation4.phpt5 /* Prototype : bool unlink ( string $filename [, resource $context] );
6 Description : Deletes filename
14 $filename = "$file_path/unlink_variation4.tmp";
18 $fp = fopen($filename, "w");
22 var_dump( unlink($filename) ); // expected: true
23 var_dump( file_exists($filename) ); // confirm file deleted
26 var_dump( unlink($filename) ); // expected: false
/PHP-7.4/ext/standard/tests/file/windows_mb_path/
H A Dtest_readdir_mb_names.phpt62 filename: . : filetype: dir
63 filename: .. : filetype: dir
65 filename: tschüß : filetype: file
66 filename: tschüß3 : filetype: dir
67 filename: Voláçao : filetype: file
68 filename: Voláçao3 : filetype: dir
70 filename: š.txt : filetype: file
71 filename: żółć : filetype: dir
74 filename: привет : filetype: file
75 filename: привет3 : filetype: dir
[all …]
/PHP-7.4/Zend/
H A Dzend_dtrace.c38 return ZSTR_VAL(ex->func->op_array.filename); in dtrace_get_executed_filename()
47 DTRACE_COMPILE_FILE_ENTRY(ZSTR_VAL(file_handle->opened_path), (char *)file_handle->filename); in dtrace_compile_file()
58 const char *scope, *filename, *funcname, *classname; in dtrace_execute_ex() local
59 scope = filename = funcname = classname = NULL; in dtrace_execute_ex()
64 filename = dtrace_get_executed_filename(); in dtrace_execute_ex()
74 DTRACE_EXECUTE_ENTRY((char *)filename, lineno); in dtrace_execute_ex()
88 DTRACE_EXECUTE_RETURN((char *)filename, lineno); in dtrace_execute_ex()
95 const char *filename; in dtrace_execute_internal() local
97 filename = dtrace_get_executed_filename(); in dtrace_execute_internal()
102 DTRACE_EXECUTE_ENTRY((char *)filename, lineno); in dtrace_execute_internal()
[all …]
/PHP-7.4/ext/hash/tests/
H A Dhash_file_basic.phpt7 /* Prototype : string hash_file(string algo, string filename[, bool raw_output = false])
16 $filename = 'hash_file_basic_example.txt';
17 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
19 var_dump( hash_file( 'md5', $filename ) );
20 var_dump( hash_file( 'sha1', $filename ) );
21 var_dump( hash_file( 'sha256', $filename ) );
22 var_dump( hash_file( 'sha512', $filename ) );
24 var_dump( base64_encode( hash_file( 'md5', $filename, true ) ) );
31 $filename = 'hash_file_basic_example.txt';
32 unlink( $filename );
/PHP-7.4/ext/standard/tests/strings/
H A Dphp_strip_whitespace.phpt6 $filename = __DIR__."/php_strip_whitespace.dat";
9 var_dump(php_strip_whitespace($filename));
12 file_put_contents($filename, $data);
13 var_dump(php_strip_whitespace($filename));
16 file_put_contents($filename, $data);
17 var_dump(php_strip_whitespace($filename));
36 file_put_contents($filename, $data);
37 var_dump(php_strip_whitespace($filename));
39 @unlink($filename);
/PHP-7.4/ext/standard/tests/image/
H A Dbug70096.phpt10 $filename = __DIR__ . '/bug70096.jpg';
12 imagejpeg($im, $filename);
16 $content1 = iptcembed($data, $filename);
17 $fp = fopen($filename, "wb");
20 $content2 = iptcembed($data, $filename);
21 $fp = fopen($filename, "wb");
28 $filename = __DIR__ . '/bug70096.jpg';
29 @unlink($filename);
/PHP-7.4/ext/standard/tests/streams/
H A Dbug54946.phpt5 $filename = tempnam(__DIR__, "phpbug");
6 $stream = fopen($filename, "w"); // w or a
10 unlink($filename);
14 $filename = tempnam(__DIR__, "phpbug2");
16 $stream = fopen($filename, "a");
20 unlink($filename);
24 $filename = tempnam(__DIR__, "phpbug3");
26 $stream = fopen($filename, "a");
31 unlink($filename);
/PHP-7.4/ext/zip/tests/
H A Dbug70752.phpt9 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70752.zip';
11 $zip->open($filename);
13 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70752.txt';
14 var_dump(file_exists($filename));
20 var_dump(file_exists($filename));
29 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70752.txt';
30 unlink($filename);
/PHP-7.4/main/
H A Dfopen_wrappers.c363 char *filename = NULL; local
429 if (filename) {
430 resolved_path = zend_resolve_path(filename, strlen(filename));
435 if (filename) {
436 efree(filename);
456 if (filename) {
457 efree(filename);
491 if (!filename || CHECK_NULL_PATH(filename, filename_length)) {
509 ((filename[1] == '.') && IS_SLASH(filename[2])))) ||
516 filename_length >=2 && IS_SLASH(filename[0]) && !IS_SLASH(filename[1]) ||
[all …]
/PHP-7.4/ext/xmlreader/tests/
H A D002.phpt7 $filename = __DIR__ . '/_002.xml';
10 file_put_contents($filename, $xmlstring);
16 if (!$reader->open($filename)) {
26 unlink($filename);
27 touch($filename);
29 $reader->open($filename);
31 unlink($filename);
/PHP-7.4/ext/dba/tests/
H A Dbug70825.phpt10 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70825.ini';
12 $db = dba_open($filename, 'n', 'inifile');
20 unlink($filename);
22 $db = dba_open($filename, 'n', 'inifile');
30 unlink($filename);
32 $db = dba_open($filename, 'n', 'inifile');
40 unlink($filename);
42 $db = dba_open($filename, 'n', 'inifile');
50 unlink($filename);
69 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70825.ini';
[all …]

Completed in 32 milliseconds

12345678910>>...40