Home
last modified time | relevance | path

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

12345678910>>...43

/PHP-5.5/ext/standard/tests/general_functions/
H A Dparse_ini_file.phpt13 var_dump(parse_ini_file($filename));
19 file_put_contents($filename, $ini);
20 var_dump(parse_ini_file($filename));
24 file_put_contents($filename, $ini);
25 var_dump(parse_ini_file($filename));
30 file_put_contents($filename, $ini);
31 var_dump(parse_ini_file($filename));
37 file_put_contents($filename, $ini);
44 file_put_contents($filename, $ini);
51 file_put_contents($filename, $ini);
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dftruncate.phpt6 $filename = dirname(__FILE__)."/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.phpt17 var_dump(touch($filename));
18 var_dump(filemtime($filename));
19 @unlink($filename);
20 var_dump(touch($filename, 101));
21 var_dump(filemtime($filename));
23 @unlink($filename);
24 var_dump(touch($filename, -1));
25 var_dump(filemtime($filename));
27 @unlink($filename);
31 @unlink($filename);
[all …]
H A Dtouch_variation1.phpt14 $filename = dirname(__FILE__)."/touch.dat";
17 var_dump(touch($filename, 101));
18 var_dump(filemtime($filename));
19 var_dump(fileatime($filename));
21 @unlink($filename);
23 @unlink($filename);
24 var_dump(touch($filename, 100, 102));
25 var_dump(filemtime($filename));
26 var_dump(fileatime($filename));
28 @unlink($filename);
H A Dunlink_variation1.phpt10 $fp = fopen($filename, 'w');
12 if(fileowner($filename) == 0) {
13 unlink ($filename);
17 unlink($filename);
22 Description : Deletes filename
34 // temp filename used here
35 $filename = "$dirname/unlink_variation1.tmp";
41 $fp = fopen($filename, "w");
47 // now try deleting $filename
60 $fp = fopen($filename, "w");
[all …]
H A Dunlink_basic.phpt5 /* Prototype : bool unlink ( string $filename [, resource $context] );
6 Description : Deletes filename
12 $filename = "$file_path/unlink_basic.tmp"; // temp file name used here
13 $fp = fopen($filename, "w"); // create file
18 var_dump( unlink($filename) );
19 var_dump( file_exists($filename) ); // confirm file doesnt exist
25 $filename = "$file_path/unlink_basic.tmp";
26 $fp = fopen($filename, "w"); // create file
30 var_dump( unlink($filename, $context) ); // using $context in second argument
31 var_dump( file_exists($filename) ); // confirm file doesnt exist
H A Dlchown_error.phpt9 $fp = fopen($filename, 'w');
11 if(fileowner($filename) == 0) {
12 unlink ($filename);
15 unlink($filename);
19 /* Prototype : bool lchown (string filename, mixed user)
29 touch( $filename );
34 var_dump( lchown( $filename ) );
37 var_dump( lchown( $filename, $uid, 'foobar' ) );
39 // Non-existent filename
47 var_dump( lchown( $filename, -5 ) );
[all …]
H A Dfile_put_contents_variation1.phpt15 $filename = "FilePutContentsVar1.tmp";
20 var_dump(file_put_contents($filename, $data));
21 var_dump(file_put_contents($filename, $extra, FILE_APPEND));
22 echo filesize($filename)."\n";
23 readfile($filename);
26 file_put_contents($filename, $data);
27 echo filesize($filename)."\n";
28 readfile($filename);
30 unlink($filename);
H A Drealpath_variation-win32.phpt24 $file_handle = fopen($filename, "w");
27 // creating object with members as filename
29 public $filename;
31 $this->filename = $file;
37 var_dump( realpath($obj1->filename) );
38 var_dump( realpath($obj2->filename) );
40 echo "\n*** Testing realpath() with filename stored in an array ***\n";
51 /* filename as spaces */
55 /* empty filename */
81 *** Testing realpath() with filename stored inside a object ***
[all …]
H A Dtouch_basic-win32.phpt24 @unlink($filename);
25 if (file_exists($filename)) {
28 var_dump( touch($filename) );
35 $h = fopen($filename, "wb");
38 touch($filename);
39 $h = fopen($filename, "rb");
44 $init_meta = stat($filename);
47 touch($filename);
48 $next_meta = stat($filename);
68 $init_meta = stat($filename);
[all …]
H A Dtouch_basic.phpt25 @unlink($filename);
26 if (file_exists($filename)) {
29 var_dump( touch($filename) );
36 $h = fopen($filename, "wb");
39 touch($filename);
40 $h = fopen($filename, "rb");
45 $init_meta = stat($filename);
48 touch($filename);
49 $next_meta = stat($filename);
69 $init_meta = stat($filename);
[all …]
H A Dfscanf.phpt12 file_put_contents($filename, "data");
14 $fp = fopen($filename, "rt");
19 $fp = fopen($filename, "rt");
24 $fp = fopen($filename, "rt");
32 $fp = fopen($filename, "rt");
40 $fp = fopen($filename, "rt");
46 @unlink($filename);
47 touch($filename);
49 $fp = fopen($filename, "rt");
56 $fp = fopen($filename, "rt");
[all …]
H A Dunlink_variation1-win32.phpt12 Description : Deletes filename
24 // temp filename used here
25 $filename = "$dirname/unlink_variation1-win32.tmp";
31 $fp = fopen($filename, "w");
38 // now try deleting $filename
39 var_dump( unlink($filename) ); // expected: true
51 $fp = fopen($filename, "w");
55 var_dump( chmod($filename, 0444) );
58 var_dump( unlink($filename) ); // expected: false
61 chmod($filename, 0777);
[all …]
/PHP-5.5/Zend/
H A Dzend_dtrace.c30 return EG(current_execute_data)->op_array->filename; in dtrace_get_executed_filename()
39 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename); in dtrace_compile_file()
50 const char *scope, *filename, *funcname, *classname; in dtrace_execute_ex() local
51 scope = filename = funcname = classname = NULL; in dtrace_execute_ex()
56 filename = dtrace_get_executed_filename(TSRMLS_C); in dtrace_execute_ex()
66 DTRACE_EXECUTE_ENTRY((char *)filename, lineno); in dtrace_execute_ex()
80 DTRACE_EXECUTE_RETURN((char *)filename, lineno); in dtrace_execute_ex()
87 const char *filename; in dtrace_execute_internal() local
89 filename = dtrace_get_executed_filename(TSRMLS_C); in dtrace_execute_internal()
94 DTRACE_EXECUTE_ENTRY((char *)filename, lineno); in dtrace_execute_internal()
[all …]
/PHP-5.5/ext/posix/tests/
H A Dposix_access.phpt22 $filename = dirname(__FILE__) . '/foo.test';
23 $fp = fopen($filename,"w");
27 chmod ($filename, 0000);
28 var_dump(posix_access($filename, POSIX_F_OK));
30 chmod ($filename, 0400);
31 var_dump(posix_access($filename, POSIX_R_OK));
33 chmod ($filename, 0600);
36 chmod ($filename, 0700);
42 $filename = dirname(__FILE__) . '/foo.test';
43 chmod ($filename, 0700);
[all …]
H A Dposix_access_error_modes.phpt22 $filename = dirname(__FILE__) . '/foo.test';
23 var_dump(posix_access($filename, POSIX_F_OK));
24 $fp = fopen($filename,"w");
28 chmod ($filename, 0000);
29 var_dump(posix_access($filename, POSIX_R_OK));
30 var_dump(posix_access($filename, POSIX_W_OK));
31 var_dump(posix_access($filename, POSIX_X_OK));
36 $filename = dirname(__FILE__) . '/foo.test';
37 chmod ($filename, 0700);
38 unlink($filename);
/PHP-5.5/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-5.5/ext/hash/tests/
H A Dhash_file_basic.phpt9 /* Prototype : string hash_file(string algo, string filename[, bool raw_output = false])
18 $filename = 'hash_file_example.txt';
19 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
21 var_dump( hash_file( 'md5', $filename ) );
22 var_dump( hash_file( 'sha1', $filename ) );
23 var_dump( hash_file( 'sha256', $filename ) );
24 var_dump( hash_file( 'sha512', $filename ) );
26 var_dump( base64_encode( hash_file( 'md5', $filename, true ) ) );
33 $filename = 'hash_file_example.txt';
34 unlink( $filename );
/PHP-5.5/ext/standard/tests/strings/
H A Dphp_strip_whitespace.phpt6 $filename = dirname(__FILE__)."/php_strip_whitespace.dat";
9 var_dump(php_strip_whitespace($filename));
12 file_put_contents($filename, $data);
13 var_dump(php_strip_whitespace($filename));
16 file_put_contents($filename, $data);
17 var_dump(php_strip_whitespace($filename));
36 file_put_contents($filename, $data);
37 var_dump(php_strip_whitespace($filename));
39 @unlink($filename);
/PHP-5.5/win32/build/
H A Dcvsclean.js52 function rm_r(filename) argument
54 if (FSO.FolderExists(filename)) {
55 var fc = new Enumerator(FSO.GetFolder(filename).SubFolders);
61 fc = new Enumerator(FSO.GetFolder(filename).Files);
67 FSO.DeleteFolder(filename, true);
68 } else if (FSO.FileExists(filename)) {
69 FSO.DeleteFile(filename, true);
72 var foldername = FSO.GetParentFolderName(filename);
77 var filename = FSO.GetFileName(filename);
79 var retext = filename.replace(/\./g, '\\.');
H A Dsvnclean.js52 function rm_r(filename) argument
54 if (FSO.FolderExists(filename)) {
55 var fc = new Enumerator(FSO.GetFolder(filename).SubFolders);
61 fc = new Enumerator(FSO.GetFolder(filename).Files);
67 FSO.DeleteFolder(filename, true);
68 } else if (FSO.FileExists(filename)) {
69 FSO.DeleteFile(filename, true);
72 var foldername = FSO.GetParentFolderName(filename);
77 var filename = FSO.GetFileName(filename);
79 var retext = filename.replace(/\./g, '\\.');
/PHP-5.5/scripts/dev/generate-phpt/src/
H A DgtCodeSnippet.php18 $filename = dirname(__FILE__) . '/codeSnippets/' . $name . '.txt';
20 if (!file_exists($filename)) {
24 $lines = file($filename);
40 $filename = dirname(__FILE__) . '/codeSnippets/' . $name . '.txt';
42 if (!file_exists($filename)) {
46 $text = file($filename);
/PHP-5.5/main/
H A Dfopen_wrappers.h39 # define OPENBASEDIR_CHECKPATH(filename) \ argument
40 …(PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_…
42 #define OPENBASEDIR_CHECKPATH(filename) \ argument
43 php_check_open_basedir(filename TSRMLS_CC)
49 PHPAPI char *php_resolve_path(const char *filename, int filename_len, const char *path TSRMLS_DC);
51 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **o…
H A Dfopen_wrappers.c362 char *filename = NULL; local
415 if (filename) {
430 if (filename) {
431 resolved_path = zend_resolve_path(filename, strlen(filename) TSRMLS_CC);
436 STR_FREE(filename);
453 STR_FREE(filename);
481 if (!filename || CHECK_NULL_PATH(filename, filename_length)) {
497 if ((*filename == '.' &&
499 ((filename[1] == '.') && IS_SLASH(filename[2])))) ||
625 if (!filename) {
[all …]
/PHP-5.5/ext/xmlreader/tests/
H A D002.phpt8 $filename = dirname(__FILE__) . '/_002.xml';
11 file_put_contents($filename, $xmlstring);
17 if (!$reader->open($filename)) {
27 unlink($filename);
28 touch($filename);
30 $reader->open($filename);
32 unlink($filename);

Completed in 46 milliseconds

12345678910>>...43