Searched defs:file_handle (Results 1 - 25 of 28) sorted by relevance

12

/PHP_5_3/ext/spl/
H A Dphp_spl.c227 zend_file_handle file_handle; local
245 ret = php_stream_open_for_zend_ex(class_file, &file_handle, ENFORCE_SAFE_MODE|USE_PATH|STREAM_OPEN_FOR_INCLUDE TSRMLS_CC);
248 if (!file_handle.opened_path) {
249 file_handle.opened_path = estrndup(class_file, class_file_len);
251 if (zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), NULL)==SUCCESS) {
252 new_op_array = zend_compile_file(&file_handle, ZEND_REQUIRE TSRMLS_CC);
253 zend_destroy_file_handle(&file_handle TSRMLS_CC);
256 zend_file_handle_dtor(&file_handle TSRMLS_CC);
/PHP_5_3/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_3/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_3/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
91 memset(&file_handle, 0, sizeof(file_handle));
[all...]
/PHP_5_3/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_3/sapi/continuity/
H A Dcapi.c442 zend_file_handle file_handle; local
447 file_handle.type = ZEND_HANDLE_FILENAME;
448 file_handle.filename = SG(request_info).path_translated;
449 file_handle.free_filename = 0;
450 file_handle.opened_path = NULL;
452 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_3/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_3/sapi/nsapi/
H A Dnsapi.c968 zend_file_handle file_handle = {0}; local
1040 file_handle.type = ZEND_HANDLE_FILENAME;
1041 file_handle.filename = SG(request_info).path_translated;
1042 file_handle.free_filename = 0;
1043 file_handle.opened_path = NULL;
1048 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_3/sapi/phttpd/
H A Dphttpd.c249 zend_file_handle file_handle; local
257 file_handle.type = ZEND_HANDLE_FILENAME;
258 file_handle.filename = SG(request_info).path_translated;
259 file_handle.free_filename = 0;
264 php_execute_script(&file_handle TSRMLS_CC);
/PHP_5_3/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_3/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_3/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_3/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_3/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_3/Zend/
H A Dzend_language_scanner.c240 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle TSRMLS_DC)
242 zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles); local
244 file_handle->opened_path = NULL;
245 if (file_handle->free_filename) {
246 file_handle->filename = NULL;
251 ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
257 if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
258 if ((offset = ftell(file_handle->handle.fp)) == -1) {
263 if (zend_stream_fixup(file_handle,
267 zend_llist_add_element(&CG(open_files), file_handle); local
333 compile_file(zend_file_handle *file_handle, int type TSRMLS_DC) argument
392 zend_file_handle file_handle; local
563 zend_file_handle file_handle; local
672 zend_multibyte_yyinput(zend_file_handle *file_handle, char *buf, size_t len TSRMLS_DC) argument
[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_vm_def.h3252 zend_file_handle file_handle; variable
3264 } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) {
3266 if (!file_handle.opened_path) {
3267 file_handle.opened_path = estrdup(resolved_path);
3270 if (zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1)==SUCCESS) {
3271 new_op_array = zend_compile_file(&file_handle, (Z_LVAL(opline->op2.u.constant)==ZEND_INCLUDE_ONCE?ZEND_INCLUDE:ZEND_REQUIRE) TSRMLS_CC);
3272 zend_destroy_file_handle(&file_handle TSRMLS_CC);
3274 zend_file_handle_dtor(&file_handle TSRMLS_CC);
H A Dzend.c1241 zend_file_handle *file_handle; local
1247 file_handle = va_arg(files, zend_file_handle *);
1248 if (!file_handle) {
1251 EG(active_op_array) = zend_compile_file(file_handle, type TSRMLS_CC);
1252 if (file_handle->opened_path) {
1254 zend_hash_add(&EG(included_files), file_handle->opened_path, strlen(file_handle->opened_path) + 1, (void *)&dummy, sizeof(int), NULL);
1256 zend_destroy_file_handle(file_handle TSRMLS_CC);
/PHP_5_3/ext/phar/
H A Dphar.c3322 zend_op_array *(*phar_orig_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
3333 static zend_op_array *phar_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC) /* {{{ */ argument
3340 if (!file_handle || !file_handle->filename) {
3341 return phar_orig_compile_file(file_handle, type TSRMLS_CC);
3343 if (strstr(file_handle->filename, ".phar") && !strstr(file_handle->filename, "://")) {
3344 if (SUCCESS == phar_open_from_filename(file_handle->filename, strlen(file_handle->filename), NULL, 0, 0, &phar, NULL TSRMLS_CC)) {
3346 zend_file_handle f = *file_handle;
[all...]
H A Dphar_object.c172 zend_file_handle file_handle; local
251 file_handle.type = ZEND_HANDLE_FILENAME;
252 file_handle.handle.fd = 0;
253 file_handle.filename = name;
254 file_handle.opened_path = NULL;
255 file_handle.free_filename = 0;
276 new_op_array = zend_compile_file(&file_handle, ZEND_REQUIRE TSRMLS_CC);
282 zend_destroy_file_handle(&file_handle TSRMLS_CC);
/PHP_5_3/ext/standard/
H A Dfile.c1219 zval *file_handle; local
1224 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs*", &file_handle, &format, &format_len, &args, &argc) == FAILURE) {
1228 what = zend_fetch_resource(&file_handle TSRMLS_CC, -1, "File-Handle", &type, 2, php_file_le_stream(), php_file_le_pstream());
H A Dbasic_functions.c5236 zend_file_handle file_handle = {0}; local
5246 file_handle.type = ZEND_HANDLE_FILENAME;
5247 file_handle.filename = filename;
5248 file_handle.free_filename = 0;
5249 file_handle.opened_path = NULL;
5251 if (open_file_for_scanning(&file_handle TSRMLS_CC)==FAILURE) {
5260 zend_destroy_file_handle(&file_handle TSRMLS_CC);
/PHP_5_3/sapi/cli/
H A Dphp_cli.c597 static int cli_seek_file_begin(zend_file_handle *file_handle, char *script_file, int *lineno TSRMLS_DC) argument
603 file_handle->type = ZEND_HANDLE_FP;
604 file_handle->opened_path = NULL;
605 file_handle->free_filename = 0;
606 if (!(file_handle->handle.fp = VCWD_FOPEN(script_file, "rb"))) {
610 file_handle->filename = script_file;
613 c = fgetc(file_handle->handle.fp);
614 if (c == '#' && (c = fgetc(file_handle->handle.fp)) == '!') {
616 c = fgetc(file_handle->handle.fp); /* skip to end of line */
620 if (fgetc(file_handle
644 zend_file_handle file_handle; local
[all...]
/PHP_5_3/sapi/litespeed/
H A Dlsapi_main.c427 static int lsapi_chdir_primary_script( zend_file_handle * file_handle )
436 p = strrchr( file_handle->filename, '/' );
440 if ( strcmp( file_handle->filename, s_cur_chdir ) != 0 ) {
441 chdir( file_handle->filename );
447 ( strcmp( file_handle->filename, CWDG(cwd).cwd ) != 0 ) ) {
448 CWDG(cwd).cwd_length = p - file_handle->filename;
450 memmove( CWDG(cwd).cwd, file_handle->filename, CWDG(cwd).cwd_length+1 );
454 /* virtual_file_ex(&CWDG(cwd), file_handle->filename, NULL, CWD_REALPATH); */
456 VCWD_CHDIR_FILE( file_handle->filename );
461 static int lsapi_fopen_primary_script( zend_file_handle * file_handle )
508 zend_file_handle file_handle = {0}; local
752 zend_file_handle file_handle = {0}; local
[all...]
/PHP_5_3/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...]

Completed in 57 milliseconds

12