/PHP-5.5/tests/basic/ |
H A D | rfc1867_max_file_uploads_empty_files_debug.phpt | 13 Content-Type: text/plain-file 18 Content-Type: text/plain-file 23 Content-Type: text/plain-file 28 Content-Type: text/plain-file 41 Notice: No file uploaded in Unknown on line 0 43 Notice: No file uploaded in Unknown on line 0 45 Warning: Uploaded file size 0 - file [file4=file4.txt] not saved in Unknown on line 0 91 string(15) "text/plain-file"
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | rename_variation3-win32.phpt | 12 Description: Renames a file or directory 15 require dirname(__FILE__).'/file.inc'; 22 /* test rename() by trying to rename an existing file/dir to the same name 32 echo "\n-- Renaming file to same file name --\n"; 40 echo "\n-- Renaming existing file to existing directory name --\n"; 45 echo "\n-- Renaming existing directory to existing file name --\n"; 64 -- Renaming file to same file name -- 72 -- Renaming existing file to existing directory name -- 79 -- Renaming existing directory to existing file name --
|
H A D | rename_variation5.phpt | 18 //create a file 29 echo "\n-- Renaming file to same file name --\n"; 37 echo "\n-- Renaming existing link to existing file name --\n"; 40 echo "\n-- Renaming existing file to existing directory name --\n"; 42 echo "\n-- Renaming existing file to existing link name --\n"; 45 echo "\n-- Renaming existing directory to existing file name --\n"; 65 -- Renaming file to same file name -- 76 -- Renaming existing link to existing file name -- 79 -- Renaming existing file to existing directory name -- 84 -- Renaming existing file to existing link name -- [all …]
|
H A D | bug39538.phpt | 7 $file = dirname(__FILE__) . "/bug39538.csv"; 8 @unlink($file); 10 file_put_contents($file, $v); 11 print_r (fgetcsv(fopen($file, "r"), filesize($file))); 13 @unlink($file);
|
H A D | file_variation9.phpt | 2 Test file function : variation - test various endings of a file 7 /* Prototype : array file(string filename [, int flags[, resource context]]) 8 * Description: Read entire file into an array 9 * Source code: ext/standard/file.c 13 echo "*** Testing file() : variation ***\n"; 29 var_dump(file($testfile)); 36 *** Testing file() : variation ***
|
H A D | lstat_stat_variation1.phpt | 2 Test lstat() and stat() functions: usage variations - effects of rename() on file 12 Description: Gives information about a file or symbolic link 15 Description: Gives information about a file 18 /* test the effects of rename() on stats of file */ 21 require "$file_path/file.inc"; 23 /* create temp file */ 24 $fp = fopen("$file_path/lstat_stat_variation1.tmp", "w"); // temp file 27 // renaming a file and check stat
|
H A D | copy_basic.phpt | 6 * Description: Makes a copy of the file source to dest. 10 echo "*** Testing copy() function: to copy file from source to destination --\n"; 14 /* copying the file */ 21 echo "-- Checking whether the copy of file exists --\n"; 25 echo "-- Checking filepermissions of file and its copies --\n"; 46 *** Testing copy() function: to copy file from source to destination -- 50 -- Checking whether the copy of file exists -- 53 -- Checking filepermissions of file and its copies --
|
H A D | fscanf_variation53.phpt | 8 Description: Parses input from a file according to a format 11 /* Test fscanf() to read a file when file pointer is pointing to EOF */ 15 echo "*** Test fscanf(): to read a file when file pointer is pointing to EOF ***\n"; 32 // create an empty file 36 exit("Error:failed to open file $filename"); 38 //writing data to the file 44 //closing the file 47 // opening file in $mode mode 50 exit("Error:failed to open file $filename"); 57 // set the file pointer to eof [all …]
|
H A D | filetype_error.phpt | 7 Description: Returns the type of the file. Possible values are fifo, char, 8 dir, block, link, file, and unknown. 12 /* non-existing file or dir */ 13 print( filetype("/no/such/file/dir") ); 23 print( filetype("file", "file") ); 29 Warning: filetype(): Lstat failed for /no/such/file/dir in %s on line %d
|
H A D | bug44805.phpt | 15 file_put_contents($file1, "this is file 1"); 16 file_put_contents($file2, "this is file 2"); 20 echo "reading file 2: "; 30 reading file 2: this is file 1
|
H A D | unlink_variation6.phpt | 8 * Description: Delete a file 9 * Source code: ext/standard/file.c 26 function f_exists($file) { 27 if (file_exists($file) == true) { 28 echo "$file exists\n"; 31 echo "$file doesn't exist\n";
|
H A D | bug40374.phpt | 6 $file = tempnam(sys_get_temp_dir(), "test_"); 7 var_dump($file); 8 $fp = fopen($file, "wt"); 11 unlink($file);
|
H A D | fgetc_variation3.phpt | 7 Description: Gets character from file pointer 16 include ("file.inc"); 18 echo "*** Testing fgetc() with file opened in write only mode ***\n"; 27 echo "Error: failed to open file $filename!\n"; 33 // rewind the file pointer to beginning of the file 38 // read from file 40 var_dump( ftell($file_handle) ); // ensure that file pointer position is not changed 41 var_dump( feof($file_handle) ); // check if end of file pointer is set 43 // close the file 46 // delete the file [all …]
|
H A D | fgets_variation1.phpt | 7 Description: Gets a line from file pointer 15 include ("file.inc"); 17 echo "*** Testing fgets() with file opened in write only mode ***\n"; 26 echo "Error: failed to open file $filename!\n"; 32 // rewind the file pointer to beginning of the file 37 // read from file 39 var_dump( ftell($file_handle) ); // ensure that file pointer position is not changed 40 var_dump( feof($file_handle) ); // check if end of file pointer is set 42 // close the file 45 // delete the file [all …]
|
H A D | fscanf_variation51.phpt | 2 Test fscanf() function: usage variations - file opened in write only mode 8 Description: Parses input from a file according to a format 11 /* Test fscanf() to scan a file for read when file is opened inwrite only mode */ 15 echo "*** Test fscanf(): to read from a file opened in write only mode ***\n"; 17 // create a file 21 exit("Error:failed to open file $filename"); 22 //writing data to the file 25 //closing the file 40 // reading the values from file using different integer formats 45 exit("Error:failed to open file $filename"); [all …]
|
/PHP-5.5/ext/phar/tests/ |
H A D | phar_copy.phpt | 17 $iname = '/file.txt'; 79 file "notexisting" cannot be copied to file "another", file does not exist in %sphar_copy2.phar.php 80 file "a" cannot be copied to file "b", file must not already exist in phar %sphar_copy2.phar.php 82 file "d" cannot be copied to file ".phar/stub.php", cannot copy to Phar meta-file in %sphar_copy2.p… 83 file ".phar/stub.php" cannot be copied to file "d", cannot copy Phar meta-file in %sphar_copy2.phar…
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | sha1_file.phpt | 7 * Description: Calculate the sha1 hash of a file 12 /* Creating an empty file */ 16 /* Creating a data file */ 20 /* Writing into file */ 22 $content = b"Add this to the file\n"; 25 echo "Cannot write to file ($filename)"; 58 echo "\n-- Raw Binary Output for Empty file as Argument --\n"; 108 -- Hexadecimal Output for Empty file as Argument -- 111 -- Raw Binary Output for Empty file as Argument -- 114 -- Hexadecimal Output for a valid file with some contents -- [all …]
|
/PHP-5.5/ext/standard/tests/url/ |
H A D | urls.inc | 33 'http://www.php.net:80/this/is/a/very/deep/directory/../file.php', 57 'zlib:/path/to/my/file/file.txt', 63 'file:///path/to/file', 64 'file://path/to/file', 65 'file:/path/to/file', 82 'file:///:', 83 'file:///a:/', 84 'file:///ab:/', 85 'file:///a:/', 86 'file:///@:/', [all …]
|
H A D | parse_url_basic_007.phpt | 53 ….php.net:80/this/is/a/very/deep/directory/../file.php : string(42) "/this/is/a/very/deep/directo… 77 --> zlib:/path/to/my/file/file.txt : string(25) "/path/to/my/file/file.txt" 83 --> file:///path/to/file : string(13) "/path/to/file" 84 --> file://path/to/file : string(8) "/to/file" 85 --> file:/path/to/file : string(13) "/path/to/file" 102 --> file:///: : string(2) "/:" 103 --> file:///a:/ : string(3) "a:/" 104 --> file:///ab:/ : string(5) "/ab:/" 105 --> file:///a:/ : string(3) "a:/" 106 --> file:///@:/ : string(3) "@:/" [all …]
|
/PHP-5.5/ext/spl/examples/ |
H A D | phar_from_dir.php | 42 foreach($dir as $file) 44 echo "$file\n"; 45 copy($file, "phar://newphar/$file");
|
H A D | dbareader.inc | 3 /** @file dbareader.inc 25 * Open database $file with $handler in read only mode. 27 * @param file Database file to open. 30 function __construct($file, $handler) { 31 if (!$this->db = dba_open($file, 'r', $handler)) { 32 throw new exception('Could not open file ' . $file);
|
/PHP-5.5/ext/xmlreader/tests/ |
H A D | 007.phpt | 11 $file = dirname(__FILE__) . '/_007.xml'; 12 file_put_contents($file, $xmlstring); 15 $reader->open($file); 21 print "file relaxNG: ok\n"; 23 print "file relaxNG: failed\n"; 26 unlink($file); 53 file relaxNG: ok
|
/PHP-5.5/Zend/tests/ |
H A D | bug52508.phpt | 6 $file = dirname(__FILE__) .'/bug52508.ini'; 8 file_put_contents($file, "a = 1"); 10 $ini_array = parse_ini_file($file, true, INI_SCANNER_RAW); 13 unlink($file);
|
/PHP-5.5/ext/fileinfo/ |
H A D | fileinfo.php | 12 foreach ($files as $file) { 13 echo finfo_file($res, $file) . "\n"; 26 foreach ($files as $file) { 27 echo $fi->buffer(file_get_contents($file)) . "\n";
|
/PHP-5.5/tests/lang/ |
H A D | bug38579.phpt | 2 Bug #38579 (include_once() may include the same file twice) 11 $file = dirname(__FILE__)."/bug38579.inc"; 12 include_once(strtolower($file)); 13 include_once(strtoupper($file));
|