/PHP-5.4/ext/spl/ |
H A D | spl_directory.c | 104 if (intern->u.file.stream) { in spl_filesystem_object_free_storage() 285 intern->u.file.context = php_stream_context_from_zval(intern->u.file.zcontext, 0); in spl_filesystem_file_open() 308 intern->u.file.open_mode = estrndup(intern->u.file.open_mode, intern->u.file.open_mode_len); in spl_filesystem_file_open() 535 &intern->u.file.open_mode, &intern->u.file.open_mode_len, in spl_filesystem_object_create_type() 2209 if (intern->u.file.current_line || intern->u.file.current_zval) { in spl_filesystem_file_read_line_ex() 2301 &intern->u.file.open_mode, &intern->u.file.open_mode_len, in SPL_METHOD() 2418 RETURN_BOOL(intern->u.file.current_line || intern->u.file.current_zval); in SPL_METHOD() 2437 RETURN_STRINGL(intern->u.file.current_line, intern->u.file.current_line_len, 1); in SPL_METHOD() 2450 if (!intern->u.file.current_line && !intern->u.file.current_zval) { in SPL_METHOD() 2587 …char delimiter = intern->u.file.delimiter, enclosure = intern->u.file.enclosure, escape = intern->… in SPL_METHOD() [all …]
|
/PHP-5.4/ext/standard/tests/dir/ |
H A D | scandir_variation1-win32.phpt | 107 Warning: scandir(0,0): The system cannot find the file specified. (code: 2) in %s on line %d 116 Warning: scandir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d 125 Warning: scandir(12345,12345): The system cannot find the file specified. (code: 2) in %s on line %d 134 Warning: scandir(-2345,-2345): The system cannot find the file specified. (code: 2) in %s on line %d 143 Warning: scandir(10.5,10.5): The system cannot find the file specified. (code: 2) in %s on line %d 152 Warning: scandir(-10.5,-10.5): The system cannot find the file specified. (code: 2) in %s on line %d 179 Warning: scandir(0.5,0.5): The system cannot find the file specified. (code: 2) in %s on line %d 198 Warning: scandir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d 212 Warning: scandir(1,1): The system cannot find the file specified. (code: 2) in %s on line %d 241 Warning: scandir(string,string): The system cannot find the file specified. (code: 2) in %s on line… [all …]
|
/PHP-5.4/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.4/ext/standard/tests/file/ |
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 | 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 | 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);
|
H A D | fopen_variation5.phpt | 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 64 // create a file in the middle directory 70 // should read dir2 file 76 //create a file in dir1 81 //should now read dir1 file 87 // create a file in working directory 92 //should still read dir1 file 101 //should read the file in working dir 107 // create a file in the script directory [all …]
|
H A D | fopen_variation8.phpt | 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 63 // create a file in the middle directory 69 // should read dir2 file 75 //create a file in dir1 80 //should now read dir1 file 86 // create a file in working directory 91 //should read the dir1 file 100 //should read the working dir file 106 // create a file in the script directory [all …]
|
H A D | copy_variation15.phpt | 20 Description: Makes a copy of the file source to dest. 24 /* Test copy(): Trying to create a copy of file in a dir which doesn't have write permissions */ 28 echo "*** Test copy() function: Trying to create a copy of file in a dir which doesn't have write p… 29 $file = $file_path."/copy_variation15.tmp"; 30 $file_handle = fopen($file, "w"); 43 var_dump( copy($file, $dir."/copy_copy_variation15.tmp") ); 45 var_dump( filesize($file) ); //size of source 59 *** Test copy() function: Trying to create a copy of file in a dir which doesn't have write permiss…
|
/PHP-5.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/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.4/scripts/dev/ |
H A D | check_parameters.php | 295 foreach (scandir($path) as $file) { 296 if ($file == '.' || $file == '..' || $file == 'CVS') continue; 298 $file = "$path/$file"; 299 if (is_dir($file)) { 300 recurse($file); 305 if (substr_compare($file, '.c', -2) && substr_compare($file, '.cpp', -4)) continue; 307 $txt = file_get_contents($file); 329 $GLOBALS['current_file'] = $file;
|
/PHP-5.4/ext/mysqli/tests/ |
H A D | mysqli_debug_append.phpt | 2 mysqli_debug() - append to trace file 29 // the debug file should have entries 35 printf("[002] Trace file '%s' has not been created\n", $trace_file); 37 printf("[003] Trace file '%s' is very small. filesize() reports only %d bytes. Please check.\n", 41 // will mysqli_debug() mind if the trace file gets removed? 46 printf("[004] Cannot create trace file to test append mode\n"); 50 printf("[005] Cannot write to trace file.\n"); 63 …printf("[008] Cannot find original file content any more. Seems that the trace file got overwritte… 74 …printf("[011] Cannot find original file content any more. Seems that the trace file got overwritte… 81 printf("[012] Could not remove trace file '%s'.\n", $trace_file);
|