/PHP-7.0/ext/spl/examples/ |
H A D | inigroups.inc | 3 /** @file inigroups.inc 16 * @brief Class to iterate all groups within an ini file. 20 * Using this class you can iterator over all groups of a ini file. 31 * Construct an ini file group iterator from a filename. 33 * @param file Ini file to open. 35 function __construct($file) { 36 parent::__construct(new DbaReader($file, 'inifile'), '^\[.*\]$');
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | fopen_variation17.phpt | 2 Test fopen() function : variation: use include path create and read a file (relative) 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 42 fwrite($h, (binary) "This is the test file"); 56 echo "could not find file for reading\n"; 59 echo "found file for reading\n"; 71 found file for reading 73 found file for reading
|
H A D | file_put_contents_variation9.phpt | 12 /* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]]) 13 * Description: Write/Create a file with contents data and return the number of bytes written 14 * Source code: ext/standard/file.c 26 // link files even though it original file doesn't exist yet 35 //can only create a hardlink if the file exists. 46 function run_test($file) { 49 var_dump(file_put_contents($file, $data)); 50 var_dump(file_put_contents($file, $extra, FILE_APPEND)); 51 readfile($file);
|
H A D | fopen_variation16.phpt | 2 Test fopen() function : variation: use include path create and read a file (relative) 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 43 fwrite($h, (binary) "This is the test file"); 57 echo "could not find file for reading\n"; 60 echo "found file - not in dir1\n"; 72 found file - not in dir1 74 found file - not in dir1
|
H A D | stat_variation8-win32.phpt | 14 * Description: Gives information about a file 17 /* test the effects of truncate() on stats of file */ 21 require "$file_path/file.inc"; 24 /* create temp file and directory */ 27 $file_handle = fopen($filename, "w"); // temp file 31 echo "\n*** Testing stat(): on file by truncating it to given size ***\n"; 33 // create temp file 42 // opening file in r/w mode 70 *** Testing stat(): on file by truncating it to given size ***
|
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 | bug65272.phpt | 10 $file = dirname(__FILE__)."/flock_bug65272.dat"; 12 $fp1 = fopen($file, "w"); 15 $fp2 = fopen($file, "r"); 23 $file = dirname(__FILE__)."/flock_bug65272.dat"; 24 unlink($file);
|
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 | 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 | 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 | 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 | 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 ***
|
/PHP-7.0/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-7.0/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-7.0/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-7.0/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-7.0/ext/spl/tests/ |
H A D | spl_fileinfo_getextension_leadingdot.phpt | 5 $file = __DIR__ . '/.test'; 6 touch($file); 7 $fileInfo = new SplFileInfo($file); 10 unlink($file);
|
/PHP-7.0/ext/spl/ |
H A D | spl_directory.c | 274 intern->u.file.context = php_stream_context_from_zval(intern->u.file.zcontext, 0); in spl_filesystem_file_open() 300 intern->u.file.open_mode = estrndup(intern->u.file.open_mode, intern->u.file.open_mode_len); in spl_filesystem_file_open() 303 ZVAL_RES(&intern->u.file.zresource, intern->u.file.stream->res); in spl_filesystem_file_open() 527 &intern->u.file.open_mode, &intern->u.file.open_mode_len, in spl_filesystem_object_create_type() 636 ZVAL_STRINGL(&tmp, intern->u.file.open_mode, intern->u.file.open_mode_len); in spl_filesystem_object_get_debug_info() 2159 … spl_filesystem_file_read_csv(intern, intern->u.file.delimiter, intern->u.file.enclosure, intern->… in spl_filesystem_file_read_line_ex() 2266 &intern->u.file.open_mode, &intern->u.file.open_mode_len, in SPL_METHOD() 2413 RETURN_STRINGL(intern->u.file.current_line, intern->u.file.current_line_len); in SPL_METHOD() 2431 if (!intern->u.file.current_line && Z_ISUNDEF(intern->u.file.current_zval)) { in SPL_METHOD() 2572 …char delimiter = intern->u.file.delimiter, enclosure = intern->u.file.enclosure, escape = intern->… in SPL_METHOD() [all …]
|
/PHP-7.0/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-7.0/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-7.0/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-7.0/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));
|