/PHP-7.0/ext/standard/tests/file/ |
H A D | 007_variation2.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_variation2.tmp"; 30 $file_handle = fopen($file, "r+"); //opening the file in "r+" mode 33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 35 …ell($file_handle) ); //File pointer position after read operation, expected at the end of the file [all …]
|
H A D | fputcsv_variation13.phpt | 63 //close the file 69 //delete file 79 -- file opened in r+ -- 88 -- file opened in r+b -- 97 -- file opened in r+t -- 106 -- file opened in a+ -- 133 -- file opened in w+ -- 160 -- file opened in x+ -- 187 -- file opened in r+ -- 214 -- file opened in a+ -- [all …]
|
H A D | lstat_stat_variation21.phpt | 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 19 /* test the effects of truncate() on stats of a file */ 22 require "$file_path/file.inc"; 25 /* create temp file */ 27 $fp = fopen($filename, "w"); // temp file 30 /* ftruncate the current file and check stat() on the file */ 32 echo "*** Testing stat() on file by truncating it to given size ***\n"; 37 // opening file in r/w mode 59 *** Testing stat() on file by truncating it to given size ***
|
H A D | filestat.phpt | 2 various file stat func tests 24 var_dump(fileinode("/no/such/file/or/dir")); 25 var_dump(fileowner("/no/such/file/or/dir")); 26 var_dump(filegroup("/no/such/file/or/dir")); 27 var_dump(fileatime("/no/such/file/or/dir")); 28 var_dump(filectime("/no/such/file/or/dir")); 49 Warning: fileinode(): stat failed for /no/such/file/or/dir in %s on line %d 52 Warning: fileowner(): stat failed for /no/such/file/or/dir in %s on line %d 55 Warning: filegroup(): stat failed for /no/such/file/or/dir in %s on line %d 58 Warning: fileatime(): stat failed for /no/such/file/or/dir in %s on line %d [all …]
|
H A D | fgetcsv_variation13.phpt | 33 echo "Error: failed to create file $filename!\n"; 40 // else rewind the file pointer to beginning of the file 45 // rewind the file pointer to bof 55 // check the file pointer position and if eof 59 // close the file 61 //delete file 70 -- Testing fgetcsv() with file opened using r mode -- 78 -- Testing fgetcsv() with file opened using rb mode -- 86 -- Testing fgetcsv() with file opened using rt mode -- 94 -- 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 | 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 | 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 | 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 | 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 53 *** 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 60 *** Testing stat(): on a file with read/write permission ***
|
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 70 *** Testing stat(): with creating & deleting subdir/file *** 71 -- Testing stat() on dir after subdir and file is created in it -- [all …]
|
/PHP-7.0/ext/session/tests/ |
H A D | session_basic3.phpt | 42 <a href="file.php">test</a> 43 <a href="file.php?foo">test</a> 44 <a href="file.php?foo=var">test</a> 83 <a href="//php.net/file.php">test</a> 133 <a href="file.php">test</a> 134 <a href="file.php?foo">test</a> 135 <a href="file.php?foo=var">test</a> 137 <a href="../file.php">test</a> 138 <a href="../file.php?foo">test</a> 139 <a href="../file.php?foo=var">test</a> [all …]
|
/PHP-7.0/ext/opcache/tests/ |
H A D | bug65559.phpt | 11 $file = __DIR__ . "/bug6559.inc.php"; 12 file_put_contents($file, '<?php return 1;'); 13 $var = include $file; 15 file_put_contents($file, '<?php return 2;'); 16 $var = include $file; 18 @unlink($file);
|
/PHP-7.0/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.0/sapi/phpdbg/ |
H A D | phpdbg_parser.y | 90 $$.file.name = $2.str; 91 $$.file.line = $3.num; 95 $$.file.name = $1.str; 96 $$.file.line = $4.num; 101 if ($$.file.name) { 102 memcpy(&$$.file.name[0], $1.str, $1.len); 104 $$.file.name[$1.len + $2.len] = '\0'; 106 $$.file.line = $4.num; 111 if ($$.file.name) { 114 $$.file.name[$1.len + $2.len] = '\0'; [all …]
|
/PHP-7.0/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.0/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);
|
/PHP-7.0/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.0/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 …]
|