/PHP-5.5/ext/gd/tests/ |
H A D | png2wbmp_error3.phpt | 22 $file = dirname(__FILE__) .'/simpletext.png'; 25 imagepng($im, $file); 30 png2wbmp($file, '', 20, 120, 8); 31 png2wbmp($file, null, 20, 120, 8); 32 png2wbmp($file, false, 20, 120, 8);
|
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);
|
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);
|
/PHP-5.5/ext/spl/examples/ |
H A D | dbaarray.inc | 3 /** @file dbaarray.inc 23 * Open database $file with $handler in read only mode. 25 * @param file Database file to open. 28 function __construct($file, $handler) 30 $this->db = dba_popen($file, "c", $handler);
|
/PHP-5.5/scripts/dev/ |
H A D | find_tested.php | 181 while(($file = $thisdir->read()) !== false) { 182 if ($file != '.' && $file != '..') { 183 $path = $thisdir->path.$file; 187 if (preg_match("/\w+\.phpt$/", $file)) { 196 function extract_tests($file) { argument 197 $code = file_get_contents($file);
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | is_dir_variation2.phpt | 16 and with file, soft & hard link to file */ 37 echo "\n*** Testing is_dir() with file and links to a file ***\n"; 38 echo "-- With file --\n"; 88 *** Testing is_dir() with file and links to a file *** 89 -- With file --
|
H A D | fscanf_variation25.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 39 // writing to the file 44 // closing the file 47 // opening the file for reading 50 exit("Error:failed to open file $filename"); 54 // reading the values from file using different char formats 56 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | lstat_stat_basic.phpt | 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 20 require("$file_path/file.inc"); 24 /* creating temp directory and file */ 35 // creating file 39 // stat of the file created 43 // now new stat of the dir after file is created 53 // new stat of the file, after a softlink to this file is created 65 // New stat values taken after creation of file & link 97 -- comparing difference in dir stats before and after creating file in it -- [all …]
|
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 | 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 | 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
|
/PHP-5.5/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 | 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
|
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);
|
/PHP-5.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/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.5/ext/pcntl/tests/ |
H A D | pcntl_exec_3.phpt | 8 $file = tempnam(sys_get_temp_dir(),"php"); 9 var_dump(pcntl_exec($file, array("foo","bar"), array("foo" => "bar"))); 10 unlink($file);
|