Home
last modified time | relevance | path

Searched refs:filename (Results 176 – 200 of 980) sorted by relevance

12345678910>>...40

/PHP-7.4/ext/zlib/tests/
H A Dgzreadgzwriteplain.phpt9 $filename = tempnam(sys_get_temp_dir(), "phpt");
11 $fp = fopen($filename, "wb");
17 $fp = gzopen($filename, "rb");
47 unlink($filename);
/PHP-7.4/ext/standard/tests/file/
H A Dreadfile_variation1.phpt5 /* Prototype: int readfile ( string $filename [, bool $use_include_path [, resource $context]] );
21 $filename = "$file_path/readfile_variation1.tmp";
24 $fp = fopen($filename, "w");
27 $count = readfile($filename, true, $context);
H A Dfilesize_variation3-win32.phpt11 Prototype : int filesize ( string $filename );
19 $filename = $file_path."/filesize_variation3.tmp";
20 $file_handle = fopen($filename, "w");
28 for($size = filesize($filename); $size>=-1200; $size-=1200) {
29 $file_handle = fopen($filename, "r+");
32 var_dump( filesize($filename) );
H A Dfilesize_variation3.phpt11 Prototype : int filesize ( string $filename );
19 $filename = $file_path."/filesize_variation3.tmp";
20 $file_handle = fopen($filename, "w");
28 for($size = filesize($filename); $size>=-1200; $size-=1200) {
29 $file_handle = fopen($filename, "r+");
32 var_dump( filesize($filename) );
H A Dlstat_stat_variation15.phpt13 /* Prototype: array lstat ( string $filename );
16 Prototype: array stat ( string $filename );
26 $filename = "$file_path/lstat_stat_variation15.tmp";
27 $fp = fopen($filename, "w"); // temp file
32 symlink($filename, $linkname);
H A Dsymlink_link_linkinfo_is_link_basic1.phpt15 Prototype: bool is_link ( string $filename );
31 /* Creating soft/hard link to $filename created in temp directory $dirname
37 $filename = "$file_path/$dirname/symlink_link_linkinfo_is_link_basic1.tmp";
38 $filename = fopen($filename, "w");
39 fclose($filename);
41 // name of the soft link created to $filename
44 // name of the hard link created to $filename
47 // filename stored in array with single and double slash notation in its path
H A Dsymlink_link_linkinfo_is_link_variation6.phpt12 Prototype: bool is_link ( string $filename );
29 $filename = "$dirname/symlink_link_linkinfo_is_link_variation6.tmp";
38 var_dump( symlink($filename, $linkname) ); // this link won't get created
46 var_dump( link($filename, $linkname) );
59 $filename = "$dirname/symlink_link_linkinfo_is_link_variation6.tmp";
60 if(file_exists($filename)) {
61 unlink($filename);
H A Dftruncate_error.phpt12 $filename = __DIR__."/ftruncate_error.tmp";
13 $file_handle = fopen($filename, "w" );
16 echo "\n Initial file size = ".filesize($filename)."\n";
26 var_dump( filesize($filename) );
32 var_dump( filesize($filename) );
57 var_dump( filesize($filename) );
60 $fp = fopen($filename, "w");
64 var_dump( filesize($filename) );
70 $filename = __DIR__."/ftruncate_error.tmp";
71 unlink( $filename );
H A Dstat_variation6-win32.phpt13 * Prototype: array stat ( string $filename );
28 $filename = "$file_path/stat_variation6.tmp";
29 $file_handle = fopen($filename, "w"); // temp file
35 $old_stat = stat($filename);
36 var_dump( chmod($filename, 0777) );
40 $new_stat = stat($filename);
H A Dfile_put_contents_variation9.phpt20 $filename = __DIR__.'/filePutContentsVar9.tmp';
27 symlink($filename, $softlink);
36 file_put_contents($filename,"");
37 link($filename, $hardlink);
43 unlink($filename);
/PHP-7.4/Zend/
H A Dzend_stream.h56 const char *filename; member
67 ZEND_API void zend_stream_init_fp(zend_file_handle *handle, FILE *fp, const char *filename);
68 ZEND_API void zend_stream_init_filename(zend_file_handle *handle, const char *filename);
69 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle);
/PHP-7.4/sapi/apache2handler/
H A Dphp_functions.c57 static request_rec *php_apache_lookup_uri(char *filename) in php_apache_lookup_uri() argument
61 if (!filename || !ctx || !ctx->r) { in php_apache_lookup_uri()
65 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters); in php_apache_lookup_uri()
72 char *filename; in PHP_FUNCTION() local
76 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
80 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION()
119 char *filename; in PHP_FUNCTION() local
122 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
126 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION()
151 ADD_STRING(filename); in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c166 for (p = filename; in is_stream_path()
872 if (!filename) { in zend_get_stream_timestamp()
1364 return filename && ZSTR_LEN(filename) >= sizeof(".phar") && in is_phar_file()
3266 if (function->op_array.filename != filename) { in preload_move_user_functions()
3267 filename = function->op_array.filename; in preload_move_user_functions()
3305 if (ce->info.user.filename != filename) { in preload_move_user_classes()
3306 filename = ce->info.user.filename; in preload_move_user_classes()
3340 script->script.filename = zend_string_copy(op_array->filename); in preload_compile_file()
3762 || parent->info.user.filename == ce->info.user.filename)) { in preload_link()
4580 script->script.main_op_array.filename = filename; in accel_preload()
[all …]
/PHP-7.4/ext/fileinfo/tests/
H A Dbug57547.phpt12 foreach ($filenames as $filename) {
14 var_dump($finfo->file($filename));
17 var_dump($finfo2->file($filename, FILEINFO_MIME));
H A Dfinfo_file_002.phpt11 foreach (glob(__DIR__ . "/resources/*") as $filename) {
12 if (is_file($filename)) {
13 $results["$filename"] = finfo_file($fp, $filename);
/PHP-7.4/sapi/cli/tests/
H A D010.phpt15 $filename = __DIR__."/010.test.php";
24 file_put_contents($filename, $code);
32 var_dump(`cat "$filename_txt" | "$php" -n -F "$filename"`);
/PHP-7.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_exec_load_data.phpt24 $filename = $row['value'] . DIRECTORY_SEPARATOR . "pdo_mysql_exec_load_data.csv";
26 if (file_exists($filename) && !is_writable($filename))
27 die("skip {$filename} not writable");
74 $filename = $row['value'] . DIRECTORY_SEPARATOR . "pdo_mysql_exec_load_data.csv";
76 $filename = MySQLPDOTest::getTempDir() . DIRECTORY_SEPARATOR . "pdo_mysql_exec_load_data.csv";
79 $fp = fopen($filename, "w");
84 …ILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'", $db->quote($filename));
103 unlink($filename);
/PHP-7.4/ext/phar/
H A Dfunc_interceptors.c26 char *filename; in PHAR_FUNC() local
43 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) { in PHAR_FUNC()
94 char *filename; in PHAR_FUNC() local
134 entry = filename; in PHAR_FUNC()
229 char *filename; in PHAR_FUNC() local
265 entry = filename; in PHAR_FUNC()
366 entry = filename; in PHAR_FUNC()
764 char *filename; \
848 char *filename; in PharFileFunction() local
878 entry = filename; in PharFileFunction()
[all …]
/PHP-7.4/ext/gd/tests/
H A Dbug77195.phpt10 $filename = __DIR__ . '/bug77195.jpg';
11 @imagecreatefromjpeg($filename);
12 imagecreatefromjpeg($filename);
H A Dbug70102.phpt14 $filename = __DIR__ . '/bug70102.webp';
20 imagewebp($im, $filename);
23 $im = imagecreatefromwebp($filename);
/PHP-7.4/tests/basic/
H A Denable_post_data_reading_02.phpt8 Content-Disposition: form-data; name="file1"; filename="file1.txt"
25 Content-Disposition: form-data; name="file1"; filename="file1.txt"
31 Content-Disposition: form-data; name="file1"; filename="file1.txt"
/PHP-7.4/ext/zip/tests/
H A Dbug76524.phpt12 $filename = __DIR__ . "/nonexistent" . ($i++) . ".zip";
13 } while (file_exists($filename));
16 $zip->open($filename, ZipArchive::CREATE | ZipArchive::OVERWRITE);
/PHP-7.4/ext/curl/tests/
H A Dbug77711.phpt15 $filename = __DIR__ . '/АБВ.txt';
16 file_put_contents($filename, "Test.");
17 $file = curl_file_create($filename);
/PHP-7.4/ext/com_dotnet/tests/
H A Dbug66322.phpt18 $filename = __DIR__ . '\\..\\' . basename(__DIR__) . '\\66322.docx';
19 $ph->SaveToFile($filename);
20 var_dump(file_exists($filename));
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_loaddata.c28 int mysqlnd_local_infile_init(void ** ptr, const char * const filename) in mysqlnd_local_infile_init() argument
44 if (php_check_open_basedir_ex(filename, 0) == -1) { in mysqlnd_local_infile_init()
51 info->filename = filename; in mysqlnd_local_infile_init()
52 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); in mysqlnd_local_infile_init()
55 snprintf((char *)info->error_msg, sizeof(info->error_msg), "Can't find file '%-.64s'.", filename); in mysqlnd_local_infile_init()
142 mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * const filename, zend_bool * is_w… in mysqlnd_handle_local_infile() argument
174 if (infile.local_infile_init(&info, (char *)filename)) { in mysqlnd_handle_local_infile()

Completed in 75 milliseconds

12345678910>>...40