Home
last modified time | relevance | path

Searched refs:file (Results 451 – 475 of 1991) sorted by relevance

1...<<11121314151617181920>>...80

/PHP-5.5/ext/standard/tests/file/
H A Dfiletype_variation.phpt16 Description: Returns the type of the file. Possible values are fifo, char,
17 dir, block, link, file, and unknown.
59 /* Checking with block in file */
67 file
68 file
70 file
H A Dfpassthru_variation.phpt7 Description: Reads to EOF on the given file pointer from the current position
33 /* Negative offsets, the file pointer should be at the end of file
60 echo "\n--- Testing with binary mode file ---\n";
61 /* Opening the file in binary read mode */
111 --- Testing with binary mode file ---
H A Dmove_uploaded_file_basic.phpt36 echo "Original name of uploaded file\n";
40 echo "Non-uploaded source file\n";
45 echo "Valid move to existing file\n";
63 Original name of uploaded file
65 Non-uploaded source file
67 Valid move to existing file
H A Dfgetcsv.phpt28 $file = dirname(__FILE__) . 'fgetcsv.csv';
29 @unlink($file);
31 $fp = fopen($file, "w");
35 var_dump(fgetcsv(fopen($file, "r"), 1024));
37 @unlink($file);
H A Dsymlink_link_linkinfo_is_link_error2.phpt18 Description: Tells whether the given file is a symbolic link.
29 $fp = fopen($filename, "w"); // create temp file
63 var_dump( is_link($filename) ); // file given to is_link
80 Warning: link(): No such file or directory in %s on line %d
83 Warning: link(): No such file or directory in %s on line %d
86 Warning: link(): No such file or directory in %s on line %d
89 Warning: link(): No such file or directory in %s on line %d
92 Warning: link(): No such file or directory in %s on line %d
95 Warning: link(): No such file or directory in %s on line %d
98 Warning: link(): No such file or directory in %s on line %d
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 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 Dfputcsv_002.phpt6 $file = dirname(__FILE__) .'/fgetcsv-test.csv';
10 $fp = fopen($file, 'w');
16 @unlink($file);
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 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 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 Dis_uploaded_file_basic.phpt20 // uploaded file
23 // not an uploaded file
26 // not an uploaded file
29 // not an uploaded file
/PHP-5.5/ext/fileinfo/tests/
H A Dfinfo_open_001.phpt22 Warning: finfo_open(%s123): failed to open stream: No such file or directory in %s on line %d
24 Warning: finfo_open(%s123): failed to open stream: No such file or directory in %s on line %d
29 Warning: finfo_open(%s1): failed to open stream: No such file or directory in %s on line %d
31 Warning: finfo_open(%s1): failed to open stream: No such file or directory in %s on line %d
36 Warning: finfo_open(%sinexistent): failed to open stream: No such file or directory in %s on line %d
38 Warning: finfo_open(%sinexistent): failed to open stream: No such file or directory in %s on line %d
/PHP-5.5/ext/spl/tests/
H A Dbug36287.phpt9 foreach($it as $file)
12 var_Dump($file->getFilename());
14 var_dump($file->getFilename());
H A DRecursiveDirectoryIterator_getSubPath_basic.phpt30 foreach(glob($dir . '/*') as $file) {
31 if(is_dir($file)) {
32 rrmdir($file);
34 unlink($file);
/PHP-5.5/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
/PHP-5.5/ext/gd/tests/
H A Dimagegd2_nullbyte_injection.phpt9 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
28 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Dimagegd_nullbyte_injection.phpt9 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
28 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
/PHP-5.5/ext/curl/tests/
H A Dcurl_write_file.phpt7 …tes the value 'test' to a temporary file. Use curl to access this file and store the output in ano…
24 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
/PHP-5.5/ext/zip/tests/
H A Doo_namelocate.phpt12 $file = $dirname . '__tmp_oo_rename.zip';
14 @unlink($file);
17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
30 if (!$zip->open($file)) {
/PHP-5.5/ext/standard/tests/image/
H A Dgetimagesize.phpt13 while (($file = readdir($dir)) !== FALSE) {
14 if (preg_match('/^test.+pix\./',$file) && $file != "test13pix.swf") {
15 $files[] = $file;
20 foreach($files as $file) {
21 $result[$file] = getimagesize(dirname(__FILE__)."/$file");
/PHP-5.5/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-5.5/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-5.5/ext/sqlite3/tests/
H A Dsqlite3_21_security.phpt10 $file = uniqid() . '.db';
13 $db = new SQLite3($directory . $file);
16 unlink($directory . $file);
20 $db = new SQLite3('../bad' . $file);

Completed in 28 milliseconds

1...<<11121314151617181920>>...80