/PHP-7.1/ext/standard/tests/file/ |
H A D | 007_variation24.phpt | 9 Description: Opens file or URL. 14 Description: Closes an open file pointer 17 /* Test fopen() and fclose(): Opening the file in "x+b" mode, 18 checking for the file creation, write & read operations, 19 checking for the file pointer position, 20 checking for the warning msg when trying to open an existing file in "x+b" mode, 25 $file = $file_path."/007_variation24.tmp"; 28 $file_handle = fopen($file, "x+b"); //opening the non-existing file in "x+b" mode, file will be cr… 31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 37 var_dump( fclose($file_handle) ); //Check for close operation on the file handle [all …]
|
H A D | ftruncate_variation7-win32.phpt | 13 Description: Truncates a file to a given length 16 /* truncate the file when file pointer is positioned at end of the file */ 17 // include common file related test functions 18 include ("file.inc"); 22 /* test ftruncate with file opened in different modes */ 36 // create 1 file with some contents 39 // fopen the file using the $file_modes 44 // fopen the file using the $file_modes 48 echo "Error: failed to open file $filename!\n"; 52 rewind($file_handle); // file pointer to 0 [all …]
|
H A D | ftruncate_variation7.phpt | 13 Description: Truncates a file to a given length 16 /* truncate the file when file pointer is positioned at end of the file */ 17 // include common file related test functions 18 include ("file.inc"); 22 /* test ftruncate with file opened in different modes */ 36 // create 1 file with some contents 39 // fopen the file using the $file_modes 44 // fopen the file using the $file_modes 48 echo "Error: failed to open file $filename!\n"; 52 rewind($file_handle); // file pointer to 0 [all …]
|
H A D | unlink_variation2.phpt | 2 Test unlink() function : usage variations - unlink file in use 15 /* Try to unlink file when file handle is still in use */ 19 echo "*** Testing unlink() on a file which is in use ***\n"; 20 // temp file name used here 23 // create file 27 var_dump( file_exists($filename) ); // confirm file is deleted 28 // now close file handle 34 *** Testing unlink() on a file which is in use ***
|
H A D | fwrite_variation2-win32.phpt | 23 include ("file.inc"); 78 /* display the file content, check the file size */ 94 -- Opening file in r+ -- 111 -- Opening file in r+b -- 128 -- Opening file in r+t -- 147 -- Opening file in r+ -- 164 -- Opening file in r+b -- 181 -- Opening file in r+t -- 200 -- Opening file in r+ -- 217 -- Opening file in r+b -- [all …]
|
H A D | fwrite_variation2.phpt | 23 include ("file.inc"); 78 /* display the file content, check the file size */ 93 -- Opening file in r+ -- 110 -- Opening file in r+b -- 127 -- Opening file in r+t -- 146 -- Opening file in r+ -- 163 -- Opening file in r+b -- 180 -- Opening file in r+t -- 199 -- Opening file in r+ -- 216 -- Opening file in r+b -- [all …]
|
H A D | stat_variation6-win32.phpt | 2 Test stat() functions: usage variations - changing permissions of dir/file 14 * Description: Gives information about a file 17 /* test the effects on the stats of dir/file for changing permissions of dir/file */ 21 require "$file_path/file.inc"; 24 /* create temp file and directory */ 29 $file_handle = fopen($filename, "w"); // temp file 33 // checking stat() on file 34 echo "\n*** Testing stat() on file with miscelleneous file permission and content ***\n"; 51 echo "\n*** Testing stat() on directory with miscelleneous file permission ***\n"; 77 *** Testing stat() on file with miscelleneous file permission and content *** [all …]
|
H A D | file_basic.phpt | 2 Test file() function : basic functionality 6 * Prototype: array file ( string filename [,int use-include_path [,resource context]] ); 7 * Description: Reads entire file into an array 8 * Returns the file in an array 10 require(dirname(__FILE__) . '/file.inc'); 12 echo "*** Testing file() with basic types of files ***\n"; 17 print_r( file($file_path."/file_basic1.tmp") ); 21 echo "*** Testing for return type of file() function ***\n"; 24 $ret_arr = file($file_path."/file_basic1.tmp"); 32 *** Testing file() with basic types of files *** [all …]
|
H A D | readfile_variation4.phpt | 138 file not read 142 file not read 146 file not read 150 file not read 154 file not read 158 file not read 162 file not read 166 file not read 170 file not read 174 file not read [all …]
|
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 | 007_variation10.phpt | 9 Description: Opens file or URL. 14 Description: Closes an open file pointer 17 /* Test fopen() and fclose(): Opening the file in "r+t" 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_variation10.tmp"; 30 $file_handle = fopen($file, "r+t"); //opening the file in "r+t" 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 | 007_variation18.phpt | 9 Description: Opens file or URL. 14 Description: Closes an open file pointer 17 /* Test fopen() and fclose(): Opening the file in "r+b" 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_variation18.tmp"; 30 $file_handle = fopen($file, "r+b"); //opening the file in "r+b" 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+ -- 115 -- file opened in a+b -- 133 -- file opened in w+ -- 160 -- file opened in x+ -- 187 -- file opened in r+ -- [all …]
|
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 | 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 58 *** Testing stat() on file by truncating it to given size ***
|
/PHP-7.1/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobfromsteam.phpt | 14 $fp = fopen($file, 'w'); 24 if (!file_exists($file)) 27 unlink($file); 35 @unlink($file); 37 if (file_exists($file)) { 42 $fp = fopen($file, 'w'); 44 printf("[%03d + 2] Cannot create test file '%s'\n", $offset, $file); 50 if (!file_exists($file)) { 51 printf("[%03d + 3] Failed to create test file '%s'\n", $offset, $file); 64 $fp = fopen($file, 'r'); [all …]
|
/PHP-7.1/ext/bcmath/libbcmath/ |
H A D | missing | 114 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 115 if test -z "$file"; then 116 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 117 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` 119 touch $file
|
/PHP-7.1/ext/standard/tests/file/windows_mb_path/ |
H A D | test_readdir_mb_names.phpt | 45 echo "filename: $file : filetype: " . filetype($dirw . $file) . "\n"; 62 filename: Röd_Statistics.txt : filetype: file 63 filename: tschüß : filetype: file 65 filename: Voláçao : filetype: file 67 filename: českýtestování.inc : filetype: file 68 filename: š.txt : filetype: file 70 filename: żółć.txt : filetype: file 71 filename: Ελλάδα.txt : filetype: file 72 filename: привет : filetype: file 74 filename: テストマルチバイト・パス : filetype: file [all …]
|
H A D | bug75063_utf8.phpt | 2 Bug #75063 Many filesystem-related functions do not work with multibyte file names, UTF-8 15 /* This file is in UTF-8. */ 40 while ((\$file = readdir(\$dh)) !== false) { 41 if ("." == \$file || ".." == \$file) continue; 42 var_dump(\$file); 63 foreach ($obj as $file) { 64 if ("." == $file || ".." == $file) continue; 65 unlink($d0 . DIRECTORY_SEPARATOR . $file);
|
/PHP-7.1/ext/standard/tests/dir/ |
H A D | readdir_basic.phpt | 16 // include the file.inc for Function: function create_files() 18 include(dirname(__FILE__)."/../file/file.inc"); 27 while( FALSE !== ($file = readdir($dh)) ) { 28 $a[] = $file; 31 foreach($a as $file) { 32 var_dump($file); 38 while( FALSE !== ( $file = readdir() ) ) { 39 $a[] = $file; 42 foreach($a as $file) { 43 var_dump($file);
|
H A D | readdir_basic-win32-mb.phpt | 22 // include the file.inc for Function: function create_files() 24 include(dirname(__FILE__)."/../file/file.inc"); 33 while( FALSE !== ($file = readdir($dh)) ) { 34 $a[] = $file; 37 foreach($a as $file) { 38 var_dump($file); 44 while( FALSE !== ( $file = readdir() ) ) { 45 $a[] = $file; 48 foreach($a as $file) { 49 var_dump($file);
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | bug40752.phpt | 6 $file = dirname(__FILE__)."/bug40752.ini"; 7 file_put_contents($file, ' 12 var_dump(parse_ini_file($file)); 14 file_put_contents($file, ' 19 var_dump(parse_ini_file($file)); 21 unlink($file);
|
/PHP-7.1/ext/session/tests/ |
H A D | session_basic5.phpt | 63 <a href="file.php">test</a> 64 <a href="file.php?foo">test</a> 65 <a href="file.php?foo=var">test</a> 66 <a href="file.php?foo=var#bar">test</a> 67 <a href="../file.php">test</a> 68 <a href="../file.php?foo">test</a> 69 <a href="../file.php?foo=var">test</a> 70 <a href="../file.php?foo=var#bar">test</a> 112 <a href="//php.net/file.php">test</a> 193 <a href="//bad.com/file.php">test</a> [all …]
|
/PHP-7.1/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.1/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 …]
|