Searched refs:file_handle (Results 1 - 25 of 39) sorted by relevance

12

/PHP_5_5/Zend/
H A Dzend_dtrace.h33 ZEND_API zend_op_array *(*zend_dtrace_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
37 ZEND_API zend_op_array *dtrace_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC);
H A Dzend_dtrace.c36 ZEND_API zend_op_array *dtrace_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC) argument
39 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename);
40 res = compile_file(file_handle, type TSRMLS_CC);
41 DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, (char *)file_handle->filename);
H A Dzend_language_scanner.c267 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle TSRMLS_DC)
269 zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles); local
271 file_handle->opened_path = NULL;
272 if (file_handle->free_filename) {
273 file_handle->filename = NULL;
479 ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
486 if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
487 if ((offset = ftell(file_handle->handle.fp)) == -1) {
492 if (zend_stream_fixup(file_handle,
496 zend_llist_add_element(&CG(open_files), file_handle); local
555 compile_file(zend_file_handle *file_handle, int type TSRMLS_DC) argument
616 zend_file_handle file_handle; local
794 zend_file_handle file_handle; local
[all...]
H A Dzend_language_scanner.l265 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle TSRMLS_DC)
267 zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles);
269 file_handle->opened_path = NULL;
270 if (file_handle->free_filename) {
271 file_handle->filename = NULL;
477 ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
484 if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
485 if ((offset = ftell(file_handle->handle.fp)) == -1) {
490 if (zend_stream_fixup(file_handle,
[all...]
H A Dzend_stream.c103 static inline int zend_stream_is_mmap(zend_file_handle *file_handle) { /* {{{ */ argument
104 return file_handle->type == ZEND_HANDLE_MAPPED;
107 static size_t zend_stream_fsize(zend_file_handle *file_handle TSRMLS_DC) /* {{{ */
111 if (zend_stream_is_mmap(file_handle)) {
112 return file_handle->handle.stream.mmap.len;
114 if (file_handle->type == ZEND_HANDLE_STREAM || file_handle->type == ZEND_HANDLE_MAPPED) {
115 return file_handle->handle.stream.fsizer(file_handle->handle.stream.handle TSRMLS_CC);
117 if (file_handle
154 zend_stream_read(zend_file_handle *file_handle, char *buf, size_t len TSRMLS_DC) argument
181 zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len TSRMLS_DC) argument
[all...]
H A Dzend_stream.h76 ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len TSRMLS_DC);
/PHP_5_5/ext/standard/tests/file/
H A Dfile.inc30 $file_handle = fopen ($filename, $mode);
31 if ( $file_handle == false )
33 fclose($file_handle);
83 Function : bool fill_file(resource $file_handle, string $fill_type, string $file_size);
85 $file_handle = file handle, opened with write options,
95 function fill_file($file_handle, $fill_type, $file_size) {
132 $bytes_written = fwrite($file_handle, $num_values, $chunk_size);
140 $bytes_written = fwrite($file_handle, $num_values, $file_size);
286 $file_handle = fopen($filename, $mode);
287 if($file_handle
[all...]
/PHP_5_5/main/
H A Dfopen_wrappers.h28 PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC);
/PHP_5_5/sapi/aolserver/
H A Daolserver.c407 zend_file_handle file_handle; local
409 file_handle.type = ZEND_HANDLE_FILENAME;
410 file_handle.filename = SG(request_info).path_translated;
411 file_handle.free_filename = 0;
412 file_handle.opened_path = NULL;
419 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/apache/
H A Dsapi_apache.c31 zend_file_handle file_handle; local
47 file_handle.type = ZEND_HANDLE_FILENAME;
48 file_handle.handle.fd = 0;
49 file_handle.filename = SG(request_info).path_translated;
50 file_handle.opened_path = NULL;
51 file_handle.free_filename = 0;
53 (void) php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/apache_hooks/
H A Dsapi_apache.c30 zend_file_handle file_handle; local
48 file_handle.type = ZEND_HANDLE_FILENAME;
49 file_handle.handle.fd = 0;
50 file_handle.filename = SG(request_info).path_translated;
51 file_handle.opened_path = NULL;
52 file_handle.free_filename = 0;
53 (void) php_execute_script(&file_handle TSRMLS_CC);
65 zend_file_handle file_handle; local
87 memset(&file_handle, 0, sizeof(file_handle));
[all...]
/PHP_5_5/sapi/caudium/
H A Dcaudium.c567 zend_file_handle file_handle; local
642 file_handle.type = ZEND_HANDLE_FILENAME;
643 file_handle.filename = THIS->filename->str;
644 file_handle.opened_path = NULL;
645 file_handle.free_filename = 0;
657 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/cgi/
H A Dcgi_main.c1734 zend_file_handle file_handle; local
2311 file_handle.type = ZEND_HANDLE_FILENAME;
2312 file_handle.filename = SG(request_info).path_translated;
2313 file_handle.handle.fp = NULL;
2315 file_handle.filename = "-";
2316 file_handle.type = ZEND_HANDLE_FP;
2317 file_handle.handle.fp = stdin;
2320 file_handle.opened_path = NULL;
2321 file_handle.free_filename = 0;
2344 if (php_fopen_primary_script(&file_handle TSRMLS_C
[all...]
/PHP_5_5/sapi/cli/
H A Dphp_cli.c622 static int cli_seek_file_begin(zend_file_handle *file_handle, char *script_file, int *lineno TSRMLS_DC) argument
628 file_handle->type = ZEND_HANDLE_FP;
629 file_handle->opened_path = NULL;
630 file_handle->free_filename = 0;
631 if (!(file_handle->handle.fp = VCWD_FOPEN(script_file, "rb"))) {
635 file_handle->filename = script_file;
638 c = fgetc(file_handle->handle.fp);
639 if (c == '#' && (c = fgetc(file_handle->handle.fp)) == '!') {
641 c = fgetc(file_handle->handle.fp); /* skip to end of line */
645 if (fgetc(file_handle
662 zend_file_handle file_handle; local
[all...]
/PHP_5_5/sapi/continuity/
H A Dcapi.c441 zend_file_handle file_handle; local
446 file_handle.type = ZEND_HANDLE_FILENAME;
447 file_handle.filename = SG(request_info).path_translated;
448 file_handle.free_filename = 0;
449 file_handle.opened_path = NULL;
451 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/isapi/
H A Dphp5isapi.c835 zend_file_handle file_handle; local
852 file_handle.filename = SG(request_info).path_translated;
853 file_handle.free_filename = 0;
854 file_handle.type = ZEND_HANDLE_FILENAME;
855 file_handle.opened_path = NULL;
858 if (file_handle.filename)
859 retval = php_fopen_primary_script(&file_handle TSRMLS_CC);
861 if (!file_handle.filename || retval == FAILURE) {
865 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/phttpd/
H A Dphttpd.c244 zend_file_handle file_handle; local
251 file_handle.type = ZEND_HANDLE_FILENAME;
252 file_handle.filename = SG(request_info).path_translated;
253 file_handle.free_filename = 0;
258 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/pi3web/
H A Dpi3web_sapi.c347 zend_file_handle file_handle = {0}; local
352 file_handle.filename = lpCB->lpszFileName;
353 file_handle.free_filename = 0;
354 file_handle.type = ZEND_HANDLE_FILENAME;
355 file_handle.opened_path = NULL;
362 iRet = ( php_execute_script( &file_handle TSRMLS_CC ) ) ?
367 if ( open_file_for_scanning( &file_handle TSRMLS_CC ) == SUCCESS )
386 if ( open_file_for_scanning( &file_handle TSRMLS_CC ) == SUCCESS )
396 iRet = (php_lint_script(&file_handle TSRMLS_CC) == SUCCESS) ?
/PHP_5_5/sapi/roxen/
H A Droxen.c578 zend_file_handle file_handle; local
583 file_handle.type = ZEND_HANDLE_FILENAME;
584 file_handle.filename = THIS->filename;
585 file_handle.free_filename = 0;
586 file_handle.opened_path = NULL;
596 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/thttpd/
H A Dthttpd.c412 zend_file_handle file_handle; local
424 file_handle.type = ZEND_HANDLE_FILENAME;
425 file_handle.filename = SG(request_info).path_translated;
426 file_handle.free_filename = 0;
427 file_handle.opened_path = NULL;
429 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/tux/
H A Dphp_tux.c298 zend_file_handle file_handle; local
300 file_handle.type = ZEND_HANDLE_FILENAME;
301 file_handle.filename = SG(request_info).path_translated;
302 file_handle.free_filename = 0;
303 file_handle.opened_path = NULL;
309 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/sapi/webjames/
H A Dwebjames.c168 zend_file_handle file_handle; local
206 file_handle.type = ZEND_HANDLE_FILENAME;
207 file_handle.filename = SG(request_info).path_translated;
208 file_handle.free_filename = 0;
209 file_handle.opened_path = NULL;
215 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_5/ext/opcache/
H A DZendAccelerator.c103 static zend_op_array *(*accelerator_orig_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
678 static accel_time_t zend_get_file_handle_timestamp_win(zend_file_handle *file_handle, size_t *size) argument
684 if (!file_handle->opened_path) {
703 if (GetFileAttributesEx(file_handle->opened_path, GetFileExInfoStandard, &fdata) != 0) {
722 static accel_time_t zend_get_file_handle_timestamp(zend_file_handle *file_handle, size_t *size TSRMLS_DC) argument
731 file_handle->filename == SG(request_info).path_translated) {
744 res = zend_get_file_handle_timestamp_win(file_handle, size);
750 switch (file_handle->type) {
752 if (fstat(file_handle->handle.fd, &statbuf) == -1) {
757 if (fstat(fileno(file_handle
920 accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSRMLS_DC) argument
1046 accel_make_persistent_key(zend_file_handle *file_handle, int *key_len TSRMLS_DC) argument
1072 zend_file_handle file_handle; local
1279 compile_and_cache_file(zend_file_handle *file_handle, int type, char *key, unsigned int key_length, zend_op_array **op_array_p, int *from_shared_memory TSRMLS_DC) argument
1469 persistent_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC) argument
[all...]
/PHP_5_5/sapi/milter/
H A Dphp_milter.c113 zend_file_handle file_handle; local
136 if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) {
141 file_handle.type = ZEND_HANDLE_FP;
142 file_handle.filename = filename;
143 file_handle.free_filename = 0;
144 file_handle.opened_path = NULL;
146 php_execute_script(&file_handle TSRMLS_CC);
179 zend_file_handle file_handle; local
202 if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) {
207 file_handle
[all...]
/PHP_5_5/sapi/litespeed/
H A Dlsapi_main.c490 static int lsapi_chdir_primary_script( zend_file_handle * file_handle )
499 p = strrchr( file_handle->filename, '/' );
503 if ( strcmp( file_handle->filename, s_cur_chdir ) != 0 ) {
504 chdir( file_handle->filename );
510 ( strcmp( file_handle->filename, CWDG(cwd).cwd ) != 0 ) ) {
511 CWDG(cwd).cwd_length = p - file_handle->filename;
513 memmove( CWDG(cwd).cwd, file_handle->filename, CWDG(cwd).cwd_length+1 );
517 /* virtual_file_ex(&CWDG(cwd), file_handle->filename, NULL, CWD_REALPATH); */
519 VCWD_CHDIR_FILE( file_handle->filename );
524 static int lsapi_fopen_primary_script( zend_file_handle * file_handle )
571 zend_file_handle file_handle = {0}; local
827 zend_file_handle file_handle = {0}; local
[all...]

Completed in 56 milliseconds

12