Home
last modified time | relevance | path

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

12

/PHP-7.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-7.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 $a = stream_get_contents($fh);
/PHP-7.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-7.0/scripts/dev/generate-phpt/src/
H A DgtTestCaseWriter.php22 $fh = fopen($fileName, 'w');
23 fwrite ($fh, $string);
24 fclose($fh);
/PHP-7.0/main/
H A Dphp_ini.c389 zend_file_handle fh; in php_init_config() local
542 memset(&fh, 0, sizeof(fh)); in php_init_config()
556 if (fh.handle.fp) { in php_init_config()
564 if (!fh.handle.fp) { in php_init_config()
570 if (fh.handle.fp) { in php_init_config()
576 if (!fh.handle.fp) { in php_init_config()
578 if (fh.handle.fp) { in php_init_config()
590 if (fh.handle.fp) { in php_init_config()
599 ZVAL_NEW_STR(&tmp, zend_string_init(fh.filename, strlen(fh.filename), 1)); in php_init_config()
754 zend_file_handle fh; in php_parse_user_ini_file() local
[all …]
/PHP-7.0/Zend/
H A Dzend_stream.c304 switch (fh->type) {
309 fclose(fh->handle.fp);
313 if (fh->handle.stream.closer && fh->handle.stream.handle) {
314 fh->handle.stream.closer(fh->handle.stream.handle);
316 fh->handle.stream.handle = NULL;
324 if (fh->opened_path) {
325 zend_string_release(fh->opened_path);
326 fh->opened_path = NULL;
328 if (fh->free_filename && fh->filename) {
329 efree((char*)fh->filename);
[all …]
H A Dzend_ini_scanner.l222 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()
H A Dzend_ini_scanner.h33 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode);
H A Dzend_stream.h80 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh);
H A Dzend_ini_parser.y216 ZEND_API int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int scanner_mod… in zend_parse_ini_file() argument
225 if (zend_ini_open_file_for_scanning(fh, scanner_mode) == FAILURE) { in zend_parse_ini_file()
231 zend_file_handle_dtor(fh); in zend_parse_ini_file()
/PHP-7.0/ext/com_dotnet/tests/
H A Dbug66431_0.phpt14 $fh = $fso->OpenTextFile($fpath, 2, true);
15 $fh->Write($text);
16 $fh->Close();
/PHP-7.0/ext/standard/tests/file/
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);
H A Ddisk_total_space_error.phpt26 $fh = fopen( $file_path."/disk_total_space.tmp", "w" );
27 fwrite( $fh, (binary)" Garbage data for the temporary file" );
29 fclose($fh);
H A Dbug53241.phpt12 $fh = fopen($fn, 'xb');
14 var_dump(curl_setopt($ch, CURLOPT_FILE, $fh));
H A Ddisk_total_space_error-win32.phpt26 $fh = fopen( $file_path."/disk_total_space.tmp", "w" );
27 fwrite( $fh, " Garbage data for the temporary file" );
29 fclose($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.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_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 Dlstat_stat_variation7.phpt29 $fh = fopen($file_name,"w");
32 fwrite($fh, str_repeat((binary)"Hello World", $old_stat['blksize']));
H A Dfile_variation.phpt18 $fh = fopen($file_path."/file_variation.tmp", "w");
19 fwrite($fh, (binary)$data);
23 fclose($fh);
/PHP-7.0/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-7.0/ext/standard/
H A Dbrowscap.c395 zend_file_handle fh = {{0}}; in browscap_read_file() local
402 fh.handle.fp = VCWD_FOPEN(filename, "r"); in browscap_read_file()
403 fh.opened_path = NULL; in browscap_read_file()
404 fh.free_filename = 0; in browscap_read_file()
405 if (!fh.handle.fp) { in browscap_read_file()
410 fh.filename = filename; in browscap_read_file()
411 fh.type = ZEND_HANDLE_FP; in browscap_read_file()
433 zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_RAW, in browscap_read_file()
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_prompt.c571 zend_file_handle fh; in phpdbg_compile() local
588 switch (fh.handle.stream.mmap.buf++[0]) { in phpdbg_compile()
590 if (fh.handle.stream.mmap.buf[0] == '\n') { in phpdbg_compile()
591 fh.handle.stream.mmap.buf++; in phpdbg_compile()
595 start_line_len = fh.handle.stream.mmap.buf - buf; in phpdbg_compile()
598 fh.handle.stream.mmap.len -= start_line_len; in phpdbg_compile()
599 end = fh.handle.stream.mmap.buf; in phpdbg_compile()
601 } while (fh.handle.stream.mmap.buf + 1 < end); in phpdbg_compile()
629 fh.handle.stream.mmap.buf = buf; in phpdbg_compile()
630 fh.handle.stream.mmap.len = len; in phpdbg_compile()
[all …]
/PHP-7.0/ext/standard/tests/array/
H A Darray_column_basic.phpt45 $fh = fopen(__FILE__, 'r', true);
77 'value' => $fh

Completed in 67 milliseconds

12