Home
last modified time | relevance | path

Searched refs:file (Results 501 – 525 of 2191) sorted by relevance

1...<<21222324252627282930>>...88

/PHP-7.1/ext/dba/tests/
H A Ddba_db4_015.phpt17 echo "database file created\n";
22 echo "database file opened\n";
37 database file created
38 database file opened
H A Ddba_db4_013.phpt17 echo "database file created\n";
22 echo "database file opened\n";
37 database file created
38 database file opened
/PHP-7.1/ext/spl/tests/
H A DRecursiveDirectoryIterator_getSubPath_basic.phpt30 foreach(glob($dir . '/*') as $file) {
31 if(is_dir($file)) {
32 rrmdir($file);
34 unlink($file);
/PHP-7.1/ext/standard/tests/file/
H A Dfile_put_contents_variation8-win32.phpt12 /* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
13 * Description: Write/Create a file with contents data and return the number of bytes written
14 * Source code: ext/standard/file.c
32 "/no/such/file/dir" => "/no/such/file/dir",
89 -- Filename: /no/such/file/dir --
91 Warning: file_put_contents(/no/such/file/dir): failed to open stream: %s in %s on line %d
92 Failed to write data to: /no/such/file/dir
H A Dfiletype_basic.phpt7 Description: Returns the type of the file. Possible values are fifo, char,
8 dir, block, link, file, and unknown.
20 file
H A Drename_variation13.phpt13 * Description: Rename a file
14 * Source code: ext/standard/file.c
37 "/no/such/file/dir",
67 Warning: rename(-1,%s/renameVar13/afile.tmp): No such file or directory in %s on line %d
72 Warning: rename(1,%s/renameVar13/afile.tmp): No such file or directory in %s on line %d
98 Warning: rename( ,%s/renameVar13/afile.tmp): No such file or directory in %s on line %d
118 -- testing '/no/such/file/dir' --
120 Warning: rename(%s/renameVar13/afile.tmp,/no/such/file/dir): No such file or directory in %s on lin…
123 Warning: rename(/no/such/file/dir,%s/renameVar13/afile.tmp): No such file or directory in %s on lin…
H A Dis_writable_variation1.phpt26 /* test is_writable() & is_writeable() with file having different filepath notation */
27 require dirname(__FILE__).'/file.inc';
33 // create a new temporary file
42 /* Testing a file trailing slash */
45 /* Testing file with double slashes */
62 is a writable file */
63 foreach($files_arr as $file) {
65 var_dump( is_writable($file) );
66 var_dump( is_writeable($file) );
H A Dis_uploaded_file_basic.phpt20 // uploaded file
23 // not an uploaded file
26 // not an uploaded file
29 // not an uploaded file
H A Dfgets_variation5.phpt7 Description: Gets a line from file pointer
10 // include the file.inc for common test funcitons
11 include ("file.inc");
34 echo "Error: failed to open file $filename!";
38 /* read with length beyong file size */
47 //close file
50 // delete file
60 -- Testing fgets() with file opened using mode w+ --
87 -- Testing fgets() with file opened using mode w+b --
114 -- Testing fgets() with file opened using mode w+t --
[all …]
H A Dflock.phpt6 $file = dirname(__FILE__)."/flock.dat";
11 $fp = fopen($file, "w");
16 $fp = fopen($file, "w");
40 $file = dirname(__FILE__)."/flock.dat";
41 unlink($file);
H A Dfopen_variation9.phpt2 Test fopen() function : variation: use include path and stream context create a file, relative path
8 * Description: Open a file or a URL and return a file pointer
9 * Source code: ext/standard/file.c
35 fwrite($h, (binary) "This is the test file");
H A Dfile_put_contents_variation6.phpt7 /* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
8 * Description: Write/Create a file with contents data and return the number of bytes written
9 * Source code: ext/standard/file.c
40 //correct php53 behaviour is to ignore the FILE_USE_INCLUDE_PATH unless the file already exists
41 // in the include path. In this case it doesn't so the file should be written in the current dir.
H A Dfilegroup_basic.phpt12 * Description: Returns the group ID of the file, or FALSE in case of an error.
17 echo "-- Testing with the file or directory created by owner --\n";
37 echo "\n-- Testing with the standard file or directory --\n";
55 -- Testing with the file or directory created by owner --
62 -- Testing with the standard file or directory --
H A Dfopen_variation7.phpt2 Test fopen() function : variation: use include path create a file (relative)
8 * Description: Open a file or a URL and return a file pointer
9 * Source code: ext/standard/file.c
35 fwrite($h, (binary)"This is the test file");
/PHP-7.1/ext/phar/tests/tar/
H A Dlinks4.phpt2 Phar: tar with link to root directory file from root directory file
14 echo $p['file.txt']->getContent();
/PHP-7.1/ext/standard/tests/strings/
H A D007-win32.phpt9 $file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
11 var_dump(php_strip_whitespace($file));
17 Warning: php_strip_whitespace(%s): failed to open stream: No such file or directory in %s on line %d
H A Durl_t.phpt60 'zlib:/path/to/my/file/file.txt',
66 'file:///path/to/file',
67 'file://path/to/file',
68 'file:/path/to/file',
644 --> zlib:/path/to/my/file/file.txt: array(2) {
648 string(25) "/path/to/my/file/file.txt"
696 --> file:///path/to/file: array(2) {
698 string(4) "file"
703 --> file://path/to/file: array(3) {
705 string(4) "file"
[all …]
/PHP-7.1/ext/phar/tests/
H A Dbug77022.phpt19 $phar->addFile($sFile, 'test-file-phar');
20 $phar->addFromString("test-from-string", 'test-file-phar');
22 var_dump(decoct(stat(__DIR__ . '/test-file-phar')['mode']));
24 unlink(__DIR__ . '/test-file-phar');
H A Dzf_test.phpt12 $file = "zfapp";
13 $orig_file = dirname(__FILE__) . "/files/$file.tgz";
14 $tgz_file = dirname(__FILE__) . "/$file.tgz";
15 $phar_file = dirname(__FILE__) . "/$file.phar.tar.gz";
25 Phar::webPhar('$file.phar', 'html/index.php');
/PHP-7.1/ext/zlib/tests/
H A Dreadgzfile_variation5.phpt28 Warning: readgzfile(0): failed to open stream: No such file or directory in %s on line %d
31 Warning: readgzfile(1): failed to open stream: No such file or directory in %s on line %d
34 Warning: readgzfile(12345): failed to open stream: No such file or directory in %s on line %d
37 Warning: readgzfile(-2345): failed to open stream: No such file or directory in %s on line %d
H A Dgzfile_variation5.phpt28 Warning: gzfile(0): failed to open stream: No such file or directory in %s on line %d
31 Warning: gzfile(1): failed to open stream: No such file or directory in %s on line %d
34 Warning: gzfile(12345): failed to open stream: No such file or directory in %s on line %d
37 Warning: gzfile(-2345): failed to open stream: No such file or directory in %s on line %d
/PHP-7.1/ext/sqlite3/tests/
H A Dsqlite3_21_security.phpt12 $file = uniqid() . '.db';
15 $db = new SQLite3($directory . $file);
18 unlink($directory . $file);
22 $db = new SQLite3('../bad' . $file);
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_cmd.c78 efree(param->file.name); in phpdbg_clear_param()
117 ZEND_IGNORE_VALUE(asprintf(pointer, "%s:%lu", param->file.name, param->file.line)); in phpdbg_param_tostring()
168 dest->file.name = estrdup(src->file.name); in phpdbg_copy_param()
169 dest->file.line = src->file.line; in phpdbg_copy_param()
213 hash += zend_inline_hash_func(param->file.name, strlen(param->file.name)); in phpdbg_hash_param()
214 hash += param->file.line; in phpdbg_hash_param()
276 if (l->file.line == r->file.line) { in phpdbg_match_param()
278 strlen(l->file.name), strlen(r->file.name)}; in phpdbg_match_param()
283 l->file.name, r->file.name, lengths[0]) == SUCCESS); in phpdbg_match_param()
340 fprintf(stderr, "%s FILE_PARAM(%s:%lu)\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
[all …]
/PHP-7.1/ext/opcache/tests/
H A Dbug71127.phpt11 $file = __DIR__ . "/bug71127.inc";
13 file_put_contents($file, "<?php define('FOO', 'bad'); echo FOO;?>");
17 include($file);
/PHP-7.1/ext/imap/tests/
H A Dimap_savebody_basic.phpt23 $file = dirname(__FILE__).'/tmpsavebody.txt';
26 $z = imap_savebody($stream_id, $file, 1);
28 echo "Size: ".filesize($file)."\n";
31 $fp = fopen($file, 'w');
35 echo "Size: ".filesize($file)."\n";

Completed in 28 milliseconds

1...<<21222324252627282930>>...88