/PHP-5.5/ext/standard/tests/file/ |
H A D | rename_variation2-win32.phpt | 12 Description: Renames a file or directory 15 require dirname(__FILE__).'/file.inc'; 20 /* Renaming a file and directory to numeric name */ 21 echo "\n*** Testing rename() by renaming a file and directory to numeric name ***\n"; 25 // renaming existing file to numeric name 53 *** Testing rename() by renaming a file and directory to numeric name ***
|
H A D | readfile_variation2.phpt | 12 Description: Outputs a file 15 /* Variation 2 : Create file 18 Delete file and its link 21 // include file.inc 22 require("file.inc"); 26 // temp file used here 29 // create temp file and insert data into it
|
H A D | fileowner_variation3.phpt | 8 * Description: Returns the user ID of the owner of the file, or 12 /* Passing file names with different notations, using slashes, wild-card chars */ 16 echo "*** Testing fileowner() with different notations of file names ***\n"; 25 /* Testing a file trailing slash */ 28 /* Testing file with double slashes */ 41 foreach($files_arr as $file) { 43 var_dump( fileowner( $file_path."/".$file ) ); 58 *** Testing fileowner() with different notations of file names ***
|
H A D | is_readable_variation1.phpt | 2 Test is_readable() function: usage variations - diff. file notations 23 /* test is_readable() with file having different filepath notation */ 25 require dirname(__FILE__).'/file.inc'; 31 // create a new temporary file 40 /* Testing a file trailing slash */ 43 /* Testing file with double slashes */ 60 is a writable file */ 61 foreach($files_arr as $file) { 63 var_dump( is_readable($file) );
|
H A D | chmod_variation3.phpt | 6 * Description: Change file mode 110 Error: 2 - chmod(): No such file or directory, %s(%d) 114 Error: 2 - chmod(): No such file or directory, %s(%d) 118 Error: 2 - chmod(): No such file or directory, %s(%d) 122 Error: 2 - chmod(): No such file or directory, %s(%d) 126 Error: 2 - chmod(): No such file or directory, %s(%d) 130 Error: 2 - chmod(): No such file or directory, %s(%d) 134 Error: 2 - chmod(): No such file or directory, %s(%d) 138 Error: 2 - chmod(): No such file or directory, %s(%d) 142 Error: 2 - chmod(): No such file or directory, %s(%d) [all …]
|
H A D | bug46347.phpt | 11 $file = __DIR__ . '/parse.ini'; 12 file_put_contents($file, $str); 14 var_dump(parse_ini_file($file));
|
H A D | filegroup_error.phpt | 6 * Description: Returns the group ID of the file, or FALSE in case of an error. 11 /* Non-existing file or dir */ 12 var_dump( filegroup("/no/such/file/dir") ); 20 var_dump( filegroup("/no/such/file", "root") ); // args > expected 28 Warning: filegroup(): stat failed for /no/such/file/dir in %s on line %d
|
H A D | fopen_variation13.phpt | 2 Test fopen() function : variation: use include path create a file (absolute) 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 34 fwrite($h, "This is the test file");
|
H A D | copy_error.phpt | 6 * Description: Makes a copy of the file source to dest. 12 var_dump( copy("/no/file", "file") ); 27 Warning: copy(/no/file): failed to open stream: No such file or directory in %s on line %d
|
/PHP-5.5/ext/libxml/tests/ |
H A D | bug61367-read.phpt | 22 <!ENTITY file SYSTEM "file:///$dir/bad"> 24 <doc>&file;</doc> 56 Warning: DOMDocument::loadXML(): I/O warning : failed to load external entity "file:///%s/test_bug_… 58 Warning: DOMDocument::loadXML(): Failure to process entity file in Entity, line: 4 in %s on line %d 60 Warning: DOMDocument::loadXML(): Entity 'file' not defined in Entity, line: 4 in %s on line %d
|
/PHP-5.5/ext/standard/tests/dir/ |
H A D | readdir_variation3.phpt | 17 // include the file.inc for Function: function create_files() 19 include(dirname(__FILE__)."/../file/file.inc"); 30 while(FALSE !== ($file = readdir($dir_handle))) { 33 // store file names into an array so can use sorted in expected output 34 $contents[] = $file;
|
/PHP-5.5/ext/zip/tests/ |
H A D | oo_setcomment.phpt | 12 $file = $dirname . '__tmp_oo_set_comment.zip'; 14 @unlink($file); 17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) { 42 if (!$zip->open($file)) { 43 @unlink($file); 55 @unlink($file);
|
/PHP-5.5/tests/basic/ |
H A D | rfc1867_max_file_uploads_empty_files.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 76 string(15) "text/plain-file" 89 string(15) "text/plain-file"
|
H A D | bug55500.phpt | 11 Content-Disposition: form-data; name="file[]"; filename="file1.txt" 16 Content-Disposition: form-data; name="file[[type]"; filename="file2.txt" 21 Content-Disposition: form-data; name="file[[name]"; filename="file3.txt" 26 Content-Disposition: form-data; name="file[name]["; filename="file4.txt" 38 [%u|b%"file"]=>
|
/PHP-5.5/ext/openssl/tests/ |
H A D | 001.phpt | 31 echo "Export key to file\n"; 33 openssl_pkey_export_to_file($privkey, $key_file_name, $passphrase) or die("failed to export to file… 35 echo "Load key from file - array syntax\n"; 37 $loaded_key = openssl_pkey_get_private(array("file://$key_file_name", $passphrase)); 46 $loaded_key = openssl_pkey_get_private("file://$key_file_name", $passphrase); 70 Export key to file 71 Load key from file - array syntax
|
/PHP-5.5/ext/standard/tests/url/ |
H A D | parse_url_basic_001.phpt | 576 --> zlib:/path/to/my/file/file.txt: array(2) { 580 string(25) "/path/to/my/file/file.txt" 628 --> file:///path/to/file: array(2) { 630 string(4) "file" 635 --> file://path/to/file: array(3) { 637 string(4) "file" 644 --> file:/path/to/file: array(2) { 646 string(4) "file" 788 string(4) "file" 795 string(4) "file" [all …]
|
/PHP-5.5/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation4.phpt | 2 stream_get_meta_data() with a relative file path 6 echo "Create a file:\n"; 14 echo "\nChange to file's directory and open with a relative path:\n"; 29 Create a file: 51 Change to file's directory and open with a relative path:
|
/PHP-5.5/ext/spl/tests/ |
H A D | bug36258.phpt | 8 foreach ($diriter as $key => $file) { 9 var_dump($file->getFilename()); 10 var_dump($file->getPath());
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_pam_sha256_public_key_option.phpt | 50 $file = sprintf("%s%s%s_%s", sys_get_temp_dir(), DIRECTORY_SEPARATOR, "test_sha256_" , @date("Ymd")… 51 if ((file_exists($file) && !unlink($file)) || !($fp = @fopen($file, "w"))) { 52 die(sprintf("skip Cannot create RSA pub key file '%s'", $file)); 55 die(sprintf("skip Failed to create pub key file")); 94 …$file = sprintf("%s%s%s_%s", sys_get_temp_dir(), DIRECTORY_SEPARATOR, "test_sha256_" , @date("Ymd"… 95 if (file_exists($file) && is_readable($file)) { 98 if (!($link->options(MYSQLI_SERVER_PUBLIC_KEY, $file))) { 128 …$file = sprintf("%s%s%s_%s", sys_get_temp_dir(), DIRECTORY_SEPARATOR, "test_sha256_" , @date("Ymd"… 129 @unlink($file);
|
/PHP-5.5/main/streams/ |
H A D | plain_wrapper.c | 113 FILE *file; member 161 self->file = NULL; in _php_stream_fopen_from_fd_int() 177 self->file = file; in _php_stream_fopen_from_file_int() 309 self->file = file; in _php_stream_fopen_from_pipe() 429 if (data->file) { in php_stdiop_close() 441 data->file = NULL; in php_stdiop_close() 457 data->file = NULL; in php_stdiop_close() 477 if (data->file) { in php_stdiop_flush() 558 if (data->file) { in php_stdiop_cast() 559 fflush(data->file); in php_stdiop_cast() [all …]
|
/PHP-5.5/ext/curl/tests/ |
H A D | curl_write_stdout.phpt | 7 …tes the value 'test' to a temporary file. Use curl to access this file and store the output in ano… 21 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
|
/PHP-5.5/ext/standard/tests/filters/ |
H A D | stream_filter_remove_basic.phpt | 18 $file = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; 19 touch( $file ); 21 $fp = fopen( $file, 'w+' ); 38 $file = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; 39 unlink( $file );
|
/PHP-5.5/ext/zlib/tests/ |
H A D | gzfile_variation4.phpt | 29 Warning: gzfile(10.5): failed to open stream: No such file or directory in %s on line %d 32 Warning: gzfile(-10.5): failed to open stream: No such file or directory in %s on line %d 35 Warning: gzfile(123456789000): failed to open stream: No such file or directory in %s on line %d 38 Warning: gzfile(-123456789000): failed to open stream: No such file or directory in %s on line %d 41 Warning: gzfile(0.5): failed to open stream: No such file or directory in %s on line %d
|
H A D | readgzfile_variation4.phpt | 29 Warning: readgzfile(10.5): failed to open stream: No such file or directory in %s on line %d 32 Warning: readgzfile(-10.5): failed to open stream: No such file or directory in %s on line %d 35 Warning: readgzfile(123456789000): failed to open stream: No such file or directory in %s on line %d 38 Warning: readgzfile(-123456789000): failed to open stream: No such file or directory in %s on line … 41 Warning: readgzfile(0.5): failed to open stream: No such file or directory in %s on line %d
|
/PHP-5.5/ext/gd/tests/ |
H A D | jpeg2wbmp_error3.phpt | 22 $file = dirname(__FILE__) .'/simpletext.jpg'; 25 imagejpeg($im, $file); 30 jpeg2wbmp($file, '', 20, 120, 8); 31 jpeg2wbmp($file, null, 20, 120, 8); 32 jpeg2wbmp($file, false, 20, 120, 8);
|