Home
last modified time | relevance | path

Searched refs:file (Results 476 – 500 of 1965) sorted by relevance

1...<<11121314151617181920>>...79

/PHP-5.4/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);
/PHP-5.4/ext/gd/tests/
H A Dimagejpeg_nullbyte_injection.phpt5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Dimagepng_nullbyte_injection.phpt5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Dimagewbmp_nullbyte_injection.phpt5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Dimagewebp_nullbyte_injection.phpt5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Dimagegif_nullbyte_injection.phpt5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Dcreatefromgd2.phpt9 $file = dirname(__FILE__) . '/src.gd2';
11 $im2 = imagecreatefromgd2($file);
16 $im3 = imagecreatefromgd2part($file, 4,4, 2,2);
/PHP-5.4/ext/standard/tests/file/
H A Dfscanf_variation26.phpt8 Description: Parses input from a file according to a format
17 // create a file
21 exit("Error:failed to open file $filename");
34 // writing to the file
39 // closing the file
42 // opening the file for reading
45 exit("Error:failed to open file $filename");
49 // reading the values from file using different char formats
51 // rewind the file so that for every foreach iteration the file pointer starts from bof
H A Dlstat_stat_variation14.phpt12 Description: Gives information about a file or symbolic link
15 Description: Gives information about a file
21 require "$file_path/file.inc";
24 /* create temp file & link */
26 $fp = fopen($filename, "w"); // temp 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";
57 -- Testing with the file or directory created by owner --
64 -- 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");
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 Dfgetss_variation2.phpt7 Description: Gets line from file pointer and strip HTML tags
10 // include the common file related test functions
11 include ("file.inc");
39 create_file ($filename); //create an empty file
43 echo "Error: failed to open file $filename!\n";
47 // rewind the file pointer to beginning of the file
53 /* rewind the file and read the file line by line with allowable tags */
64 // close the file
66 // delete the file
75 -- Testing fgetss() with file opened using r mode --
[all …]
H A Dtouch_basic-win32.phpt14 * Description: Set modification time of file
23 echo "\n--- testing touch creates a file ---\n";
33 echo "\n --- testing touch doesn't alter file contents ---\n";
43 echo "\n\n --- testing touch alters the correct file metadata ---\n";
80 --- testing touch creates a file ---
83 --- testing touch doesn't alter file contents ---
86 --- testing touch alters the correct file metadata ---
H A Dtouch_basic.phpt15 * Description: Set modification time of file
24 echo "\n--- testing touch creates a file ---\n";
34 echo "\n --- testing touch doesn't alter file contents ---\n";
44 echo "\n\n --- testing touch alters the correct file metadata ---\n";
81 --- testing touch creates a file ---
84 --- testing touch doesn't alter file contents ---
87 --- testing touch alters the correct file metadata ---
H A D005_variation.phpt16 Description: Returns the time the file was last accessed, or FALSE
20 Description: Returns the time the file was last modified, or FALSE
24 Description: Returns the time the file was last changed, or FALSE
34 Description: Prints access, modification and change times of a file
137 /* set to access(creation time of the file) time */
153 /* touch() after renaming the file */
196 -- Checking different times, just after creating the file --
201 -- Checking different times, after changing the file permission --
206 -- Checking different times, after writing into the file --
211 -- Checking different times, after reading from the file --
[all …]
H A Dfseek_ftell_rewind_error2.phpt7 Description: Seeks on a file pointer
10 Description: Rewind the position of a file pointer
13 Description: Tells file pointer read/write position
42 // ftell on a file handle which is already closed
43 echo "-- Testing ftell with closed/unset file handle --";
47 // ftell on a file handle which is unset
49 unset($file_handle); //unset file handle
89 -- Testing ftell with closed/unset file handle --
H A Dfseek_ftell_rewind_error3.phpt7 Description: Seeks on a file pointer
10 Description: Rewind the position of a file pointer
13 Description: Tells file pointer read/write position
42 // rewind on a file handle which is already closed
43 echo "-- Testing rewind() with closed/unset file handle --";
47 // rewind on a file handle which is unset
49 unset($file_handle); //unset file handle
89 -- Testing rewind() with closed/unset file handle --
H A Dlstat_stat_variation18.phpt2 Test lstat() and stat() functions: usage variations - dir/file name stored in object
12 Description: Gives information about a file or symbolic link
15 Description: Gives information about a file
18 /* test for stats of dir/file when their names are stored in objects */
21 require "$file_path/file.inc";
24 /* create temp file and directory */
26 $fp = fopen("$file_path/lstat_stat_variation18.tmp", "w"); // temp file
41 // file name stored in an object
H A Dfwrite_basic-win32.phpt19 // include the file.inc for Function: function delete_file($filename)
20 include ("file.inc");
24 test fwrite with file opened in mode : w,wb,wt,w+,w+b,w+t
41 echo "Error: failed to fopen() file: $filename!";
47 /* Write the data in to the file, verify the write by checking file pointer position,
65 // close the file, get the size and content of the file.
67 clearstatcache();//clears file status cache
73 // delete the file created : fwrite_basic.tmp
81 -- Testing fwrite() with file having data of type numeric --
167 -- Testing fwrite() with file having data of type text --
[all …]
H A Dfwrite_basic.phpt19 // include the file.inc for Function: function delete_file($filename)
20 include ("file.inc");
24 test fwrite with file opened in mode : w,wb,wt,w+,w+b,w+t
41 echo "Error: failed to fopen() file: $filename!";
47 /* Write the data in to the file, verify the write by checking file pointer position,
65 // close the file, get the size and content of the file.
67 clearstatcache();//clears file status cache
73 // delete the file created : fwrite_basic.tmp
81 -- Testing fwrite() with file having data of type numeric --
167 -- Testing fwrite() with file having data of type text --
[all …]
/PHP-5.4/ext/phar/tests/
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-5.4/ext/dba/tests/
H A Ddba_db4_016.phpt2 DBA DB4 File Creation popen("c") with existing valid file
18 echo "database file created\n";
32 echo "database file created\n";
52 database file created
55 database file created
/PHP-5.4/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 23 milliseconds

1...<<11121314151617181920>>...79