/PHP-7.4/TSRM/ |
H A D | tsrm_win32.c | 433 static HANDLE dupHandle(HANDLE fh, BOOL inherit) in dupHandle() argument 436 …if (!DuplicateHandle(self, fh, self, ©, 0, inherit, DUPLICATE_SAME_ACCESS|DUPLICATE_CLOSE_SOUR… in dupHandle()
|
/PHP-7.4/Zend/ |
H A D | zend_compile.c | 351 ZEND_API void file_handle_dtor(zend_file_handle *fh) /* {{{ */ in file_handle_dtor() argument 354 zend_file_handle_dtor(fh); in file_handle_dtor()
|
H A D | zend_language_scanner.l | 529 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files)); in open_file_for_scanning() local 531 fh->handle.stream.handle = (void*)(((char*)fh) + diff); in open_file_for_scanning() 532 file_handle->handle.stream.handle = fh->handle.stream.handle; in open_file_for_scanning()
|
H A D | zend_ini_parser.y | 224 ZEND_API int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int scanner_mod… in zend_parse_ini_file() argument 233 if (zend_ini_open_file_for_scanning(fh, scanner_mode) == FAILURE) { in zend_parse_ini_file() 239 zend_file_handle_dtor(fh); in zend_parse_ini_file()
|
H A D | zend_stream.c | 204 switch (fh->type) { in zend_file_handle_dtor() 206 fclose(fh->handle.fp); in zend_file_handle_dtor() 209 if (fh->handle.stream.closer && fh->handle.stream.handle) { in zend_file_handle_dtor() 210 fh->handle.stream.closer(fh->handle.stream.handle); in zend_file_handle_dtor() 220 if (fh->opened_path) { in zend_file_handle_dtor() 222 fh->opened_path = NULL; in zend_file_handle_dtor() 224 if (fh->buf) { in zend_file_handle_dtor() 225 efree(fh->buf); in zend_file_handle_dtor() 226 fh->buf = NULL; in zend_file_handle_dtor() 228 if (fh->free_filename && fh->filename) { in zend_file_handle_dtor() [all …]
|
H A D | zend_ini_scanner.l | 222 static int init_ini_scanner(int scanner_mode, zend_file_handle *fh) in init_ini_scanner() argument 232 SCNG(yy_in) = fh; in init_ini_scanner() 234 if (fh != NULL) { in init_ini_scanner() 235 ini_filename = zend_strndup(fh->filename, strlen(fh->filename)); in init_ini_scanner() 276 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode) in zend_ini_open_file_for_scanning() argument 281 if (zend_stream_fixup(fh, &buf, &size) == FAILURE) { in zend_ini_open_file_for_scanning() 285 if (init_ini_scanner(scanner_mode, fh) == FAILURE) { in zend_ini_open_file_for_scanning() 286 zend_file_handle_dtor(fh); in zend_ini_open_file_for_scanning()
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 568 zend_file_handle fh; in phpdbg_compile() local 577 …tream_open_for_zend_ex(PHPDBG_G(exec), &fh, USE_PATH|STREAM_OPEN_FOR_INCLUDE) == SUCCESS && zend_s… in phpdbg_compile() 579 PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE); in phpdbg_compile() 580 zend_destroy_file_handle(&fh); in phpdbg_compile()
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | lstat_stat_variation7.phpt | 23 $fh = fopen($file_name,"w"); 27 fwrite($fh, str_repeat("Hello World", $blksize));
|
H A D | disk_free_space_error-win32.phpt | 29 $fh = fopen( $file_path."/disk_free_space.tmp", "w" ); 30 fwrite( $fh, " Garbage data for the temporary file" ); 33 fclose($fh);
|
H A D | disk_free_space_error.phpt | 29 $fh = fopen( $file_path."/disk_free_space.tmp", "w" ); 30 fwrite( $fh, " Garbage data for the temporary file" ); 33 fclose($fh);
|
H A D | disk_total_space_error-win32.phpt | 28 $fh = fopen( $file_path."/disk_total_space.tmp", "w" ); 29 fwrite( $fh, " Garbage data for the temporary file" ); 31 fclose($fh);
|
H A D | disk_total_space_error.phpt | 28 $fh = fopen( $file_path."/disk_total_space.tmp", "w" ); 29 fwrite( $fh, " Garbage data for the temporary file" ); 31 fclose($fh);
|
H A D | file_variation.phpt | 18 $fh = fopen($file_path."/file_variation.tmp", "w"); 19 fwrite($fh, $data); 23 fclose($fh);
|
H A D | disk_free_space_basic.phpt | 31 $fh = fopen($file_path.$dir."/disk_free_space.tmp", "a"); 33 fwrite($fh, $data); 34 fclose($fh);
|
H A D | bug53241.phpt | 12 $fh = fopen($fn, 'xb'); 14 var_dump(curl_setopt($ch, CURLOPT_FILE, $fh));
|
H A D | disk_total_space_basic.phpt | 24 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w"); 25 fwrite($fh, "Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage … 27 fclose($fh);
|
/PHP-7.4/ext/standard/ |
H A D | basic_functions.c | 6068 zend_file_handle fh; local 6092 zend_stream_init_filename(&fh, filename); 6095 if (zend_parse_ini_file(&fh, 0, (int)scanner_mode, ini_parser_cb, return_value) == FAILURE) {
|
H A D | browscap.c | 409 zend_file_handle fh; in browscap_read_file() local 416 zend_stream_init_fp(&fh, VCWD_FOPEN(filename, "r"), filename); in browscap_read_file() 417 if (!fh.handle.fp) { in browscap_read_file() 436 zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_RAW, in browscap_read_file()
|
/PHP-7.4/win32/ |
H A D | ftok.c | 30 HANDLE fh; in ftok() local 45 …if ((fh = CreateFileW(pathw, FILE_GENERIC_READ, PHP_WIN32_IOUTIL_DEFAULT_SHARE_MODE, 0, OPEN_EXIST… in ftok() 50 if (!GetFileInformationByHandle(fh, &bhfi)) { in ftok() 52 CloseHandle(fh); in ftok() 58 CloseHandle(fh); in ftok()
|
/PHP-7.4/main/ |
H A D | php_ini.c | 626 zend_file_handle fh; in php_init_config() local 627 zend_stream_init_fp(&fh, fp, filename); in php_init_config() 630 …zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_NORMAL, (zend_ini_parser_cb_t) php_ini_parser_cb, &co… in php_init_config() 635 ZVAL_NEW_STR(&tmp, zend_string_init(fh.filename, strlen(fh.filename), 1)); in php_init_config() 640 efree((char *)fh.filename); in php_init_config() 701 zend_file_handle fh; in php_init_config() local 702 zend_stream_init_fp(&fh, VCWD_FOPEN(ini_file, "r"), ini_file); in php_init_config() 703 if (fh.handle.fp) { in php_init_config() 792 zend_file_handle fh; in php_parse_user_ini_file() local 793 zend_stream_init_fp(&fh, VCWD_FOPEN(ini_file, "r"), ini_file); in php_parse_user_ini_file() [all …]
|
/PHP-7.4/ext/com_dotnet/tests/ |
H A D | bug66431_0.phpt | 14 $fh = $fso->OpenTextFile($fpath, 2, true); 15 $fh->Write($text); 16 $fh->Close();
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | strspn_variation6.phpt | 68 "fh\ne\trlsti \l",
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug76859.phpt | 8 $fh = fopen('php://memory', 'r+b'); 9 fwrite($fh, $data); 10 rewind($fh); 11 stream_filter_append($fh, 'string.rot13', STREAM_FILTER_READ); 14 while (!feof($fh)) { 15 $out .= stream_get_line($fh, 1024); 18 fclose($fh);
|
/PHP-7.4/ext/standard/tests/file/windows_links/ |
H A D | readlink_compat.phpt | 54 $fh = fopen($filename, 'w'); 55 fclose($fh);
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_column_basic.phpt | 45 $fh = fopen(__FILE__, 'r', true); 77 'value' => $fh
|