Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 48) sorted by relevance

12

/php-src/ext/standard/tests/file/
H A Dfilesize_basic.phpt13 $file_name = $file_path."/filesize_basic.tmp";
14 $file_handle = fopen($file_name, "w");
16 var_dump( filesize($file_name) );
23 $file_name = $file_path."/filesize_basic.tmp";
24 unlink($file_name);
H A Dis_file_basic.phpt14 $file_name = $file_path."/is_file_basic.tmp";
16 var_dump( is_file($file_name) );
18 fclose( fopen($file_name, "w") );
19 var_dump( is_file($file_name) );
30 $file_name = $file_path."/is_file_basic.tmp";
31 unlink($file_name);
H A Dtempnam_variation6-win32.phpt17 $file_name = "tempnam_variation6.tmp";
20 $file_name = tempnam("$file_path", $file_name);
22 if( file_exists($file_name) ) {
24 print($file_name);
28 $file_dir = dirname($file_name);
41 unlink($file_name);
H A Dtempnam_variation6.phpt15 $file_name = "tempnam_variation6.tmp";
18 $file_name = tempnam("$file_path", $file_name);
20 if( file_exists($file_name) ) {
22 print($file_name);
26 $file_dir = dirname($file_name);
39 unlink($file_name);
H A Dfile_get_contents_file_put_contents_basic.phpt13 $file_name = "/file_put_contents_basic.tmp";
15 file_put_contents( $file_path.$file_name, $text_buffer );
17 var_dump( file_get_contents($file_path.$file_name) );
21 $file_name = "/file_put_contents_basic1.tmp";
22 file_put_contents( $file_path.$file_name, "");
23 var_dump( file_get_contents( $file_path.$file_name ) );
H A Dfileowner_basic.phpt14 $file_name = $file_path."/fileowner_basic.tmp";
15 $file_handle = fopen($file_name, "w");
18 var_dump( fileowner($file_name) );
30 $file_name = $file_path."/fileowner_basic.tmp";
32 unlink($file_name);
H A Dfflush_variation4.phpt14 $file_name = "$file_path/fflush_variation4.tmp";
22 $file_handle = fopen($file_name, "w");
24 exit("Error:failed to open file $file_name");
28 $file_handle = fopen($file_name, $mode);
30 exit("Error:failed to open file $file_name");
34 unlink($file_name);
H A Dlstat_stat_variation7.phpt10 $file_name = "$file_path/lstat_stat_variation7.tmp";
11 $fp = fopen($file_name, "w"); // temp file
16 $fh = fopen($file_name,"w");
17 $old_stat = stat($file_name);
22 $new_stat = stat($file_name);
H A Dlstat_stat_variation4.phpt17 $file_name = "$file_path/lstat_stat_variation4.tmp";
18 $fp = fopen($file_name, "w"); // temp file
23 $old_stat = stat($file_name);
27 var_dump( touch($file_name) );
28 $new_stat = stat($file_name);
H A Dfilegroup_basic.phpt22 $file_name = $file_path."/filegroup_basic.tmp";
23 $file_handle = fopen($file_name, "w");
27 var_dump( filegroup($file_name) );
45 $file_name = $file_path."/filegroup_basic.tmp";
47 unlink($file_name);
H A Dfpassthru_variation.phpt9 $file_name = __DIR__."/passthru_variation.tmp";
10 $file_write = fopen($file_name, "w");
14 $file_read = fopen($file_name, "r");
56 $file_read = fopen($file_name, "rb");
63 unlink($file_name);
H A Dtempnam_variation3-win32.phpt59 $file_name = tempnam($file_path, $names_arr[$i]);
66 if (file_exists($file_name) && !$res_arr[$i]) {
70 $file_dir = dirname($file_name);
77 if (!is_writable($file_name)) {
78 printf("%o\n", fileperms($file_name) );
84 @unlink($file_name);
H A Dtempnam_variation3.phpt38 $file_name = tempnam("$file_path", $names_arr[$i]);
45 if( file_exists($file_name) ) {
47 print($file_name);
51 printf("%o", fileperms($file_name) );
55 $file_dir = dirname($file_name);
72 unlink($file_name);
H A D005_variation-win32.phpt51 stat_fn($file_name);
56 chmod($file_name, 0777);
57 stat_fn($file_name);
65 stat_fn($file_name);
73 stat_fn($file_name);
79 stat_fn($file_name);
85 stat_fn($file_name);
91 copy($file_name, $file_copy);
92 stat_fn($file_name);
97 is_file($file_name);
[all …]
H A Dlstat_stat_variation6.phpt29 $file_name = "$file_path/lstat_stat_variation6.tmp";
30 $fp = fopen($file_name, "w"); // temp file
33 symlink($file_name, $link_name); // temp link
45 $new_stat = stat($file_name);
H A Dtempnam_variation9.phpt32 $file_name = tempnam("$file_path", $prefix);
38 $base_name = basename($file_name);
42 if (file_exists($file_name)) {
43 unlink($file_name);
H A Dtempnam_variation7-win32.phpt35 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
41 if( file_exists($file_name) ){
44 print($file_name);
48 printf("%o", fileperms($file_name) );
52 $file_dir = dirname($file_name);
62 unlink($file_name);
H A Dtempnam_variation7.phpt36 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
42 if( file_exists($file_name) ){
45 print($file_name);
49 printf("%o", fileperms($file_name) );
53 $file_dir = dirname($file_name);
67 unlink($file_name);
H A Dtempnam_variation8-win32.phpt44 $file_name = tempnam($dir_paths[$i], "tempnam_variation8.tmp");
46 if( file_exists($file_name) ){
49 print(realpath($file_name));
53 printf("%o", fileperms($file_name) );
57 $file_dir = dirname($file_name);
76 unlink($file_name);
H A Dtempnam_variation2-win32.phpt45 $file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
47 if( file_exists($file_name) ){
50 print(realpath($file_name));
54 printf("%o", fileperms($file_name) );
58 $file_dir = dirname($file_name);
77 unlink($file_name);
H A Dtempnam_variation2.phpt45 $file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
47 if( file_exists($file_name) ){
50 print(realpath($file_name));
54 printf("%o", fileperms($file_name) );
58 $file_dir = dirname($file_name);
77 unlink($file_name);
/php-src/ext/pgsql/tests/
H A Dgh12763.phpt13 $file_name = tempnam('.', 'trace.log');
14 pg_trace($file_name, 'w', $conn);
17 $items = explode("\n", file_get_contents($file_name));
18 unlink($file_name);
/php-src/ext/spl/
H A Dspl_directory.c152 if (intern->file_name) { in spl_filesystem_object_free_storage()
232 if (intern->file_name) { in spl_filesystem_object_get_file_name()
361 …if (ZSTR_LEN(intern->file_name) > 1 && IS_SLASH_AT(ZSTR_VAL(intern->file_name), ZSTR_LEN(intern->f… in spl_filesystem_file_open()
362 …intern->file_name = zend_string_init(ZSTR_VAL(intern->file_name), ZSTR_LEN(intern->file_name)-1, 0… in spl_filesystem_file_open()
364 intern->file_name = zend_string_copy(intern->file_name); in spl_filesystem_file_open()
410 intern->file_name = zend_string_copy(source->file_name); in spl_filesystem_object_clone()
532 intern->file_name = zend_string_copy(source->file_name); in spl_filesystem_object_create_type()
563 intern->file_name = source->file_name; in spl_filesystem_object_create_type()
1290 filename = intern->file_name ? ZSTR_VAL(intern->file_name) : NULL; in PHP_METHOD()
2044 intern->file_name = file_name; in PHP_METHOD()
[all …]
/php-src/ext/standard/tests/http/request_parse_body/
H A Dmultipart.phpt12 Content-Disposition: form-data; name="file_name"; filename="original_file_name.txt"
25 move_uploaded_file($_FILES['file_name']['tmp_name'], $file_path);
40 ["file_name"]=>
/php-src/ext/mysqlnd/
H A Dmysqlnd_debug.c31 if (!self->file_name) { in MYSQLND_METHOD()
35 self->stream = php_stream_open_wrapper(self->file_name, in MYSQLND_METHOD()
461 if (self->file_name && self->file_name != mysqlnd_debug_default_trace_file) { in MYSQLND_METHOD()
462 efree(self->file_name); in MYSQLND_METHOD()
463 self->file_name = NULL; in MYSQLND_METHOD()
493 if (self->file_name && self->file_name != mysqlnd_debug_default_trace_file) { in MYSQLND_METHOD()
494 efree(self->file_name); in MYSQLND_METHOD()
495 self->file_name = NULL; in MYSQLND_METHOD()
527 self->file_name = estrndup(mode + i + 2, j - i - 2); in MYSQLND_METHOD()
531 if (!self->file_name) in MYSQLND_METHOD()
[all …]

Completed in 133 milliseconds

12