Home
last modified time | relevance | path

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

12345678910>>...38

/php-src/ext/standard/tests/general_functions/
H A Dparse_ini_file.phpt6 $filename = __DIR__."/parse_ini_file.dat";
9 var_dump(parse_ini_file($filename));
15 file_put_contents($filename, $ini);
16 var_dump(parse_ini_file($filename));
20 file_put_contents($filename, $ini);
21 var_dump(parse_ini_file($filename));
26 file_put_contents($filename, $ini);
27 var_dump(parse_ini_file($filename));
33 file_put_contents($filename, $ini);
40 file_put_contents($filename, $ini);
[all …]
/php-src/ext/standard/tests/file/windows_mb_path/
H A Dtest_readdir_mb_names.phpt61 filename: . : filetype: dir
62 filename: .. : filetype: dir
64 filename: tschüß : filetype: file
65 filename: tschüß3 : filetype: dir
66 filename: Voláçao : filetype: file
67 filename: Voláçao3 : filetype: dir
69 filename: š.txt : filetype: file
70 filename: żółć : filetype: dir
73 filename: привет : filetype: file
74 filename: привет3 : filetype: dir
[all …]
/php-src/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.phpt16 var_dump(touch($filename));
17 var_dump(filemtime($filename));
18 @unlink($filename);
19 var_dump(touch($filename, 101));
20 var_dump(filemtime($filename));
22 @unlink($filename);
23 var_dump(touch($filename, -1));
24 var_dump(filemtime($filename));
26 @unlink($filename);
30 @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 Dfile_put_contents_variation1.phpt9 $filename = "FilePutContentsVar1.tmp";
14 var_dump(file_put_contents($filename, $data));
15 var_dump(file_put_contents($filename, $extra, FILE_APPEND));
16 echo filesize($filename)."\n";
17 readfile($filename);
20 file_put_contents($filename, $data);
21 echo filesize($filename)."\n";
22 readfile($filename);
29 $filename = "FilePutContentsVar1.tmp";
30 unlink($filename);
H A Dfscanf.phpt6 $filename = __DIR__."/fscanf.dat";
10 $fp = fopen($filename, "rt");
15 $fp = fopen($filename, "rt");
20 $fp = fopen($filename, "rt");
32 $fp = fopen($filename, "rt");
44 $fp = fopen($filename, "rt");
54 @unlink($filename);
55 touch($filename);
57 $fp = fopen($filename, "rt");
64 $fp = fopen($filename, "rt");
[all …]
H A Drealpath_variation-win32-mb.phpt20 $file_handle = fopen($filename, "w");
23 // creating object with members as filename
25 public $filename;
27 $this->filename = $file;
33 var_dump( realpath($obj1->filename) );
34 var_dump( realpath($obj2->filename) );
36 echo "\n*** Testing realpath() with filename stored in an array ***\n";
47 /* filename as spaces */
51 /* empty filename */
75 *** Testing realpath() with filename stored inside a object ***
[all …]
H A Drealpath_variation-win32.phpt20 $file_handle = fopen($filename, "w");
23 // creating object with members as filename
25 public $filename;
27 $this->filename = $file;
33 var_dump( realpath($obj1->filename) );
34 var_dump( realpath($obj2->filename) );
36 echo "\n*** Testing realpath() with filename stored in an array ***\n";
47 /* filename as spaces */
51 /* empty filename */
75 *** Testing realpath() with filename stored inside a object ***
[all …]
H A Dtouch_basic-win32-mb.phpt18 @unlink($filename);
19 if (file_exists($filename)) {
22 var_dump( touch($filename) );
29 $h = fopen($filename, "wb");
32 touch($filename);
33 $h = fopen($filename, "rb");
38 $init_meta = stat($filename);
41 touch($filename);
42 $next_meta = stat($filename);
62 $init_meta = stat($filename);
[all …]
H A Dtouch_basic-win32.phpt15 $filename = __DIR__."/touch.dat";
18 @unlink($filename);
19 if (file_exists($filename)) {
22 var_dump( touch($filename) );
29 $h = fopen($filename, "wb");
32 touch($filename);
33 $h = fopen($filename, "rb");
38 $init_meta = stat($filename);
41 touch($filename);
42 $next_meta = stat($filename);
[all …]
H A Dfile_put_contents_variation5.phpt13 $filename = basename(__FILE__, ".php") . ".tmp";
14 $scriptLocFile = __DIR__."/".$filename;
31 global $scriptLocFile, $filename;
32 file_put_contents($filename, "File written in working directory", FILE_USE_INCLUDE_PATH);
37 $line = file_get_contents($filename);
39 unlink($filename);
46 $filename = basename(__FILE__, ".clean.php") . ".tmp";
47 $scriptLocFile = __DIR__."/".$filename;
48 @unlink($filename);
H A Dsymlink_link_linkinfo_is_link_variation8.phpt15 echo "\n*** Create hard link in different directory with same filename ***\n";
18 $filename = "$file_path/symlink_link_linkinfo_is_link_variation8.tmp";
24 $fp = fopen($filename, "w");
29 var_dump( link($filename, $dirname."/".$linkname) ); // this works fine
33 unlink($filename);
38 $filename = "$file_path/symlink_link_linkinfo_is_link_variation8.tmp";
44 $fp = fopen($filename, "w");
49 var_dump( symlink($filename, $dirname."/".$linkname) ); // this works fine
53 unlink($filename);
60 *** Create hard link in different directory with same filename ***
[all …]
H A Dtouch_basic.phpt19 @unlink($filename);
20 if (file_exists($filename)) {
23 var_dump( touch($filename) );
30 $h = fopen($filename, "wb");
33 touch($filename);
34 $h = fopen($filename, "rb");
39 $init_meta = stat($filename);
42 touch($filename);
43 $next_meta = stat($filename);
63 $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_basic.phpt9 $filename = "$file_path/unlink_basic.tmp"; // temp file name used here
10 $fp = fopen($filename, "w"); // create file
15 var_dump( unlink($filename) );
16 var_dump( file_exists($filename) ); // confirm file doesn't exist
22 $filename = "$file_path/unlink_basic.tmp";
23 $fp = fopen($filename, "w"); // create file
27 var_dump( unlink($filename, $context) ); // using $context in second argument
28 var_dump( file_exists($filename) ); // confirm file doesn't exist
/php-src/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), ZSTR_VAL(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-src/ext/hash/tests/
H A Dhash_file_basic.phpt10 $filename = 'hash_file_basic_example.txt';
11 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
13 var_dump( hash_file( 'md5', $filename ) );
14 var_dump( hash_file( 'sha1', $filename ) );
15 var_dump( hash_file( 'sha256', $filename ) );
16 var_dump( hash_file( 'sha512', $filename ) );
18 var_dump( base64_encode( hash_file( 'md5', $filename, true ) ) );
24 $filename = 'hash_file_basic_example.txt';
25 unlink( $filename );
/php-src/ext/standard/tests/strings/
H A Dphp_strip_whitespace.phpt6 $filename = __DIR__."/php_strip_whitespace.dat";
8 var_dump(php_strip_whitespace($filename));
11 file_put_contents($filename, $data);
12 var_dump(php_strip_whitespace($filename));
15 file_put_contents($filename, $data);
16 var_dump(php_strip_whitespace($filename));
35 file_put_contents($filename, $data);
36 var_dump(php_strip_whitespace($filename));
38 @unlink($filename);
/php-src/ext/standard/tests/image/
H A Dbug70096.phpt11 $filename = __DIR__ . '/bug70096.jpg';
13 imagejpeg($im, $filename);
17 $content1 = iptcembed($data, $filename);
18 $fp = fopen($filename, "wb");
21 $content2 = iptcembed($data, $filename);
22 $fp = fopen($filename, "wb");
29 $filename = __DIR__ . '/bug70096.jpg';
30 @unlink($filename);
/php-src/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-src/ext/standard/
H A Ddl.c44 char *filename; in PHP_FUNCTION() local
48 Z_PARAM_STRING(filename, filename_len) in PHP_FUNCTION()
69 php_dl(filename, MODULE_TEMPORARY, return_value, 0); in PHP_FUNCTION()
110 PHPAPI int php_load_extension(const char *filename, int type, int start_now) in php_load_extension() argument
133 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) { in php_load_extension()
139 libpath = estrdup(filename); in php_load_extension()
144 spprintf(&libpath, 0, "%s%s", extension_dir, filename); /* SAFE */ in php_load_extension()
166 filename, orig_libpath, err1, libpath, err2); in php_load_extension()
259 static void php_dl_error(const char *filename) in php_dl_error() argument
271 PHPAPI int php_load_extension(const char *filename, int type, int start_now) in php_load_extension() argument
[all …]
H A Dfilestat.c320 char *filename; in php_do_chgrp() local
458 char *filename; in php_do_chown() local
556 char *filename; in PHP_FUNCTION() local
589 ret = VCWD_CHMOD(filename, imode); in PHP_FUNCTION()
602 char *filename; in PHP_FUNCTION() local
666 file = VCWD_FOPEN(filename, "w"); in PHP_FUNCTION()
699 if (filename != NULL) { in php_clear_stat_cache()
740 if (!ZSTR_LEN(filename) || CHECK_NULL_PATH(ZSTR_VAL(filename), ZSTR_LEN(filename))) { in php_stat()
812 if (!ZSTR_LEN(filename) || CHECK_NULL_PATH(ZSTR_VAL(filename), ZSTR_LEN(filename))) { in php_stat()
1006 zend_string *filename; \
[all …]
/php-src/ext/dba/tests/
H A Dbug70825.phpt11 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70825.ini';
13 $db = dba_open($filename, 'n', 'inifile');
21 unlink($filename);
23 $db = dba_open($filename, 'n', 'inifile');
31 unlink($filename);
33 $db = dba_open($filename, 'n', 'inifile');
41 unlink($filename);
43 $db = dba_open($filename, 'n', 'inifile');
51 unlink($filename);
68 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70825.ini';
[all …]
/php-src/ext/xmlreader/tests/
H A D002.phpt7 $filename = __DIR__ . '/_002.xml';
10 file_put_contents($filename, $xmlstring);
20 if (!$reader->open($filename)) {
30 unlink($filename);
31 touch($filename);
33 $reader->open($filename);
35 unlink($filename);

Completed in 39 milliseconds

12345678910>>...38