Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 37) sorted by path

12

/PHP-5.5/TSRM/
H A Dtsrm_win32.c442 static HANDLE dupHandle(HANDLE fh, BOOL inherit) { in dupHandle() argument
444 …if (!DuplicateHandle(self, fh, self, &copy, 0, inherit, DUPLICATE_SAME_ACCESS|DUPLICATE_CLOSE_SOUR… in dupHandle()
/PHP-5.5/Zend/
H A Dzend_compile.c214 ZEND_API void file_handle_dtor(zend_file_handle *fh) /* {{{ */ in file_handle_dtor() argument
218 zend_file_handle_dtor(fh TSRMLS_CC); in file_handle_dtor()
H A Dzend_ini.h197 ZEND_API int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int scanner_mod…
H A Dzend_ini_parser.y198 ZEND_API int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int scanner_mod… in zend_parse_ini_file() argument
207 if (zend_ini_open_file_for_scanning(fh, scanner_mode TSRMLS_CC) == FAILURE) { in zend_parse_ini_file()
213 zend_file_handle_dtor(fh TSRMLS_CC); in zend_parse_ini_file()
H A Dzend_ini_scanner.c174 static int init_ini_scanner(int scanner_mode, zend_file_handle *fh TSRMLS_DC) in init_ini_scanner()
184 SCNG(yy_in) = fh; in init_ini_scanner()
186 if (fh != NULL) { in init_ini_scanner()
187 ini_filename = zend_strndup(fh->filename, strlen(fh->filename)); in init_ini_scanner()
228 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode TSRMLS_DC) in zend_ini_open_file_for_scanning() argument
233 if (zend_stream_fixup(fh, &buf, &size TSRMLS_CC) == FAILURE) { in zend_ini_open_file_for_scanning()
237 if (init_ini_scanner(scanner_mode, fh TSRMLS_CC) == FAILURE) { in zend_ini_open_file_for_scanning()
238 zend_file_handle_dtor(fh TSRMLS_CC); in zend_ini_open_file_for_scanning()
H A Dzend_ini_scanner.h32 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode TSRMLS_DC);
H A Dzend_ini_scanner.l172 static int init_ini_scanner(int scanner_mode, zend_file_handle *fh TSRMLS_DC) in init_ini_scanner()
182 SCNG(yy_in) = fh; in init_ini_scanner()
184 if (fh != NULL) { in init_ini_scanner()
185 ini_filename = zend_strndup(fh->filename, strlen(fh->filename)); in init_ini_scanner()
226 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode TSRMLS_DC) in zend_ini_open_file_for_scanning() argument
231 if (zend_stream_fixup(fh, &buf, &size TSRMLS_CC) == FAILURE) { in zend_ini_open_file_for_scanning()
235 if (init_ini_scanner(scanner_mode, fh TSRMLS_CC) == FAILURE) { in zend_ini_open_file_for_scanning()
236 zend_file_handle_dtor(fh TSRMLS_CC); in zend_ini_open_file_for_scanning()
H A Dzend_language_scanner.c498 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files)); in open_file_for_scanning() local
500 fh->handle.stream.handle = (void*)(((char*)fh) + diff); in open_file_for_scanning()
501 file_handle->handle.stream.handle = fh->handle.stream.handle; in open_file_for_scanning()
H A Dzend_language_scanner.l496 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files)); in open_file_for_scanning() local
498 fh->handle.stream.handle = (void*)(((char*)fh) + diff); in open_file_for_scanning()
499 file_handle->handle.stream.handle = fh->handle.stream.handle; in open_file_for_scanning()
H A Dzend_stream.c305 switch (fh->type) {
310 fclose(fh->handle.fp);
314 if (fh->handle.stream.closer && fh->handle.stream.handle) {
315 fh->handle.stream.closer(fh->handle.stream.handle TSRMLS_CC);
317 fh->handle.stream.handle = NULL;
325 if (fh->opened_path) {
326 efree(fh->opened_path);
327 fh->opened_path = NULL;
329 if (fh->free_filename && fh->filename) {
330 efree((char*)fh->filename);
[all …]
H A Dzend_stream.h77 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh TSRMLS_DC);
/PHP-5.5/ext/com_dotnet/tests/
H A Dbug66431_0.phpt14 $fh = $fso->OpenTextFile($fpath, 2, true);
15 $fh->Write($text);
16 $fh->Close();
/PHP-5.5/ext/gd/tests/
H A Dbug72339.phpt9 $fh = fopen($fname, "w");
10 fwrite($fh, "gd2\x00");
11 fwrite($fh, pack("n", 2));
12 fwrite($fh, pack("n", 1));
13 fwrite($fh, pack("n", 1));
14 fwrite($fh, pack("n", 0x40));
15 fwrite($fh, pack("n", 2));
16 fwrite($fh, pack("n", 0x5AA0)); // Chunks Wide
17 fwrite($fh, pack("n", 0x5B00)); // Chunks Vertically
18 fwrite($fh, str_repeat("\x41\x41\x41\x41", 0x1000000)); // overflow data
[all …]
/PHP-5.5/ext/gettext/tests/
H A Dgettext_bind_textdomain_codeset-retval.phpt21 Florian Holzhauer fh-pt@fholzhauer.de
H A Dgettext_bind_textdomain_codeset-wrongparams.phpt22 Florian Holzhauer fh-pt@fholzhauer.de
/PHP-5.5/ext/mbstring/
H A DREADME_PHP3-i18n-ja374 - single byte charactor in range of 00h-7fh which is compatible
376 - multibyte without 00h-7fh
/PHP-5.5/ext/openssl/tests/
H A Dsni_001.phpt45 $fh = fopen($url, 'r', false, $context);
46 assert($fh);
53 $fh = stream_socket_client($url, $errno, $errstr,
55 assert($fh);
62 $fh = stream_socket_client($url, $errno, $errstr,
64 assert($fh);
66 $r = stream_socket_enable_crypto($fh, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
/PHP-5.5/ext/standard/
H A Dbasic_functions.c5982 zend_file_handle fh; local
6003 memset(&fh, 0, sizeof(fh));
6004 fh.filename = filename;
6005 fh.type = ZEND_HANDLE_FILENAME;
6008 if (zend_parse_ini_file(&fh, 0, scanner_mode, ini_parser_cb, return_value TSRMLS_CC) == FAILURE) {
H A Dbrowscap.c244 zend_file_handle fh = {0}; in browscap_read_file() local
264 fh.handle.fp = VCWD_FOPEN(filename, "r"); in browscap_read_file()
265 fh.opened_path = NULL; in browscap_read_file()
266 fh.free_filename = 0; in browscap_read_file()
267 if (!fh.handle.fp) { in browscap_read_file()
274 fh.filename = filename; in browscap_read_file()
275 Z_TYPE(fh) = ZEND_HANDLE_FP; in browscap_read_file()
277 zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_RAW, in browscap_read_file()
/PHP-5.5/ext/standard/tests/array/
H A Darray_column_basic.phpt45 $fh = fopen(__FILE__, 'r', true);
77 'value' => $fh
/PHP-5.5/ext/standard/tests/file/
H A Dbug53241.phpt12 $fh = fopen($fn, 'xb');
14 var_dump(curl_setopt($ch, CURLOPT_FILE, $fh));
H A Ddisk_free_space_basic.phpt31 $fh = fopen($file_path.$dir."/disk_free_space.tmp", "a");
33 fwrite($fh, (binary)$data);
34 fclose($fh);
H A Ddisk_free_space_error-win32.phpt29 $fh = fopen( $file_path."/disk_free_space.tmp", "w" );
30 fwrite( $fh, " Garbage data for the temporary file" );
33 fclose($fh);
H A Ddisk_free_space_error.phpt29 $fh = fopen( $file_path."/disk_free_space.tmp", "w" );
30 fwrite( $fh, (binary)" Garbage data for the temporary file" );
33 fclose($fh);
H A Ddisk_total_space_basic.phpt22 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w");
23 fwrite($fh, (binary)"Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data Garbage Data …
25 fclose($fh);

Completed in 145 milliseconds

12