/PHP-5.5/ext/ereg/tests/ |
H A D | split_variation_004.phpt | 11 function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { 12 echo "Error: $err_no - $err_msg, $filename($linenum)\n";
|
H A D | spliti_variation_004.phpt | 11 function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { 12 echo "Error: $err_no - $err_msg, $filename($linenum)\n";
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | fgetcsv_variation13.phpt | 16 $filename = dirname(__FILE__) . '/fgetcsv_variation13.tmp'; 17 @unlink($filename); 28 $file_handle = fopen($filename, "w"); 30 $file_handle = fopen($filename, $file_modes[$mode_counter] ); 33 echo "Error: failed to create file $filename!\n"; 43 $file_handle = fopen($filename, $file_modes[$mode_counter]); 62 unlink($filename);
|
H A D | fwrite_variation1-win32.phpt | 22 // include the file.inc for Function: function delete_file($filename) 42 $filename = dirname(__FILE__)."/fwrite_variation1.tmp"; // this is name of the file 45 $file_handle = fopen($filename, $file_mode); 47 echo "Error: failed to fopen() file: $filename!"; 72 var_dump( filesize($filename) ); // expected: 1024 73 var_dump(md5(file_get_contents($filename))); // hash the output 74 delete_file($filename); // delete file with name fwrite_variation1.tmp
|
H A D | fwrite_variation1.phpt | 22 // include the file.inc for Function: function delete_file($filename) 41 $filename = dirname(__FILE__)."/fwrite_variation1.tmp"; // this is name of the file 44 $file_handle = fopen($filename, $file_mode); 46 echo "Error: failed to fopen() file: $filename!"; 71 var_dump( filesize($filename) ); // expected: 1024 72 var_dump(md5(file_get_contents($filename))); // hash the output 73 delete_file($filename); // delete file with name fwrite_variation1.tmp
|
H A D | fgetcsv_variation20.phpt | 17 $filename = dirname(__FILE__) . '/fgetcsv_variation20.tmp'; 18 @unlink($filename); 29 $file_handle = fopen($filename, "w"); 31 $file_handle = fopen($filename, $file_modes[$mode_counter] ); 34 echo "Error: failed to create file $filename!\n"; 44 $file_handle = fopen($filename, $file_modes[$mode_counter]); 64 unlink($filename);
|
H A D | lstat_stat_variation19.phpt | 11 /* Prototype: array lstat ( string $filename ); 14 Prototype: array stat ( string $filename ); 31 echo "*** Testing stat() with filename & directory name stored inside an array ***\n"; 45 echo "\n-- Testing stat() on filename stored inside an array --\n"; 63 *** Testing stat() with filename & directory name stored inside an array *** 65 -- Testing stat() on filename stored inside an array --
|
H A D | stat_variation7-win32.phpt | 13 * Prototype: array stat ( string $filename ); 30 echo "\n*** Testing stat(): with filename 33 // creating object with members as numeric and non-numeric filename and directory name 49 echo "\n-- Testing stat() on filename stored inside an object --\n"; 74 *** Testing stat(): with filename 77 -- Testing stat() on filename stored inside an object --
|
H A D | stat_basic-win32.phpt | 12 Prototype: array stat ( string $filename ); 32 $filename = "$dirname/stat_basic.tmp"; 33 $file_handle = fopen($filename, "w"); 36 $file_stat = stat($filename); 61 var_dump( is_array( stat($filename) ) );
|
H A D | fopen_variation3.phpt | 7 /* Prototype : resource fopen(string filename, string mode [, bool use_include_path [, resource co… 16 function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { 19 echo "Error: $err_no - $err_msg, $filename($linenum)\n"; 25 $filename = __FILE__; 111 $h = fopen($filename, $mode, $value);
|
H A D | file.inc | 23 $filename = Name of the file 29 function create_file($filename, $mode = "w") { 30 $file_handle = fopen ($filename, $mode); 182 if( chmod($filename, $perms) ) 312 $filename, 351 $filename, 364 $src_filename = $file_path."/".$filename; 437 function delete_file($filename) { 439 if ( file_exists($filename) ) { 440 if ( unlink($filename) ) [all …]
|
H A D | fgetc_variation3.phpt | 21 $filename = dirname(__FILE__)."/fgetc_variation3.tmp"; 25 $file_handle = fopen($filename, $file_mode); 27 echo "Error: failed to open file $filename!\n"; 47 unlink($filename);
|
H A D | fgets_variation1.phpt | 20 $filename = dirname(__FILE__)."/fgets_variation1.tmp"; 24 $file_handle = fopen($filename, $file_mode); 26 echo "Error: failed to open file $filename!\n"; 46 unlink($filename);
|
H A D | file_put_contents_variation7-win32.phpt | 54 $filename = 'FileGetContentsVar7.tmp'; 55 $absFile = $absSubDir.'/'.$filename; 62 $res = file_put_contents($dir."\\".$filename, ($data + $i)); 71 unlink($dir."/".$filename);
|
H A D | file_put_contents_variation7.phpt | 46 $filename = 'FileGetContentsVar7.tmp'; 47 $absFile = $absSubDir.'/'.$filename; 54 $res = file_put_contents($dir."/".$filename, ($data + $i)); 63 unlink($dir."/".$filename);
|
H A D | unlink_variation7.phpt | 7 /* Prototype : bool unlink(string filename[, context context]) 16 function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { 19 echo "Error: $err_no - $err_msg, $filename($linenum)\n"; 25 $filename = __FILE__.'tmp'; 113 touch($filename); // create if it doesn't exist 114 var_dump( unlink($filename, $value) ); 117 if (file_exists($filename)) { 118 unlink($filename);
|
/PHP-5.5/sapi/milter/ |
H A D | php_milter.c | 95 static char *filename = NULL; variable 131 if (filename == NULL) { in ZEND_DECLARE_MODULE_GLOBALS() 136 if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) { in ZEND_DECLARE_MODULE_GLOBALS() 137 php_printf("Could not open input file: %s\n", filename); in ZEND_DECLARE_MODULE_GLOBALS() 142 file_handle.filename = filename; in ZEND_DECLARE_MODULE_GLOBALS() 197 if (filename == NULL) { in mlfi_connect() 203 php_printf("Could not open input file: %s\n", filename); in mlfi_connect() 208 file_handle.filename = filename; in mlfi_connect() 1089 filename = ap_php_optarg; in main() 1144 if (argc > ap_php_optind && !filename) { in main() [all …]
|
/PHP-5.5/ext/session/tests/ |
H A D | session_set_save_handler_iface_001.phpt | 49 foreach (glob($this->path . '*') as $filename) { 50 if (filemtime($filename) + $maxlifetime < time()) { 51 @unlink($filename);
|
H A D | session_set_save_handler_class_002.phpt | 49 foreach (glob($this->path . '*') as $filename) { 50 if (filemtime($filename) + $maxlifetime < time()) { 51 @unlink($filename);
|
/PHP-5.5/tests/basic/ |
H A D | rfc1867_empty_upload.phpt | 16 Content-Disposition: form-data; name="file1"; filename="file1.txt" 21 Content-Disposition: form-data; name="file2"; filename="" 26 Content-Disposition: form-data; name="file3"; filename="file3.txt"
|
H A D | rfc1867_max_file_size.phpt | 16 Content-Disposition: form-data; name="file1"; filename="file1.txt" 21 Content-Disposition: form-data; name="file2"; filename="file2.txt" 26 Content-Disposition: form-data; name="file3"; filename="C:\foo\bar/file3.txt"
|
/PHP-5.5/ext/standard/tests/dir/ |
H A D | readdir_variation5.phpt | 9 $filename = dirname(__FILE__)."/readdir_root_check.tmp"; 10 $fp = fopen($filename, 'w'); 12 if(fileowner($filename) == 0) { 13 unlink ($filename); 16 unlink($filename);
|
/PHP-5.5/ext/phar/ |
H A D | stream.c | 65 if (strlen(filename) < 7 || strncasecmp(filename, "phar://", 7)) { in phar_parse_url() 74 …if (phar_split_fname(filename, strlen(filename), &arch, &arch_len, &entry, &entry_len, 2, (mode[0]… in phar_parse_url() 262 entry->filename = estrndup("", 0); in phar_wrapper_open_url() 301 fprintf(stderr, "Pharname: %s\n", idata->phar->filename); in phar_wrapper_open_url() 303 fprintf(stderr, "Entry: %s\n", idata->internal_file->filename); in phar_wrapper_open_url() 320 char *entry = idata->internal_file->filename, *cwd; in phar_wrapper_open_url() 885 entry->filename = estrdup(resource_to->path+1); in phar_wrapper_rename() 891 zend_hash_del(&(phar->manifest), entry->filename, strlen(entry->filename)); in phar_wrapper_rename() 896 entry->filename_len = strlen(entry->filename); in phar_wrapper_rename() 940 efree(entry->filename); in phar_wrapper_rename() [all …]
|
/PHP-5.5/main/streams/ |
H A D | plain_wrapper.c | 941 realpath = estrdup(filename); in _php_stream_fopen() 943 if ((realpath = expand_filepath(filename, NULL TSRMLS_CC)) == NULL) { in _php_stream_fopen() 1404 if(!filename) { in _php_stream_fopen_with_path() 1408 filename_length = strlen(filename); in _php_stream_fopen_with_path() 1411 if (*filename == '.' && (IS_SLASH(filename[1]) || filename[1] == '.')) { in _php_stream_fopen_with_path() 1413 ptr = filename + 1; in _php_stream_fopen_with_path() 1426 return php_stream_fopen_rel(filename, mode, opened_path, options); in _php_stream_fopen_with_path() 1432 if (IS_ABSOLUTE_PATH(filename, filename_length)) { in _php_stream_fopen_with_path() 1438 return php_stream_fopen_rel(filename, mode, opened_path, options); in _php_stream_fopen_with_path() 1442 if (IS_SLASH(filename[0])) { in _php_stream_fopen_with_path() [all …]
|
/PHP-5.5/ext/zip/ |
H A D | php_zip.c | 471 if (obj->filename) { in php_zipobj_get_filename() 472 return obj->filename; in php_zipobj_get_filename() 1098 if (intern->filename) { in php_zip_object_free_storage() 1115 intern->filename = NULL; in php_zip_object_new() 1220 char *filename; in PHP_NAMED_FUNCTION() local 1500 char *filename; in ZIPARCHIVE_METHOD() local 1538 if (ze_obj->filename) { in ZIPARCHIVE_METHOD() 1785 char *filename; in ZIPARCHIVE_METHOD() local 1808 entry_name = filename; in ZIPARCHIVE_METHOD() 2517 char *filename; in php_zip_get_from() local [all …]
|