Searched refs:fh (Results 1 - 19 of 19) 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/sapi/isapi/stresstest/
H A Dstresstest.cpp392 HANDLE fh = FindFirstFile(FindPath, &fd); local
393 if (fh != INVALID_HANDLE_VALUE) {
408 } while (FindNextFile(fh, &fd) != 0);
409 FindClose(fh);
421 HANDLE fh = FindFirstFile(FindPath, &fd); local
422 if (fh != INVALID_HANDLE_VALUE) {
428 } while (FindNextFile(fh, &fd) != 0);
429 FindClose(fh);
/PHP_TRUNK/TSRM/
H A Dtsrm_win32.c442 static HANDLE dupHandle(HANDLE fh, BOOL inherit) { argument
444 if (!DuplicateHandle(self, fh, self, &copy, 0, inherit, DUPLICATE_SAME_ACCESS|DUPLICATE_CLOSE_SOURCE)) {
/PHP_TRUNK/Zend/
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_compile.c218 ZEND_API void file_handle_dtor(zend_file_handle *fh) /* {{{ */ argument
222 zend_file_handle_dtor(fh TSRMLS_CC);
H A Dzend_ini.h167 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 TSRMLS_DC);
H A Dzend_ini_parser.y194 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 TSRMLS_DC)
203 if (zend_ini_open_file_for_scanning(fh, scanner_mode TSRMLS_CC) == FAILURE) {
209 zend_file_handle_dtor(fh TSRMLS_CC);
H A Dzend_ini_scanner.c171 static int init_ini_scanner(int scanner_mode, zend_file_handle *fh TSRMLS_DC)
181 SCNG(yy_in) = fh;
183 if (fh != NULL) {
184 ini_filename = zend_strndup(fh->filename, strlen(fh->filename));
225 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode TSRMLS_DC) argument
230 if (zend_stream_fixup(fh, &buf, &size TSRMLS_CC) == FAILURE) {
234 if (init_ini_scanner(scanner_mode, fh TSRMLS_CC) == FAILURE) {
235 zend_file_handle_dtor(fh TSRMLS_CC);
H A Dzend_ini_scanner.l169 static int init_ini_scanner(int scanner_mode, zend_file_handle *fh TSRMLS_DC)
179 SCNG(yy_in) = fh;
181 if (fh != NULL) {
182 ini_filename = zend_strndup(fh->filename, strlen(fh->filename));
223 int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode TSRMLS_DC)
228 if (zend_stream_fixup(fh, &buf, &size TSRMLS_CC) == FAILURE) {
232 if (init_ini_scanner(scanner_mode, fh TSRMLS_CC) == FAILURE) {
233 zend_file_handle_dtor(fh TSRMLS_CC);
H A Dzend_language_scanner.c497 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files)); local
499 fh->handle.stream.handle = (void*)(((char*)fh) + diff);
500 file_handle->handle.stream.handle = fh->handle.stream.handle;
H A Dzend_language_scanner.l495 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files));
497 fh->handle.stream.handle = (void*)(((char*)fh) + diff);
498 file_handle->handle.stream.handle = fh->handle.stream.handle;
H A Dzend_stream.c302 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh TSRMLS_DC) /* {{{ */
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 TSRMLS_CC);
316 fh->handle.stream.handle = NULL;
324 if (fh->opened_path) {
325 efree(fh
[all...]
H A Dzend_stream.h80 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh TSRMLS_DC);
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php5.c652 zend_file_handle fh; local
654 fh.filename = r->filename;
655 fh.opened_path = NULL;
656 fh.free_filename = 0;
657 fh.type = ZEND_HANDLE_FILENAME;
659 zend_execute_scripts(ZEND_INCLUDE TSRMLS_CC, NULL, 1, &fh);
/PHP_TRUNK/sapi/apache/
H A Dmod_php5.c605 zend_file_handle fh; local
607 fh.filename = r->filename;
608 fh.opened_path = NULL;
609 fh.free_filename = 0;
610 fh.type = ZEND_HANDLE_FILENAME;
612 zend_execute_scripts(ZEND_INCLUDE TSRMLS_CC, NULL, 1, &fh);
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c5843 zend_file_handle fh; local
5864 memset(&fh, 0, sizeof(fh));
5865 fh.filename = filename;
5866 fh.type = ZEND_HANDLE_FILENAME;
5869 if (zend_parse_ini_file(&fh, 0, scanner_mode, ini_parser_cb, return_value TSRMLS_CC) == FAILURE) {
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,
/PHP_TRUNK/main/
H A Dphp_ini.c387 zend_file_handle fh; local
539 memset(&fh, 0, sizeof(fh));
552 fh.handle.fp = VCWD_FOPEN(php_ini_file_name, "r");
553 if (fh.handle.fp) {
554 fh.filename = php_ini_opened_path = expand_filepath(php_ini_file_name, NULL TSRMLS_CC);
561 if (!fh.handle.fp) {
565 fh.handle.fp = php_fopen_with_path(ini_fname, "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
567 if (fh.handle.fp) {
568 fh
749 zend_file_handle fh; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_prompt.c381 zend_file_handle fh; local
395 if (php_stream_open_for_zend_ex(PHPDBG_G(exec), &fh,
398 PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE TSRMLS_CC);
399 zend_destroy_file_handle(&fh TSRMLS_CC);

Completed in 58 milliseconds