Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 32) sorted by relevance

12

/PHP-8.0/ext/standard/tests/streams/
H A Dbug76859.phpt8 $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-8.0/ext/gd/tests/
H A Dbug72339.phpt14 $fh = fopen($fname, "w");
15 fwrite($fh, "gd2\x00");
16 fwrite($fh, pack("n", 2));
17 fwrite($fh, pack("n", 1));
18 fwrite($fh, pack("n", 1));
19 fwrite($fh, pack("n", 0x40));
20 fwrite($fh, pack("n", 2));
21 fwrite($fh, pack("n", 0x5AA0)); // Chunks Wide
22 fwrite($fh, pack("n", 0x5B00)); // Chunks Vertically
23 fwrite($fh, str_repeat("\x41\x41\x41\x41", 0x1000000)); // overflow data
[all …]
/PHP-8.0/win32/
H A Dftok.c28 HANDLE fh; in ftok() local
43 …if ((fh = CreateFileW(pathw, FILE_GENERIC_READ, PHP_WIN32_IOUTIL_DEFAULT_SHARE_MODE, 0, OPEN_EXIST… in ftok()
48 if (!GetFileInformationByHandle(fh, &bhfi)) { in ftok()
50 CloseHandle(fh); in ftok()
56 CloseHandle(fh); in ftok()
/PHP-8.0/ext/iconv/tests/
H A Dbug76249.phpt7 $fh = fopen('php://memory', 'rw');
8 fwrite($fh, "abc");
9 rewind($fh);
10 if (false === @stream_filter_append($fh, 'convert.iconv.ucs-2/utf8//IGNORE', STREAM_FILTER_READ, []…
11 stream_filter_append($fh, 'convert.iconv.ucs-2/utf-8//IGNORE', STREAM_FILTER_READ, []);
13 var_dump(stream_get_contents($fh));
/PHP-8.0/Zend/
H A Dzend_stream.c204 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 Dzend_ini_scanner.l221 static zend_result init_ini_scanner(int scanner_mode, zend_file_handle *fh) in init_ini_scanner() argument
231 SCNG(yy_in) = fh; in init_ini_scanner()
233 if (fh != NULL) { in init_ini_scanner()
234 ini_filename = zend_strndup(fh->filename, strlen(fh->filename)); in init_ini_scanner()
271 zend_result zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode) in zend_ini_open_file_for_scanning() argument
276 if (zend_stream_fixup(fh, &buf, &size) == FAILURE) { in zend_ini_open_file_for_scanning()
280 if (init_ini_scanner(scanner_mode, fh) == FAILURE) { in zend_ini_open_file_for_scanning()
281 zend_file_handle_dtor(fh); in zend_ini_open_file_for_scanning()
H A Dzend_ini_scanner.h31 zend_result zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode);
H A Dzend_stream.h71 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh);
H A Dzend_ini_parser.y215 ZEND_API zend_result zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int sca… in zend_parse_ini_file() argument
224 if (zend_ini_open_file_for_scanning(fh, scanner_mode) == FAILURE) { in zend_parse_ini_file()
230 zend_file_handle_dtor(fh); in zend_parse_ini_file()
/PHP-8.0/ext/oci8/tests/
H A Dbug70700.phpt49 $fh = fopen('php://temp', 'rw');
55 rewind($fh);
57 fclose($fh);
80 $fh = fopen('php://temp', 'rw');
86 rewind($fh);
88 fclose($fh);
111 $fh = fopen('php://temp', 'rw');
117 rewind($fh);
119 fclose($fh);
148 rewind($fh);
[all …]
/PHP-8.0/ext/com_dotnet/tests/
H A Dbug66431_0.phpt14 $fh = $fso->OpenTextFile($fpath, 2, true);
15 $fh->Write($text);
16 $fh->Close();
/PHP-8.0/ext/standard/tests/file/
H A Ddisk_total_space_error.phpt17 $fh = fopen( $file_path."/disk_total_space.tmp", "w" );
18 fwrite( $fh, " Garbage data for the temporary file" );
20 fclose($fh);
H A Ddisk_total_space_error-win32.phpt17 $fh = fopen( $file_path."/disk_total_space.tmp", "w" );
18 fwrite( $fh, " Garbage data for the temporary file" );
20 fclose($fh);
H A Ddisk_total_space_basic.phpt17 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w");
18 fwrite($fh, "Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage …
20 fclose($fh);
H A Ddisk_free_space_error.phpt16 $fh = fopen( $file_path."/disk_free_space.tmp", "w" );
17 fwrite( $fh, " Garbage data for the temporary file" );
20 fclose($fh);
H A Dlstat_stat_variation7.phpt16 $fh = fopen($file_name,"w");
20 fwrite($fh, str_repeat("Hello World", $blksize));
21 fclose($fh);
H A Ddisk_free_space_error-win32.phpt16 $fh = fopen( $file_path."/disk_free_space.tmp", "w" );
17 fwrite( $fh, " Garbage data for the temporary file" );
20 fclose($fh);
H A Dbug53241.phpt12 $fh = fopen($fn, 'xb');
14 var_dump(curl_setopt($ch, CURLOPT_FILE, $fh));
H A Ddisk_free_space_basic.phpt24 $fh = fopen($file_path.$dir."/disk_free_space.tmp", "a");
26 fwrite($fh, $data);
27 fclose($fh);
H A Dfile_variation.phpt13 $fh = fopen($file_path."/file_variation.tmp", "w");
14 fwrite($fh, $data);
18 fclose($fh);
/PHP-8.0/main/
H A Dphp_ini.c610 zend_file_handle fh; in php_init_config() local
611 zend_stream_init_fp(&fh, fp, filename); in php_init_config()
614 …zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_NORMAL, (zend_ini_parser_cb_t) php_ini_parser_cb, &co… in php_init_config()
619 ZVAL_NEW_STR(&tmp, zend_string_init(fh.filename, strlen(fh.filename), 1)); in php_init_config()
624 efree((char *)fh.filename); in php_init_config()
685 zend_file_handle fh; in php_init_config() local
686 zend_stream_init_fp(&fh, VCWD_FOPEN(ini_file, "r"), ini_file); in php_init_config()
687 if (fh.handle.fp) { in php_init_config()
773 zend_file_handle fh; in php_parse_user_ini_file() local
774 zend_stream_init_fp(&fh, VCWD_FOPEN(ini_file, "r"), ini_file); in php_parse_user_ini_file()
[all …]
/PHP-8.0/ext/gettext/tests/
H A Dgettext_bind_textdomain_codeset-retval.phpt21 Florian Holzhauer fh-pt@fholzhauer.de
/PHP-8.0/ext/standard/tests/file/windows_links/
H A Dreadlink_compat.phpt54 $fh = fopen($filename, 'w');
55 fclose($fh);
/PHP-8.0/ext/standard/tests/array/
H A Darray_column_basic.phpt39 $fh = fopen(__FILE__, 'r', true);
71 'value' => $fh
/PHP-8.0/ext/standard/
H A Dbrowscap.c407 zend_file_handle fh; in browscap_read_file() local
414 zend_stream_init_fp(&fh, VCWD_FOPEN(filename, "r"), filename); in browscap_read_file()
415 if (!fh.handle.fp) { in browscap_read_file()
434 zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_RAW, in browscap_read_file()

Completed in 47 milliseconds

12