/PHP-7.1/ext/standard/tests/file/ |
H A D | fgetcsv_variation13.phpt | 32 echo "Error: failed to create file $filename!\n"; 39 // else rewind the file pointer to beginning of the file 44 // rewind the file pointer to bof 54 // check the file pointer position and if eof 58 // close the file 60 //delete file 69 -- Testing fgetcsv() with file opened using r mode -- 77 -- Testing fgetcsv() with file opened using rb mode -- 85 -- Testing fgetcsv() with file opened using rt mode -- 93 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation20.phpt | 34 echo "Error: failed to create file $filename!\n"; 41 // else rewind the file pointer to beginning of the file 46 // rewind the file pointer to bof 57 // check the file pointer position and if eof 61 // close the file 63 //delete file 72 -- Testing fgetcsv() with file opened using r mode -- 80 -- Testing fgetcsv() with file opened using rb mode -- 88 -- Testing fgetcsv() with file opened using rt mode -- 96 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation25.phpt | 50 echo "Error: failed to create file $filename!\n"; 65 // else rewind the file pointer to beginning of the file 70 // rewind the file pointer to bof 80 // check the file pointer position and if eof 84 // close the file 86 //delete file 96 -- Testing fgetcsv() with file opened using r mode -- 103 -- Testing fgetcsv() with file opened using rb mode -- 110 -- Testing fgetcsv() with file opened using rt mode -- 117 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation27.phpt | 50 echo "Error: failed to create file $filename!\n"; 65 // else rewind the file pointer to beginning of the file 70 // rewind the file pointer to bof 80 // check the file pointer position and if eof 84 // close the file 86 //delete file 96 -- Testing fgetcsv() with file opened using r mode -- 103 -- Testing fgetcsv() with file opened using rb mode -- 110 -- Testing fgetcsv() with file opened using rt mode -- 117 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation28.phpt | 50 echo "Error: failed to create file $filename!\n"; 65 // else rewind the file pointer to beginning of the file 70 // rewind the file pointer to bof 80 // check the file pointer position and if eof 84 // close the file 86 //delete file 96 -- Testing fgetcsv() with file opened using r mode -- 103 -- Testing fgetcsv() with file opened using rb mode -- 110 -- Testing fgetcsv() with file opened using rt mode -- 117 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation3.phpt | 47 echo "Error: failed to create file $filename!\n"; 62 // else rewind the file pointer to beginning of the file 67 // rewind the file pointer to bof 78 // check the file pointer position and if eof 82 // close the file 84 //delete file 94 -- Testing fgetcsv() with file opened using r mode -- 101 -- Testing fgetcsv() with file opened using rb mode -- 108 -- Testing fgetcsv() with file opened using rt mode -- 115 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation4.phpt | 47 echo "Error: failed to create file $filename!\n"; 61 // else rewind the file pointer to beginning of the file 66 // rewind the file pointer to bof 77 // check the file pointer position and if eof 81 // close the file 83 //delete file 93 -- Testing fgetcsv() with file opened using r mode -- 100 -- Testing fgetcsv() with file opened using rb mode -- 107 -- Testing fgetcsv() with file opened using rt mode -- 114 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation5.phpt | 50 echo "Error: failed to create file $filename!\n"; 64 // else rewind the file pointer to beginning of the file 69 // rewind the file pointer to bof 79 // check the file pointer position and if eof 83 // close the file 85 //delete file 95 -- Testing fgetcsv() with file opened using r mode -- 102 -- Testing fgetcsv() with file opened using rb mode -- 109 -- Testing fgetcsv() with file opened using rt mode -- 116 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | file_put_contents.phpt | 10 $file = dirname(__FILE__)."/file_put_contents.txt"; 14 var_dump(file_put_contents($file, $context)); 15 var_dump(file_put_contents($file, new stdClass)); 16 var_dump(file_put_contents($file, new foo)); 17 $fp = fopen($file, "r"); 18 var_dump(file_put_contents($file, "string", 0, $fp)); 20 @unlink($file);
|
H A D | stat_variation3-win32.phpt | 2 Test stat() functions: usage variations - effects of creating/deleting the dir/file 14 * Description: Gives information about a file 17 /* test the effects of creating & deleting of subdir/file on the stats of dir/file */ 20 require "$file_path/file.inc"; 23 /* create temp file and directory */ 26 echo "*** Testing stat(): with creating & deleting subdir/file ***\n"; 29 echo "-- Testing stat() on dir after subdir and file is created in it --\n"; 51 // comparing stats after the deletion of subdir and file 68 *** Testing stat(): with creating & deleting subdir/file *** 69 -- Testing stat() on dir after subdir and file is created in it -- [all …]
|
H A D | lstat_stat_variation13.phpt | 2 Test lstat() and stat() functions: usage variations - file opened using w and r mode 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 19 /* use stat on file created using "w" and "r" mode of fopen */ 22 require "$file_path/file.inc"; 27 echo "*** Checking stat() on a file opened using read/write mode ***\n"; 28 $file_handle = fopen($filename, "w"); // create file 34 // opening file again in read mode 35 $file_handle = fopen($filename, "r"); // read file 52 *** Checking stat() on a file opened using read/write mode ***
|
H A D | stat_variation5-win32.phpt | 2 Test stat() functions: usage variations - file opened in read/write mode 14 * Description: Gives information about a file 17 /* test the stats of file opened in write mode and then same in read mode */ 20 require "$file_path/file.inc"; 23 $file_handle = fopen("$file_path/stat_variation5.tmp", "w"); // temp file 27 echo "\n*** Testing stat(): on a file with read/write permission ***\n"; 30 $file_handle = fopen($filename, "w"); // create file 36 // opening file again in read mode 37 $file_handle = fopen($filename, "r"); // read file 58 *** Testing stat(): on a file with read/write permission ***
|
H A D | stream_001.phpt | 6 var_dump(stream_wrapper_unregister('file')); 7 var_dump(fopen("file://".__FILE__, "r")); 8 var_dump(stream_wrapper_restore('file')); 9 var_dump(fopen("file://".__FILE__, "r")); 16 Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configur… 18 Warning: fopen(): file:// wrapper is disabled in the server configuration in %s on line %d 20 Warning: fopen(file://%s): failed to open stream: no suitable wrapper could be found in %s on line …
|
H A D | 007_variation9.phpt | 9 Description: Opens file or URL. 14 Description: Closes an open file pointer 17 /* Test fopen() and fclose(): Opening the file in "rt" mode, 18 checking for the file creation, write & read operations, 19 checking for the file pointer position, 23 require($file_path."/file.inc"); 26 $file = $file_path."/007_variation9.tmp"; 30 $file_handle = fopen($file, "rt"); //opening the file in "rt" mode 33 var_dump( ftell($file_handle) ); //Initial position of file pointer 36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
|
H A D | 007_variation1.phpt | 9 Description: Opens file or URL. 14 Description: Closes an open file pointer 17 /* Test fopen() and fclose(): Opening the file in "r" mode, 18 checking for the file creation, write & read operations, 19 checking for the file pointer position, 23 require($file_path."/file.inc"); 26 $file = $file_path."/007_variation1.tmp"; 30 $file_handle = fopen($file, "r"); //opening the file in "r" mode 33 var_dump( ftell($file_handle) ); //Initial position of file pointer 36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
|
H A D | 007_variation17.phpt | 9 Description: Opens file or URL. 14 Description: Closes an open file pointer 17 /* Test fopen() and fclose(): Opening the file in "rb" mode, 18 checking for the file creation, write & read operations, 19 checking for the file pointer position, 23 require($file_path."/file.inc"); 26 $file = $file_path."/007_variation17.tmp"; 30 $file_handle = fopen($file, "rb"); //opening the file in "rb" mode 33 var_dump( ftell($file_handle) ); //Initial position of file pointer 36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
|
H A D | fgetcsv_variation17.phpt | 45 echo "Error: failed to create file $filename!\n"; 58 // else rewind the file pointer to beginning of the file 63 // rewind the file pointer to bof 74 // check the file pointer position and if eof 80 // check the file pointer position and if eof 84 // close the file 86 //delete file 96 -- Testing fgetcsv() with file opened using r mode -- 112 -- Testing fgetcsv() with file opened using rb mode -- 128 -- Testing fgetcsv() with file opened using rt mode -- [all …]
|
/PHP-7.1/ext/phar/phar/ |
H A D | phar.php | 35 function command_include($file) argument 37 $file = 'phar://' . __FILE__ . '/' . $file; 38 if (file_exists($file)) { 39 include($file);
|
/PHP-7.1/ext/standard/tests/image/ |
H A D | iptcembed_001.phpt | 2 iptcembed() and wrong file 6 $file = dirname(__FILE__).'/iptcembed_001.data'; 7 $fp = fopen($file, "w"); 11 var_dump(iptcembed(-1, $file, -1)); 12 unlink($file);
|
/PHP-7.1/ext/standard/tests/strings/ |
H A D | md5_file.phpt | 7 * Description: Calculate the MD5 hash of a given file 10 /* Creating an empty file */ 14 /* Creating a data file */ 18 /* Writing into file */ 20 $content = "Add this to the file\n"; 23 echo "Cannot write to file ($filename)"; 53 /* Hexadecimal Output for Empty file as input */ 57 /* Raw Binary Output for Empty file as input */ 96 *** Hexadecimal Output for Empty file as Argument *** 99 *** Raw Binary Output for Empty file as Argument *** [all …]
|
/PHP-7.1/ext/spl/tests/ |
H A D | DirectoryIterator_getExtension_basic.phpt | 15 foreach ($files as $file) { 16 touch($dir . $file); 23 foreach (new DirectoryIterator($dir) as $file) { 24 if (in_array($file->getFilename(), $skip)) { 27 $dit_exts[] = $file->getExtension(); 28 $nfo_exts[] = pathinfo($file->getFilename(), PATHINFO_EXTENSION); 38 foreach ($files as $file) { 39 unlink($dir . $file);
|
H A D | SplFileInfo_getExtension_basic.phpt | 5 $file = md5('SplFileInfo::getExtension'); 8 touch($file . $ext); 9 $info = new SplFileInfo($file . $ext); 10 var_dump($info->getExtension(), pathinfo($file . $ext, PATHINFO_EXTENSION)); 15 $file = md5('SplFileInfo::getExtension'); 18 unlink($file . $ext);
|
/PHP-7.1/Zend/tests/ |
H A D | debug_backtrace_options.phpt | 76 [file] => %sdebug_backtrace_options.php 87 [file] => %sdebug_backtrace_options.php 101 [file] => %sdebug_backtrace_options.php 120 [file] => %sdebug_backtrace_options.php 139 [file] => %sdebug_backtrace_options.php 151 [file] => %sdebug_backtrace_options.php 165 [file] => %sdebug_backtrace_options.php 184 [file] => %sdebug_backtrace_options.php 203 [file] => %sdebug_backtrace_options.php 215 [file] => %sdebug_backtrace_options.php [all …]
|
/PHP-7.1/ext/standard/tests/dir/ |
H A D | rewinddir_variation3.phpt | 2 Test rewinddir() function : usage variations - file pointers 12 * Pass a file pointer to rewinddir() to test behaviour 17 echo "\n-- Open a file using fopen --\n"; 24 echo "\n-- Check if rewinddir() has repositioned the file pointer --\n"; 26 echo "rewinddir() works on file pointers\n"; 28 echo "rewinddir() does not work on file pointers\n"; 35 -- Open a file using fopen -- 41 -- Check if rewinddir() has repositioned the file pointer -- 42 rewinddir() does not work on file pointers
|
/PHP-7.1/sapi/phpdbg/ |
H A D | phpdbg_list.c | 61 efree(file); in PHPDBG_LIST() 65 zend_string *file; in PHPDBG_LIST() local 72 phpdbg_list_file(file, param->file.line, 0, 0); in PHPDBG_LIST() 73 zend_string_release(file); in PHPDBG_LIST() 247 filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); in phpdbg_compile_file() 297 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); in phpdbg_init_compile_file() 305 if (file->opened_path) { in phpdbg_init_compile_file() 309 if (file->free_filename) { in phpdbg_init_compile_file() 310 efree((char *) file->filename); in phpdbg_init_compile_file() 312 file->free_filename = 0; in phpdbg_init_compile_file() [all …]
|