/PHP-5.4/ext/standard/tests/file/ |
H A D | ftruncate_error.phpt | 7 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 D | file_put_contents_variation4.phpt | 7 /* 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 D | fileowner_error.phpt | 6 * 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 D | fopen_variation12.phpt | 2 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 D | filetype_variation.phpt | 16 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 D | fpassthru_variation.phpt | 7 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 D | xmlwriter_open_uri_error_004.phpt | 2 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 D | 010.phpt | 10 $file = dirname(__FILE__).'/010.tmp'; 12 $xw = xmlwriter_open_uri($file); 25 var_dump(file_get_contents($file)); 27 @unlink($file);
|
H A D | xmlwriter_open_uri_error_005.phpt | 2 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 D | parse_url_basic_003.phpt | 53 --> 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 D | mysqli_query_local_infile_large.phpt | 22 // 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 D | links2.phpt | 13 $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 D | DOMDocument_schemaValidate_error5.phpt | 2 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 D | oo_getnameindex.phpt | 12 $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 D | imagegd2_nullbyte_injection.phpt | 5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } 24 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
H A D | png2wbmp_error2.phpt | 17 $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 D | imagegd_nullbyte_injection.phpt | 5 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); } 24 foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
H A D | jpeg2wbmp_error2.phpt | 17 $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 D | zip_fclose.c | 51 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 D | zip_fopen_index_encrypted.c | 162 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 D | gzopen_variation1.phpt | 12 * 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 D | mkdist.php | 402 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 D | define2.phpt | 38 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 D | hash_hmac_file_error.phpt | 9 * 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 D | finfo_open_001.phpt | 22 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
|