/PHP-5.4/ext/sqlite3/tests/ |
H A D | sqlite3_21_security.phpt | 10 $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 D | imagejpeg_nullbyte_injection.phpt | 5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } 31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
H A D | imagepng_nullbyte_injection.phpt | 5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } 31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
H A D | imagewbmp_nullbyte_injection.phpt | 5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } 31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
H A D | imagewebp_nullbyte_injection.phpt | 5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } 31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
H A D | imagegif_nullbyte_injection.phpt | 5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } 31 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
H A D | createfromgd2.phpt | 9 $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 D | fscanf_variation26.phpt | 8 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 D | lstat_stat_variation14.phpt | 12 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 D | file_put_contents_variation6.phpt | 7 /* 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 D | filegroup_basic.phpt | 12 * 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 D | fopen_variation7.phpt | 2 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 D | fopen_variation9.phpt | 2 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 D | fgetss_variation2.phpt | 7 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 D | touch_basic-win32.phpt | 14 * 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 D | touch_basic.phpt | 15 * 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 D | 005_variation.phpt | 16 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 D | fseek_ftell_rewind_error2.phpt | 7 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 D | fseek_ftell_rewind_error3.phpt | 7 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 D | lstat_stat_variation18.phpt | 2 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 D | fwrite_basic-win32.phpt | 19 // 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 D | fwrite_basic.phpt | 19 // 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 D | zf_test.phpt | 12 $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 D | dba_db4_016.phpt | 2 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 D | imap_savebody_basic.phpt | 23 $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";
|