Home
last modified time | relevance | path

Searched refs:file (Results 426 – 450 of 1965) sorted by relevance

1...<<11121314151617181920>>...79

/PHP-5.4/ext/standard/tests/file/
H A Dftruncate_error.phpt7 Description: truncates a file to a given length
16 echo "\n Initial file size = ".filesize($filename)."\n";
35 echo "-- Testing ftruncate() with invalid file pointer --\n";
50 // ftruncate() on a file handle which is already closed/unset
51 echo "-- Testing ftruncate() with closed/unset file handle --\n";
53 // ftruncate on close file handle
59 // ftruncate on a file handle which is unset
61 unset($fp); //unset file handle
76 Initial file size = 36
90 -- Testing ftruncate() with invalid file pointer --
[all …]
H A Dfile_put_contents_variation4.phpt7 /* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]])
8 * Description: Write/Create a file with contents data and return the number of bytes written
9 * Source code: ext/standard/file.c
38 //correct php53 behaviour is to ingnore the FILE_USE_INCLUDE_PATH unless the file alread exists
39 // in the include path. In this case it doesn't so the file should be written in the current dir.
H A Dfileowner_error.phpt6 * Description: Returns the user ID of the owner of the file, or
11 /* Non-existing file or dir */
12 var_dump( fileowner("/no/such/file/dir") );
20 var_dump( fileowner("/no/such/file", "root") ); // args > expected
28 Warning: fileowner(): stat failed for /no/such/file/dir in %s on line %d
H A Dfopen_variation12.phpt2 Test fopen() function : variation: use include path (path is bad) create a file (relative)
8 * Description: Open a file or a URL and return a file pointer
9 * Source code: ext/standard/file.c
21 fwrite($h, (binary) "This is the test file");
H A Dfiletype_variation.phpt16 Description: Returns the type of the file. Possible values are fifo, char,
17 dir, block, link, file, and unknown.
59 /* Checking with block in file */
67 file
68 file
70 file
H A Dfpassthru_variation.phpt7 Description: Reads to EOF on the given file pointer from the current position
33 /* Negative offsets, the file pointer should be at the end of file
60 echo "\n--- Testing with binary mode file ---\n";
61 /* Opening the file in binary read mode */
111 --- Testing with binary mode file ---
/PHP-5.4/ext/xmlwriter/tests/
H A Dxmlwriter_open_uri_error_004.phpt2 xmlwriter_open_uri with file:///
7 var_dump(xmlwriter_open_uri('file:///'));
15 Warning: xmlwriter_open_uri(): Unable to resolve file path in %s on line %d
H A D010.phpt10 $file = dirname(__FILE__).'/010.tmp';
12 $xw = xmlwriter_open_uri($file);
25 var_dump(file_get_contents($file));
27 @unlink($file);
H A Dxmlwriter_open_uri_error_005.phpt2 xmlwriter_open_uri with file://localhost/
7 var_dump(xmlwriter_open_uri('file://localhost/'));
15 Warning: xmlwriter_open_uri(): Unable to resolve file path in %s on line %d
/PHP-5.4/ext/standard/tests/url/
H A Dparse_url_basic_003.phpt53 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(11) "www.php.net"
77 --> zlib:/path/to/my/file/file.txt : NULL
83 --> file:///path/to/file : NULL
84 --> file://path/to/file : string(4) "path"
85 --> file:/path/to/file : NULL
102 --> file:///: : NULL
103 --> file:///a:/ : NULL
104 --> file:///ab:/ : NULL
105 --> file:///a:/ : NULL
106 --> file:///@:/ : NULL
[all …]
/PHP-5.4/ext/mysqli/tests/
H A Dmysqli_query_local_infile_large.phpt22 // Create a large CVS file
23 $file = tempnam(sys_get_temp_dir(), 'mysqli_test.cvs');
24 if (!$fp = fopen($file, 'w'))
25 printf("[001] Cannot create CVS file '%s'\n", $file);
52 …L INFILE '%s' INTO TABLE test FIELDS TERMINATED BY ';'", mysqli_real_escape_string($link, $file))))
81 $file = tempnam(sys_get_temp_dir(), 'mysqli_test.cvs');
82 if (file_exists($file))
83 unlink($file);
/PHP-5.4/ext/phar/tests/tar/
H A Dlinks2.phpt13 $a->addFile('hardlink', 'internal/file.txt', array(
34 phar error: "%slinks2.tar" is a corrupted tar file - hard link to non-existent file "internal/file.…
/PHP-5.4/ext/dom/tests/
H A DDOMDocument_schemaValidate_error5.phpt2 DomDocument::schemaValidate() - non-existent schema file
15 $result = $doc->schemaValidate(dirname(__FILE__)."/non-existent-file");
20 …aValidate(): I/O warning : failed to load external entity "%snon-existent-file" in %s.php on line …
22 …Validate(): Failed to locate the main schema resource at '%s/non-existent-file'. in %s.php on line…
/PHP-5.4/ext/zip/tests/
H A Doo_getnameindex.phpt12 $file = $dirname . '__tmp_oo_rename.zip';
14 @unlink($file);
17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
30 if (!$zip->open($file)) {
/PHP-5.4/ext/gd/tests/
H A Dimagegd2_nullbyte_injection.phpt5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
24 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Dpng2wbmp_error2.phpt17 $file = dirname(__FILE__) .'/simpletext.wbmp';
18 png2wbmp('', $file, 20, 120, 8);
19 png2wbmp(null, $file, 20, 120, 8);
20 png2wbmp(false, $file, 20, 120, 8);
H A Dimagegd_nullbyte_injection.phpt5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
24 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
H A Djpeg2wbmp_error2.phpt17 $file = dirname(__FILE__) .'/simpletext.wbmp';
18 jpeg2wbmp('', $file, 20, 120, 8);
19 jpeg2wbmp(null, $file, 20, 120, 8);
20 jpeg2wbmp(false, $file, 20, 120, 8);
/PHP-5.4/ext/zip/lib/
H A Dzip_fclose.c51 if (zf->za->file[i] == zf) { in zip_fclose()
52 zf->za->file[i] = zf->za->file[zf->za->nfile-1]; in zip_fclose()
H A Dzip_fopen_index_encrypted.c162 struct zip_file *zf, **file; in _zip_file_new() local
172 file = (struct zip_file **)realloc(za->file, in _zip_file_new()
174 if (file == NULL) { in _zip_file_new()
180 za->file = file; in _zip_file_new()
183 za->file[za->nfile++] = zf; in _zip_file_new()
/PHP-5.4/ext/zlib/tests/
H A Dgzopen_variation1.phpt12 * Description: Open a .gz-file and return a .gz-file pointer
125 Error: 2 - gzopen(0): failed to open stream: No such file or directory, %s(%d)
129 Error: 2 - gzopen(1): failed to open stream: No such file or directory, %s(%d)
133 Error: 2 - gzopen(12345): failed to open stream: No such file or directory, %s(%d)
137 Error: 2 - gzopen(-2345): failed to open stream: No such file or directory, %s(%d)
141 Error: 2 - gzopen(10.5): failed to open stream: No such file or directory, %s(%d)
145 Error: 2 - gzopen(-10.5): failed to open stream: No such file or directory, %s(%d)
149 Error: 2 - gzopen(123456789000): failed to open stream: No such file or directory, %s(%d)
157 Error: 2 - gzopen(0.5): failed to open stream: No such file or directory, %s(%d)
185 Error: 2 - gzopen(1): failed to open stream: No such file or directory, %s(%d)
[all …]
/PHP-5.4/win32/build/
H A Dmkdist.php402 while (FALSE !== ($file = readdir($directory_list))) {
403 $full_path = $directory . '/' . $file;
404 if($file != '.' && $file != '..' && $file != '.svn' && is_dir($full_path)) {
405 if ($file == 'tests' || $file == 'examples') {
431 foreach (new DirectoryIterator($path_to_phar . '/phar') as $file) {
432 if ($file->isDir() || $file == 'phar.php') {
436 echo 'adding ', $file, "\n";
437 $phar[(string) $file] = file_get_contents($path_to_phar. '/phar/' . $file);
441 $stub = file($path_to_phar . '/phar/phar.php');
/PHP-5.4/ext/oci8/tests/
H A Ddefine2.phpt38 echo "file md5:" . md5($fi) . "\n";
48 echo "file md5:" . md5($fi) . "\n";
58 echo "file md5:" . md5($fi) . "\n";
68 echo "file md5:" . md5($fi) . "\n";
86 file md5:88b274d7a257ac6f70435b83abd4e26e
90 file md5:88b274d7a257ac6f70435b83abd4e26e
94 file md5:80bb3201e2a8bdcb8ab3e1a44a82bb8a
/PHP-5.4/ext/hash/tests/
H A Dhash_hmac_file_error.phpt9 * Description: Generate a keyed hash value using the HMAC method and the contents of a given file
16 $file = dirname(__FILE__) . "hash_file.txt";
22 var_dump(hash_hmac_file('crc32', $file));
26 hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg);
29 hash_hmac_file('foo', $file, $key, TRUE);
32 hash_hmac_file('crc32', $file.chr(0).$file, $key, TRUE);
/PHP-5.4/ext/fileinfo/tests/
H A Dfinfo_open_001.phpt22 Warning: finfo_open(%s123): failed to open stream: No such file or directory in %s on line %d
24 Warning: finfo_open(%s123): failed to open stream: No such file or directory in %s on line %d
29 Warning: finfo_open(%s1): failed to open stream: No such file or directory in %s on line %d
31 Warning: finfo_open(%s1): failed to open stream: No such file or directory in %s on line %d
36 Warning: finfo_open(%sinexistent): failed to open stream: No such file or directory in %s on line %d
38 Warning: finfo_open(%sinexistent): failed to open stream: No such file or directory in %s on line %d

Completed in 23 milliseconds

1...<<11121314151617181920>>...79