/PHP-5.5/ext/standard/tests/file/ |
H A D | file_variation6.phpt | 2 file() with a range of integer flag values 12 var_dump(file($filepath, $flags)); 236 Warning: file(): '24' flag is not supported in %s on line %d 239 Warning: file(): '25' flag is not supported in %s on line %d 242 Warning: file(): '26' flag is not supported in %s on line %d 245 Warning: file(): '27' flag is not supported in %s on line %d 248 Warning: file(): '28' flag is not supported in %s on line %d 251 Warning: file(): '29' flag is not supported in %s on line %d 254 Warning: file(): '30' flag is not supported in %s on line %d 257 Warning: file(): '31' flag is not supported in %s on line %d [all …]
|
H A D | filesize_variation3.phpt | 2 Test filesize() function: usage variations - file size after truncate 12 Description : Returns the size of the file in bytes, or FALSE 21 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 24 echo "-- Testing filesize() after truncating the file to a new length --\n"; 25 // truncate the file created earlier in subdir, the size of the file is 12000bytes 26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes, 45 -- Testing filesize() after truncating the file to a new length --
|
H A D | filesize_variation3-win32.phpt | 2 Test filesize() function: usage variations - file size after truncate 12 Description : Returns the size of the file in bytes, or FALSE 21 fwrite($file_handle, (binary)str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 24 echo "-- Testing filesize() after truncating the file to a new length --\n"; 25 // truncate the file created earlier in subdir, the size of the file is 12000bytes 26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes, 45 -- Testing filesize() after truncating the file to a new length --
|
H A D | bug37158.phpt | 17 $file = dirname(__FILE__) . '/footest.txt'; 19 $fp = fopen($file, 'w'); 25 $fp = fopen($file, 'r'); 29 $outsidecontents = file_get_contents($file); 32 unlink($file);
|
H A D | fileinode_basic.phpt | 7 Description: Returns the inode number of the file, or FALSE in case of an error. 10 echo "*** Testing fileinode() with file, directory ***\n"; 12 /* Getting inode of created file */ 17 /* Getting inode of current file */ 30 *** Testing fileinode() with file, directory ***
|
H A D | file_get_contents_variation8-win32.phpt | 14 * Description: Read the entire file into a string 15 * Source code: ext/standard/file.c 34 "/no/such/file/dir" => "/no/such/file/dir", 51 Warning: file_get_contents(-1): failed to open stream: No such file or directory in %s on line %d 56 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d 89 -- Filename: /no/such/file/dir -- 91 Warning: file_get_contents(/no/such/file/dir): failed to open stream: No such file or directory in … 96 Warning: file_get_contents(php/php): failed to open stream: No such file or directory in %s on line…
|
H A D | fopen_variation19.phpt | 13 * Description: Open a file or a URL and return a file pointer 14 * Source code: ext/standard/file.c 70 function readFile2($file) { 71 $h = fopen($file, 'r'); 77 function appendFile($file) { 78 $h = fopen($file, 'a+'); 86 function writeFile($file) { 87 $h = fopen($file, 'w'); 90 readFile2($file);
|
H A D | readfile_variation10-win32.phpt | 13 * Description: Output a file or a URL 14 * Source code: ext/standard/file.c 33 "/no/such/file/dir" => "/no/such/file/dir", 50 Warning: readfile(-1): failed to open stream: No such file or directory in %s on line %d 54 Warning: readfile(1): failed to open stream: No such file or directory in %s on line %d 80 -- Filename: /no/such/file/dir -- 82 Warning: readfile(/no/such/file/dir): failed to open stream: No such file or directory in %s on lin… 86 Warning: readfile(php/php): failed to open stream: No such file or directory in %s on line %d
|
H A D | rename_basic.phpt | 6 Description: Renames a file or directory 9 echo "*** Testing rename() on non-existing file ***\n"; 11 require "$file_path/file.inc"; 16 // create the file 27 // checking statistics of old and renamed file - both should be same except ctime 40 *** Testing rename() on non-existing file ***
|
H A D | copy_variation18.phpt | 6 Description: Makes a copy of the file source to dest. 10 /* Test copy(): checking stat of file before and after after copy operation */ 14 require($file_path."/file.inc"); 16 echo "*** Test copy() function: stat of file before and after copy ***\n"; 40 echo "Comparing the stats of file before and after copy operation => "; 53 *** Test copy() function: stat of file before and after copy *** 55 Comparing the stats of file before and after copy operation => bool(true)
|
H A D | fputcsv.phpt | 29 $file = dirname(__FILE__) . 'fgetcsv.csv'; 30 @unlink($file); 32 $fp = fopen($file, "w"); 38 $res = file($file); 45 $fp = fopen($file, "r"); 55 @unlink($file);
|
/PHP-5.5/ext/xsl/tests/ |
H A D | bug54446.phpt | 2 Bug #54446 (Arbitrary file creation via libxslt 'output' extension) 43 print "OK, no file created\n"; 54 print "OK, file exists\n"; 70 print "OK, no file created\n"; 75 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li… 79 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li… 82 OK, no file created 83 OK, file exists 85 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li… 89 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li… [all …]
|
/PHP-5.5/ext/spl/ |
H A D | spl_directory.c | 104 if (intern->u.file.stream) { in spl_filesystem_object_free_storage() 288 intern->u.file.context = php_stream_context_from_zval(intern->u.file.zcontext, 0); in spl_filesystem_file_open() 311 intern->u.file.open_mode = estrndup(intern->u.file.open_mode, intern->u.file.open_mode_len); in spl_filesystem_file_open() 538 &intern->u.file.open_mode, &intern->u.file.open_mode_len, in spl_filesystem_object_create_type() 2207 if (intern->u.file.current_line || intern->u.file.current_zval) { in spl_filesystem_file_read_line_ex() 2299 &intern->u.file.open_mode, &intern->u.file.open_mode_len, in SPL_METHOD() 2416 RETURN_BOOL(intern->u.file.current_line || intern->u.file.current_zval); in SPL_METHOD() 2435 RETURN_STRINGL(intern->u.file.current_line, intern->u.file.current_line_len, 1); in SPL_METHOD() 2448 if (!intern->u.file.current_line && !intern->u.file.current_zval) { in SPL_METHOD() 2585 …char delimiter = intern->u.file.delimiter, enclosure = intern->u.file.enclosure, escape = intern->… in SPL_METHOD() [all …]
|
/PHP-5.5/ext/zip/tests/ |
H A D | oo_extract.phpt | 11 $file = $dirname . 'test_with_comment.zip'; 14 if ($zip->open($file) !== TRUE) { 35 echo "failed. bar file\n"; 41 echo "failed. foo file\n"; 47 /* extract one file */ 50 echo "failed. extract bar file\n"; 58 echo "failed. extract bar file\n"; 63 echo "failed. extract foo file\n";
|
/PHP-5.5/ext/standard/tests/streams/ |
H A D | stream_resolve_include_path.phpt | 8 $include_path_file = $include_path . DIRECTORY_SEPARATOR . 'file'; 9 $include_path_nested_file = $include_path_nested . DIRECTORY_SEPARATOR . 'file'; 20 var_dump(stream_resolve_include_path('file-does-not-exist')); 23 var_dump(stream_resolve_include_path('file')); 25 var_dump(stream_resolve_include_path('file'));
|
H A D | stream_get_meta_data_file_variation5.phpt | 2 testing stream_get_meta_data() "eof" field for a file stream 10 echo "Write some data to the file:\n"; 18 //seek to start of file 21 echo "\n\nRead entire file:\n"; 34 Write some data to the file: 57 Read entire file:
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | getservbyport_basic.phpt | 11 $file = "/etc/services"; 13 elseif(substr(PHP_OS,0,3) == "WIN") $file = "C:/WINDOWS/system32/drivers/etc/services"; 16 if(file_exists($file)){ 17 $services = file_get_contents($file); 23 echo "Services file not found in expected location\n";
|
/PHP-5.5/ext/zlib/tests/ |
H A D | zlib_scheme_fopen_variation1.phpt | 2 Test compress.zlib:// scheme with the fopen on a file scheme 12 $srcFile = "file://$inputFileName"; 15 echo "file=$compressedFile\n\n"; 22 file=compress.zlib://file://%s/004.txt.gz
|
/PHP-5.5/ext/oci8/tests/ |
H A D | define3.phpt | 47 echo "file md5:" . md5($f->load()) . "\n"; 56 echo "file md5:" . md5($outdata) . "\n"; 65 echo "file md5:" . md5($outdata) . "\n"; 75 echo "file md5:" . md5($fid->load()) . "\n"; 96 file md5:614fcbba1effb7caa27ef0ef25c27fcf 101 file md5:06d4f219d946c74d748d43932cd9dcb2 108 file md5:614fcbba1effb7caa27ef0ef25c27fcf 109 file md5:06d4f219d946c74d748d43932cd9dcb2 112 file md5:614fcbba1effb7caa27ef0ef25c27fcf 113 file md5:06d4f219d946c74d748d43932cd9dcb2
|
/PHP-5.5/ext/xmlreader/tests/ |
H A D | 008.phpt | 26 $file = dirname(__FILE__) . '/_008.xml'; 27 file_put_contents($file, $xmlstring); 31 $reader->open($file); 36 echo "file DTD: ok\n"; 39 unlink($file); 42 <!DOCTYPE LIST SYSTEM "file:///' . $dtdfile. '"> 69 file DTD: ok
|
/PHP-5.5/ext/phar/tests/tar/ |
H A D | links3.phpt | 14 echo $p['file.txt']->getContent(); 15 echo $p['my/file']->getContent(); 19 my file 20 my file
|
/PHP-5.5/tests/security/ |
H A D | open_basedir_tempnam.phpt | 20 $file = tempnam($initdir."/test/ok", "test"); 21 var_dump($file); 22 var_dump(unlink($file)); 25 $file = tempnam(".", "test"); 26 var_dump($file); 27 var_dump(unlink($file)); 29 $file = tempnam("../ok", "test"); 30 var_dump($file); 31 var_dump(unlink($file));
|
/PHP-5.5/ext/standard/tests/url/ |
H A D | parse_url_basic_004.phpt | 53 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : int(80) 77 --> zlib:/path/to/my/file/file.txt : NULL 83 --> file:///path/to/file : NULL 84 --> file://path/to/file : NULL 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/gd/tests/ |
H A D | bug38212.phpt | 9 $file = dirname(__FILE__) . '/bug38212.gd2'; 12 imagegd2($im1, $file); 13 $im = imagecreatefromgd2part($file, 0,0, -25,10); 14 unlink($file);
|
/PHP-5.5/ext/session/tests/ |
H A D | bug26862.phpt | 14 echo '<a href="file.php">link</a>'; 19 echo '<a href="file.php">link</a>'; 22 <a href="file.php?var=value">link</a><a href="file.php">link</a>
|