Home
last modified time | relevance | path

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

12345678910>>...45

/PHP-7.2/ext/phar/
H A Dfunc_interceptors.c28 char *filename; in PHAR_FUNC() local
45 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) { in PHAR_FUNC()
96 char *filename; in PHAR_FUNC() local
136 entry = filename; in PHAR_FUNC()
231 char *filename; in PHAR_FUNC() local
267 entry = filename; in PHAR_FUNC()
368 entry = filename; in PHAR_FUNC()
766 char *filename; \
850 char *filename; in PharFileFunction() local
880 entry = filename; in PharFileFunction()
[all …]
/PHP-7.2/sapi/apache2handler/
H A Dphp_functions.c59 static request_rec *php_apache_lookup_uri(char *filename) in php_apache_lookup_uri() argument
63 if (!filename || !ctx || !ctx->r) { in php_apache_lookup_uri()
67 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters); in php_apache_lookup_uri()
74 char *filename; in PHP_FUNCTION() local
78 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
82 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION()
121 char *filename; in PHP_FUNCTION() local
124 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
128 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION()
153 ADD_STRING(filename); in PHP_FUNCTION()
[all …]
/PHP-7.2/ext/standard/tests/file/
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 Dsymlink_link_linkinfo_is_link_basic1.phpt14 Prototype: bool is_link ( string $filename );
30 /* Creating soft/hard link to $filename created in temp directory $dirname
36 $filename = "$file_path/$dirname/symlink_link_linkinfo_is_link_basic1.tmp";
37 $filename = fopen($filename, "w");
38 fclose($filename);
40 // name of the soft link created to $filename
43 // name of the hard link created to $filename
46 // filename stored in array with single and double slash notation in its path
H A Dbug78241.phpt12 $filename = __DIR__ . '/bug78241.txt';
16 touch($filename, $t);
17 clearstatcache(true, $filename);
18 $file = filemtime($filename);
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 Dftruncate_error.phpt12 $filename = dirname(__FILE__)."/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 = dirname(__FILE__)."/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 D006_error.phpt9 $filename = dirname(__FILE__)."/006_root_check.tmp";
10 $fp = fopen($filename, 'w');
12 if(fileowner($filename) == 0) {
13 unlink ($filename);
17 unlink($filename);
23 Prototype: int fileperms ( string $filename )
26 Prototype: bool chmod ( string $filename, int $mode )
28 filename to that given in mode
H A Dfile_put_contents_variation9.phpt20 $filename = dirname(__FILE__).'/filePutContentsVar9.tmp';
27 symlink($filename, $softlink);
36 file_put_contents($filename,"");
37 link($filename, $hardlink);
43 unlink($filename);
H A Dlstat_stat_variation12.phpt12 /* Prototype: array lstat ( string $filename );
15 Prototype: array stat ( string $filename );
26 $filename = "$file_path/lstat_stat_variation12.tmp";
27 $fp = fopen($filename, "w"); // temp file
31 symlink($filename, $linkname); // temp link
H A Dlstat_stat_variation15.phpt12 /* Prototype: array lstat ( string $filename );
15 Prototype: array stat ( string $filename );
25 $filename = "$file_path/lstat_stat_variation15.tmp";
26 $fp = fopen($filename, "w"); // temp file
31 symlink($filename, $linkname);
H A Dparse_ini_file_error.phpt5 /* Prototype : proto array parse_ini_file(string filename [, bool process_sections])
19 $filename = 'string_val';
22 var_dump( parse_ini_file($filename, $process_sections, $extra_arg) );
25 $filename = __FILE__ . 'invalidfilename';
26 var_dump( parse_ini_file($filename, $process_sections) );
/PHP-7.2/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);
H A Dgzopen_error.phpt11 /* Prototype : resource gzopen(string filename, string mode [, int use_include_path])
22 $filename = 'string_val';
26 var_dump( gzopen($filename, $mode, $use_include_path, $extra_arg) );
30 $filename = 'string_val';
31 var_dump( gzopen($filename) );
/PHP-7.2/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt11 foreach (glob(__DIR__ . "/resources/*") as $filename) {
12 if (is_file($filename)) {
13 $results["$filename"] = finfo_file($fp, $filename);
H A Dbug57547.phpt12 foreach ($filenames as $filename) {
14 var_dump($finfo->file($filename));
17 var_dump($finfo2->file($filename, FILEINFO_MIME));
/PHP-7.2/tests/basic/
H A Dbug55500.phpt11 Content-Disposition: form-data; name="file[]"; filename="file1.txt"
16 Content-Disposition: form-data; name="file[[type]"; filename="file2.txt"
21 Content-Disposition: form-data; name="file[[name]"; filename="file3.txt"
26 Content-Disposition: form-data; name="file[name]["; filename="file4.txt"
/PHP-7.2/ext/zip/tests/
H A Dbug8700.phpt11 $filename = $thisdir . "/bug8009.zip";
15 if ($zip->open($filename) === FALSE) {
16 exit("cannot open $filename\n");
/PHP-7.2/ext/pdo_pgsql/tests/
H A Dcopy_to.phpt52 $filename="test_pgsqlCopyToFile.csv";
53 var_dump($db->pgsqlCopyToFile('test',$filename));
54 echo file_get_contents($filename);
56 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL"));
57 echo file_get_contents($filename);
59 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL",'a,c'));
60 echo file_get_contents($filename);
64 var_dump($db->pgsqlCopyToFile('test_error',$filename));
76 if(isset($filename)) {
77 @unlink($filename);
/PHP-7.2/ext/standard/tests/general_functions/
H A Dbug49056.phpt11 $filename = dirname(__FILE__) . '/bug49056.tmp';
13 file_put_contents( $filename, $string);
15 var_dump(parse_ini_file($filename));
/PHP-7.2/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()
/PHP-7.2/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.2/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);

Completed in 41 milliseconds

12345678910>>...45