Home
last modified time | relevance | path

Searched refs:file (Results 401 – 425 of 1991) sorted by relevance

1...<<11121314151617181920>>...80

/PHP-5.5/ext/standard/tests/file/
H A Drename_variation2-win32.phpt12 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 Dreadfile_variation2.phpt12 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 Dfileowner_variation3.phpt8 * 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 Dis_readable_variation1.phpt2 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 Dchmod_variation3.phpt6 * 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 Dbug46347.phpt11 $file = __DIR__ . '/parse.ini';
12 file_put_contents($file, $str);
14 var_dump(parse_ini_file($file));
H A Dfilegroup_error.phpt6 * 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 Dfopen_variation13.phpt2 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 Dcopy_error.phpt6 * 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 Dbug61367-read.phpt22 <!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 Dreaddir_variation3.phpt17 // 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 Doo_setcomment.phpt12 $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 Drfc1867_max_file_uploads_empty_files.phpt13 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 Dbug55500.phpt11 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 D001.phpt31 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 Dparse_url_basic_001.phpt576 --> 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 Dstream_get_meta_data_file_variation4.phpt2 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 Dbug36258.phpt8 foreach ($diriter as $key => $file) {
9 var_dump($file->getFilename());
10 var_dump($file->getPath());
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_pam_sha256_public_key_option.phpt50 $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 Dplain_wrapper.c113 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 Dcurl_write_stdout.phpt7 …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 Dstream_filter_remove_basic.phpt18 $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 Dgzfile_variation4.phpt29 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 Dreadgzfile_variation4.phpt29 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 Djpeg2wbmp_error3.phpt22 $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);

Completed in 45 milliseconds

1...<<11121314151617181920>>...80