Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 25 of 33) sorted by relevance

12

/php-src/ext/standard/tests/file/
H A Dfile_variation7.phpt7 $filepath = __DIR__ . '/file_variation_7.tmp';
8 $fd = fopen($filepath, "w+");
13 var_dump(file($filepath));
16 var_dump(file($filepath, FILE_IGNORE_NEW_LINES));
19 var_dump(file($filepath, FILE_SKIP_EMPTY_LINES));
22 var_dump(file($filepath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES));
28 $filepath = __DIR__ . '/file_variation_7.tmp';
29 unlink($filepath);
H A Dchmod_variation2.phpt19 $filepath = __FILE__ . ".tmp";
20 $filename = basename($filepath);
21 $fd = fopen($filepath, "w+");
28 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
31 var_dump(chmod($filepath, 0777));
34 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
38 var_dump(symlink($filepath, $linkname));
39 var_dump(chmod($filepath, 0777));
42 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
50 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
[all …]
H A Dchmod_variation2-win32-mb.phpt19 $filepath = __FILE__ . ".tmp";
20 $filename = basename($filepath);
21 $fd = fopen($filepath, "w+");
28 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
31 var_dump(chmod($filepath, 0777));
34 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
41 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
48 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
52 unlink($filepath);
H A Dchmod_variation2-win32.phpt19 $filepath = __FILE__ . ".tmp";
20 $filename = basename($filepath);
21 $fd = fopen($filepath, "w+");
28 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
31 var_dump(chmod($filepath, 0777));
34 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
41 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
48 printf("%o\n", fileperms($filepath) & PERMISSIONS_MASK);
52 unlink($filepath);
H A Dfile_variation5.phpt17 $filepath = __DIR__ . '/file_variation_5.tmp';
18 $filename = basename($filepath);
19 $fd = fopen($filepath, "w+");
31 var_dump(symlink($filepath, $linkname));
44 $filepath = __DIR__ . '/file_variation_5.tmp';
45 @unlink($filepath); // Should be delete via the symlink deletion
H A Dfile_variation5-win32-mb.phpt17 $filepath = __DIR__ . '/file_variation_5_mb.tmp';
18 $filename = basename($filepath);
19 $fd = fopen($filepath, "w+");
38 $filepath = __DIR__ . '/file_variation_5_mb.tmp';
39 @unlink($filepath);
H A Dfile_variation5-win32.phpt17 $filepath = __DIR__ . '/file_variation_5.tmp';
18 $filename = basename($filepath);
19 $fd = fopen($filepath, "w+");
38 $filepath = __DIR__ . '/file_variation_5.tmp';
39 @unlink($filepath);
H A Dfile_variation6.phpt6 $filepath = __DIR__ . '/file_variation_6.tmp';
7 $fd = fopen($filepath, "w+");
13 var_dump(file($filepath, $flags));
22 $filepath = __DIR__ . '/file_variation_6.tmp';
23 unlink($filepath);
H A Dis_executable_variation1.phpt11 /* test is_executable() with file having different filepath notation */
H A Dis_readable_variation1.phpt9 /* test is_readable() with file having different filepath notation */
H A Dreadlink_realpath_basic2.phpt37 /* loop through $files to read the filepath of $file in the above array */
H A Drealpath_basic3.phpt38 /* loop through $files to read the filepath of $file in the above array */
H A Dreadlink_realpath_basic2-win32.phpt37 /* loop through $files to read the filepath of $file in the above array */
/php-src/main/
H A Dfopen_wrappers.h25 PHPAPI char *expand_filepath(const char *filepath, char *real_path);
26 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, siz…
27 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_…
H A Dfopen_wrappers.c755 PHPAPI char *expand_filepath(const char *filepath, char *real_path) argument
757 return expand_filepath_ex(filepath, real_path, NULL, 0);
764 return expand_filepath_with_mode(filepath, real_path, relative_to, relative_to_len, CWD_FILEPATH);
776 if (!filepath[0]) {
780 path_len = strlen(filepath);
782 if (IS_ABSOLUTE_PATH(filepath, path_len)) {
797 if (!result && (iam != filepath)) {
800 fdtest = VCWD_OPEN(filepath, O_RDONLY);
807 memcpy(real_path, filepath, copy_len);
810 real_path = estrndup(filepath, copy_len);
[all …]
/php-src/ext/gd/tests/
H A Dbug77973.phpt12 $filepath = __DIR__ . '/bug77973.xbm';
13 file_put_contents($filepath, $contents);
14 $im = imagecreatefromxbm($filepath);
/php-src/ext/ftp/tests/
H A Dftp_fput_ascii_over_4_kib.phpt15 $filepath = __DIR__ . "/" . $filename;
20 file_put_contents($filepath, $contents);
21 var_dump(ftp_put($ftp, "large_file.txt", $filepath, FTP_ASCII));
/php-src/ext/mysqli/tests/
H A Dmysqli_local_infile_directory_access_allowed.phpt39 $filepath = str_replace('\\', '/', __DIR__.'/foo/foo.data');
40 if (!$link->query("LOAD DATA LOCAL INFILE '".$filepath."' INTO TABLE test")) {
44 $filepath = str_replace('\\', '/', __DIR__.'/foo/bar/bar.data');
45 if (!$link->query("LOAD DATA LOCAL INFILE '".$filepath."' INTO TABLE test")) {
H A Dmysqli_local_infile_directory_access_denied.phpt39 $filepath = str_replace('\\', '/', __DIR__.'/foo/foo.data');
40 if (!$link->query("LOAD DATA LOCAL INFILE '".$filepath."' INTO TABLE test")) {
H A Dmysqli_allow_local_infile_overrides_local_infile_directory.phpt39 $filepath = str_replace('\\', '/', __DIR__.'/foo/foo.data');
40 if (!$link->query("LOAD DATA LOCAL INFILE '".$filepath."' INTO TABLE test")) {
H A Dmysqli_local_infile_directory_vs_open_basedir.phpt39 $filepath = str_replace('\\', '/', __DIR__.'/foo/foo.data');
40 if (!$link->query("LOAD DATA LOCAL INFILE '".$filepath."' INTO TABLE test")) {
/php-src/ext/phar/tests/files/
H A Dpear2coverage.phar1000 UNIQUE (filepath)
1107 ORDER BY filepath';
1115 ORDER BY filepath';
1132 $query = 'SELECT filepath from files ORDER BY filepath';
1134 $query = 'SELECT filepath from files WHERE issource=1 ORDER BY filepath';
1264 $query = 'SELECT id FROM files WHERE filepath=:filepath';
1353 $query = 'SELECT id FROM files WHERE filepath=:filepath';
1355 $stmt->bindParam(':filepath', $filepath);
1360 $query = 'UPDATE files SET filepathmd5=:md5 WHERE filepath=:filepath';
1362 $stmt->bindParam(':filepath', $filepath);
[all …]
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_local_infile_directory_denied.phpt43 $filepath = str_replace('\\', '/', __DIR__.'/foo/foo.data');
45 …cal_inifile_dir_denied FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'", $db->quote($filepath));
H A Dpdo_mysql_local_infile_directory_allowed.phpt43 $filepath = str_replace('\\', '/', __DIR__.'/foo/bar/bar.data');
45 …al_inifile_dir_allowed FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'", $db->quote($filepath));
H A Dpdo_mysql_local_infile_overrides_local_infile_directory.phpt43 $filepath = str_replace('\\', '/', __DIR__.'/foo/foo.data');
45 …ocal_inifile_overrides FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'", $db->quote($filepath));

Completed in 41 milliseconds

12