Searched refs:fh (Results 1 - 16 of 16) sorted by relevance

/PHP_TRUNK/scripts/dev/generate-phpt/src/
H A DgtTestCaseWriter.php22 $fh = fopen($fileName, 'w'); variable
23 fwrite ($fh, $string);
24 fclose($fh);
/PHP_TRUNK/Zend/
H A Dzend_ini.h179 ZEND_API int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int scanner_mode, zend_ini_parser_cb_t ini_parser_cb, void *arg);
H A Dzend_ini_scanner.h33 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode);
H A Dzend_ini_scanner.c222 static int init_ini_scanner(int scanner_mode, zend_file_handle *fh) argument
232 SCNG(yy_in) = fh;
234 if (fh != NULL) {
235 ini_filename = zend_strndup(fh->filename, strlen(fh->filename));
276 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode) argument
281 if (zend_stream_fixup(fh, &buf, &size) == FAILURE) {
285 if (init_ini_scanner(scanner_mode, fh) == FAILURE) {
286 zend_file_handle_dtor(fh);
H A Dzend_ini_scanner.l220 static int init_ini_scanner(int scanner_mode, zend_file_handle *fh)
230 SCNG(yy_in) = fh;
232 if (fh != NULL) {
233 ini_filename = zend_strndup(fh->filename, strlen(fh->filename));
274 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode)
279 if (zend_stream_fixup(fh, &buf, &size) == FAILURE) {
283 if (init_ini_scanner(scanner_mode, fh) == FAILURE) {
284 zend_file_handle_dtor(fh);
H A Dzend_stream.c302 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh) /* {{{ */ argument
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
[all...]
H A Dzend_stream.h80 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh);
H A Dzend_ini_parser.y195 ZEND_API int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int scanner_mode, zend_ini_parser_cb_t ini_parser_cb, void *arg)
204 if (zend_ini_open_file_for_scanning(fh, scanner_mode) == FAILURE) {
210 zend_file_handle_dtor(fh);
H A Dzend_language_scanner.c504 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files)); local
506 fh->handle.stream.handle = (void*)(((char*)fh) + diff);
507 file_handle->handle.stream.handle = fh->handle.stream.handle;
H A Dzend_language_scanner.l502 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files));
504 fh->handle.stream.handle = (void*)(((char*)fh) + diff);
505 file_handle->handle.stream.handle = fh->handle.stream.handle;
H A Dzend_compile.c238 ZEND_API void file_handle_dtor(zend_file_handle *fh) /* {{{ */ argument
241 zend_file_handle_dtor(fh);
/PHP_TRUNK/TSRM/
H A Dtsrm_win32.c443 static HANDLE dupHandle(HANDLE fh, BOOL inherit) { argument
445 if (!DuplicateHandle(self, fh, self, &copy, 0, inherit, DUPLICATE_SAME_ACCESS|DUPLICATE_CLOSE_SOURCE)) {
/PHP_TRUNK/main/
H A Dphp_ini.c391 zend_file_handle fh; local
544 memset(&fh, 0, sizeof(fh));
557 fh.handle.fp = VCWD_FOPEN(php_ini_file_name, "r");
558 if (fh.handle.fp) {
559 fh.filename = expand_filepath(php_ini_file_name, NULL);
560 opened_path = zend_string_init(fh.filename, strlen(fh.filename), 0);
567 if (!fh.handle.fp) {
571 fh
755 zend_file_handle fh; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_prompt.c437 zend_file_handle fh; local
444 if (php_stream_open_for_zend_ex(PHPDBG_G(exec), &fh, USE_PATH|STREAM_OPEN_FOR_INCLUDE) == SUCCESS) {
445 PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE);
446 zend_destroy_file_handle(&fh);
/PHP_TRUNK/ext/standard/
H A Dbrowscap.c224 zend_file_handle fh = {{0}}; local
240 fh.handle.fp = VCWD_FOPEN(filename, "r");
241 fh.opened_path = NULL;
242 fh.free_filename = 0;
243 if (!fh.handle.fp) {
250 fh.filename = filename;
251 fh.type = ZEND_HANDLE_FP;
253 zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_RAW,
H A Dbasic_functions.c5864 zend_file_handle fh; local
5885 memset(&fh, 0, sizeof(fh));
5886 fh.filename = filename;
5887 fh.type = ZEND_HANDLE_FILENAME;
5890 if (zend_parse_ini_file(&fh, 0, (int)scanner_mode, ini_parser_cb, return_value) == FAILURE) {

Completed in 52 milliseconds