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

12

/PHP_TRUNK/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_TRUNK/Zend/
H A Dzend_dtrace.c41 ZEND_API zend_op_array *dtrace_compile_file(zend_file_handle *file_handle, int type) argument
44 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename);
45 res = compile_file(file_handle, type);
46 DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, (char *)file_handle->filename);
H A Dzend_dtrace.h33 ZEND_API zend_op_array *(*zend_dtrace_compile_file)(zend_file_handle *file_handle, int type);
37 ZEND_API zend_op_array *dtrace_compile_file(zend_file_handle *file_handle, int type);
H A Dzend_stream.c102 static inline int zend_stream_is_mmap(zend_file_handle *file_handle) { /* {{{ */ argument
103 return file_handle->type == ZEND_HANDLE_MAPPED;
106 static size_t zend_stream_fsize(zend_file_handle *file_handle) /* {{{ */ argument
110 if (zend_stream_is_mmap(file_handle)) {
111 return file_handle->handle.stream.mmap.len;
113 if (file_handle->type == ZEND_HANDLE_STREAM || file_handle->type == ZEND_HANDLE_MAPPED) {
114 return file_handle->handle.stream.fsizer(file_handle->handle.stream.handle);
116 if (file_handle
143 zend_stream_getc(zend_file_handle *file_handle) argument
153 zend_stream_read(zend_file_handle *file_handle, char *buf, size_t len) argument
180 zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len) argument
[all...]
H A Dzend_stream.h79 ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len);
H A Dzend_language_scanner.c265 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle) argument
267 zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles); local
269 file_handle->opened_path = NULL;
270 if (file_handle->free_filename) {
271 file_handle->filename = NULL;
479 ZEND_API int open_file_for_scanning(zend_file_handle *file_handle) argument
487 if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
488 if ((offset = ftell(file_handle->handle.fp)) == -1) {
493 if (zend_stream_fixup(file_handle,
497 zend_llist_add_element(&CG(open_files), file_handle); local
558 compile_file(zend_file_handle *file_handle, int type) argument
616 zend_file_handle file_handle; local
776 zend_file_handle file_handle; local
[all...]
H A Dzend_language_scanner.l263 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle)
265 zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles);
267 file_handle->opened_path = NULL;
268 if (file_handle->free_filename) {
269 file_handle->filename = NULL;
477 ZEND_API int open_file_for_scanning(zend_file_handle *file_handle)
485 if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
486 if ((offset = ftell(file_handle->handle.fp)) == -1) {
491 if (zend_stream_fixup(file_handle,
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c106 static zend_op_array *(*accelerator_orig_compile_file)(zend_file_handle *file_handle, int type);
681 static accel_time_t zend_get_file_handle_timestamp_win(zend_file_handle *file_handle, size_t *size) argument
687 if (!file_handle->opened_path) {
706 if (GetFileAttributesEx(file_handle->opened_path, GetFileExInfoStandard, &fdata) != 0) {
725 static accel_time_t zend_get_file_handle_timestamp(zend_file_handle *file_handle, size_t *size) argument
734 file_handle->filename == SG(request_info).path_translated) {
747 res = zend_get_file_handle_timestamp_win(file_handle, size);
753 switch (file_handle->type) {
755 if (zend_fstat(file_handle->handle.fd, &statbuf) == -1) {
760 if (zend_fstat(fileno(file_handle
825 do_validate_timestamps(zend_persistent_script *persistent_script, zend_file_handle *file_handle) argument
878 validate_timestamp_and_record(zend_persistent_script *persistent_script, zend_file_handle *file_handle) argument
917 accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len) argument
1043 accel_make_persistent_key(zend_file_handle *file_handle, int *key_len) argument
1065 zend_file_handle file_handle; local
1278 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) argument
1442 persistent_compile_file(zend_file_handle *file_handle, int type) argument
[all...]
H A DZendAccelerator.h302 int validate_timestamp_and_record(zend_persistent_script *persistent_script, zend_file_handle *file_handle);
308 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len);
309 zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type);
/PHP_TRUNK/main/
H A Dfopen_wrappers.h28 PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle);
/PHP_TRUNK/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);
/PHP_TRUNK/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);
/PHP_TRUNK/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);
65 zend_file_handle file_handle; local
87 memset(&file_handle, 0, sizeof(file_handle));
[all...]
/PHP_TRUNK/sapi/caudium/
H A Dcaudium.c566 zend_file_handle file_handle; local
640 file_handle.type = ZEND_HANDLE_FILENAME;
641 file_handle.filename = THIS->filename->str;
642 file_handle.opened_path = NULL;
643 file_handle.free_filename = 0;
655 php_execute_script(&file_handle);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c610 static int cli_seek_file_begin(zend_file_handle *file_handle, char *script_file, int *lineno) argument
616 file_handle->type = ZEND_HANDLE_FP;
617 file_handle->opened_path = NULL;
618 file_handle->free_filename = 0;
619 if (!(file_handle->handle.fp = VCWD_FOPEN(script_file, "rb"))) {
623 file_handle->filename = script_file;
626 c = fgetc(file_handle->handle.fp);
627 if (c == '#' && (c = fgetc(file_handle->handle.fp)) == '!') {
629 c = fgetc(file_handle->handle.fp); /* skip to end of line */
633 if (fgetc(file_handle
650 zend_file_handle file_handle; local
[all...]
/PHP_TRUNK/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);
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c513 static int lsapi_chdir_primary_script( zend_file_handle * file_handle )
522 p = strrchr( file_handle->filename, '/' );
526 if ( strcmp( file_handle->filename, s_cur_chdir ) != 0 ) {
527 chdir( file_handle->filename );
533 ( strcmp( file_handle->filename, CWDG(cwd).cwd ) != 0 ) ) {
534 CWDG(cwd).cwd_length = p - file_handle->filename;
536 memmove( CWDG(cwd).cwd, file_handle->filename, CWDG(cwd).cwd_length+1 );
540 /* virtual_file_ex(&CWDG(cwd), file_handle->filename, NULL, CWD_REALPATH); */
542 VCWD_CHDIR_FILE( file_handle->filename );
547 static int lsapi_fopen_primary_script( zend_file_handle * file_handle )
567 lsapi_execute_script( zend_file_handle * file_handle) argument
594 zend_file_handle file_handle = {0}; local
875 zend_file_handle file_handle = {0}; local
[all...]
/PHP_TRUNK/sapi/milter/
H A Dphp_milter.c113 zend_file_handle file_handle; local
135 if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) {
140 file_handle.type = ZEND_HANDLE_FP;
141 file_handle.filename = filename;
142 file_handle.free_filename = 0;
143 file_handle.opened_path = NULL;
145 php_execute_script(&file_handle);
178 zend_file_handle file_handle; local
200 if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) {
205 file_handle
[all...]
/PHP_TRUNK/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);
/PHP_TRUNK/sapi/pi3web/
H A Dpi3web_sapi.c347 zend_file_handle file_handle = {0}; local
351 file_handle.filename = lpCB->lpszFileName;
352 file_handle.free_filename = 0;
353 file_handle.type = ZEND_HANDLE_FILENAME;
354 file_handle.opened_path = NULL;
361 iRet = ( php_execute_script( &file_handle ) ) ?
366 if ( open_file_for_scanning( &file_handle ) == SUCCESS )
385 if ( open_file_for_scanning( &file_handle ) == SUCCESS )
395 iRet = (php_lint_script(&file_handle) == SUCCESS) ?
/PHP_TRUNK/sapi/roxen/
H A Droxen.c577 zend_file_handle file_handle; local
582 file_handle.type = ZEND_HANDLE_FILENAME;
583 file_handle.filename = THIS->filename;
584 file_handle.free_filename = 0;
585 file_handle.opened_path = NULL;
595 php_execute_script(&file_handle);
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c413 zend_file_handle file_handle; local
425 file_handle.type = ZEND_HANDLE_FILENAME;
426 file_handle.filename = SG(request_info).path_translated;
427 file_handle.free_filename = 0;
428 file_handle.opened_path = NULL;
430 php_execute_script(&file_handle);
/PHP_TRUNK/sapi/tux/
H A Dphp_tux.c294 zend_file_handle file_handle; local
296 file_handle.type = ZEND_HANDLE_FILENAME;
297 file_handle.filename = SG(request_info).path_translated;
298 file_handle.free_filename = 0;
299 file_handle.opened_path = NULL;
305 php_execute_script(&file_handle);
/PHP_TRUNK/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);
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c1708 zend_file_handle file_handle; local
2293 file_handle.type = ZEND_HANDLE_FILENAME;
2294 file_handle.filename = SG(request_info).path_translated;
2295 file_handle.handle.fp = NULL;
2297 file_handle.filename = "-";
2298 file_handle.type = ZEND_HANDLE_FP;
2299 file_handle.handle.fp = stdin;
2302 file_handle.opened_path = NULL;
2303 file_handle.free_filename = 0;
2326 if (php_fopen_primary_script(&file_handle)
[all...]

Completed in 28 milliseconds

12