/PHP-7.0/ext/gd/tests/ |
H A D | bug72339.phpt | 14 $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 D | bug76249.phpt | 7 $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 D | bug70700.phpt | 49 $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 D | gtTestCaseWriter.php | 22 $fh = fopen($fileName, 'w'); 23 fwrite ($fh, $string); 24 fclose($fh);
|
/PHP-7.0/main/ |
H A D | php_ini.c | 389 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 D | zend_stream.c | 304 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 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()
|
H A D | zend_ini_scanner.h | 33 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode);
|
H A D | zend_stream.h | 80 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh);
|
H A D | zend_ini_parser.y | 216 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 D | bug66431_0.phpt | 14 $fh = $fso->OpenTextFile($fpath, 2, true); 15 $fh->Write($text); 16 $fh->Close();
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | disk_total_space_basic.phpt | 22 $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 D | disk_total_space_error.phpt | 26 $fh = fopen( $file_path."/disk_total_space.tmp", "w" ); 27 fwrite( $fh, (binary)" Garbage data for the temporary file" ); 29 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_error-win32.phpt | 26 $fh = fopen( $file_path."/disk_total_space.tmp", "w" ); 27 fwrite( $fh, " Garbage data for the temporary file" ); 29 fclose($fh);
|
H A D | disk_free_space_basic.phpt | 31 $fh = fopen($file_path.$dir."/disk_free_space.tmp", "a"); 33 fwrite($fh, (binary)$data); 34 fclose($fh);
|
H A D | disk_free_space_error.phpt | 29 $fh = fopen( $file_path."/disk_free_space.tmp", "w" ); 30 fwrite( $fh, (binary)" Garbage data for the temporary file" ); 33 fclose($fh);
|
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 | lstat_stat_variation7.phpt | 29 $fh = fopen($file_name,"w"); 32 fwrite($fh, str_repeat((binary)"Hello World", $old_stat['blksize']));
|
H A D | file_variation.phpt | 18 $fh = fopen($file_path."/file_variation.tmp", "w"); 19 fwrite($fh, (binary)$data); 23 fclose($fh);
|
/PHP-7.0/ext/gettext/tests/ |
H A D | gettext_bind_textdomain_codeset-retval.phpt | 21 Florian Holzhauer fh-pt@fholzhauer.de
|
H A D | gettext_bind_textdomain_codeset-wrongparams.phpt | 22 Florian Holzhauer fh-pt@fholzhauer.de
|
/PHP-7.0/ext/standard/ |
H A D | browscap.c | 395 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 D | phpdbg_prompt.c | 571 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 D | array_column_basic.phpt | 45 $fh = fopen(__FILE__, 'r', true); 77 'value' => $fh
|