self 445 TSRM/tsrm_win32.c HANDLE copy, self = GetCurrentProcess(); self 446 TSRM/tsrm_win32.c if (!DuplicateHandle(self, fh, self, ©, 0, inherit, DUPLICATE_SAME_ACCESS|DUPLICATE_CLOSE_SOURCE)) { self 140 ext/bz2/bz2.c struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; self 148 ext/bz2/bz2.c just_read = BZ2_bzread(self->bz_file, buf, to_read); self 164 ext/bz2/bz2.c struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; self 172 ext/bz2/bz2.c just_wrote = BZ2_bzwrite(self->bz_file, (char*)buf, to_write); self 187 ext/bz2/bz2.c struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; self 191 ext/bz2/bz2.c BZ2_bzclose(self->bz_file); self 194 ext/bz2/bz2.c if (self->stream) { self 195 ext/bz2/bz2.c php_stream_free(self->stream, PHP_STREAM_FREE_CLOSE | (close_handle == 0 ? PHP_STREAM_FREE_PRESERVE_HANDLE : 0)); self 198 ext/bz2/bz2.c efree(self); self 205 ext/bz2/bz2.c struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract; self 206 ext/bz2/bz2.c return BZ2_bzflush(self->bz_file); self 224 ext/bz2/bz2.c struct php_bz2_stream_data_t *self; self 226 ext/bz2/bz2.c self = emalloc(sizeof(*self)); self 228 ext/bz2/bz2.c self->stream = innerstream; self 232 ext/bz2/bz2.c self->bz_file = bz; self 234 ext/bz2/bz2.c return php_stream_alloc_rel(&php_stream_bz2io_ops, self, 0, mode); self 620 ext/bz2/bz2.c struct php_bz2_stream_data_t *self; self 632 ext/bz2/bz2.c self = (struct php_bz2_stream_data_t *) stream->abstract; self 635 ext/bz2/bz2.c errstr = BZ2_bzerror(self->bz_file, &errnum); self 2555 ext/iconv/iconv.c static void php_iconv_stream_filter_dtor(php_iconv_stream_filter *self) self 2557 ext/iconv/iconv.c iconv_close(self->cd); self 2558 ext/iconv/iconv.c pefree(self->to_charset, self->persistent); self 2559 ext/iconv/iconv.c pefree(self->from_charset, self->persistent); self 2564 ext/iconv/iconv.c static php_iconv_err_t php_iconv_stream_filter_ctor(php_iconv_stream_filter *self, self 2568 ext/iconv/iconv.c if (NULL == (self->to_charset = pemalloc(to_charset_len + 1, persistent))) { self 2571 ext/iconv/iconv.c self->to_charset_len = to_charset_len; self 2572 ext/iconv/iconv.c if (NULL == (self->from_charset = pemalloc(from_charset_len + 1, persistent))) { self 2573 ext/iconv/iconv.c pefree(self->to_charset, persistent); self 2576 ext/iconv/iconv.c self->from_charset_len = from_charset_len; self 2578 ext/iconv/iconv.c memcpy(self->to_charset, to_charset, to_charset_len); self 2579 ext/iconv/iconv.c self->to_charset[to_charset_len] = '\0'; self 2580 ext/iconv/iconv.c memcpy(self->from_charset, from_charset, from_charset_len); self 2581 ext/iconv/iconv.c self->from_charset[from_charset_len] = '\0'; self 2583 ext/iconv/iconv.c if ((iconv_t)-1 == (self->cd = iconv_open(self->to_charset, self->from_charset))) { self 2584 ext/iconv/iconv.c pefree(self->from_charset, persistent); self 2585 ext/iconv/iconv.c pefree(self->to_charset, persistent); self 2588 ext/iconv/iconv.c self->persistent = persistent; self 2589 ext/iconv/iconv.c self->stub_len = 0; self 2596 ext/iconv/iconv.c php_iconv_stream_filter *self, self 2624 ext/iconv/iconv.c if (self->stub_len > 0) { self 2625 ext/iconv/iconv.c pt = self->stub; self 2626 ext/iconv/iconv.c tcnt = self->stub_len; self 2629 ext/iconv/iconv.c if (iconv(self->cd, &pt, &tcnt, &pd, &ocnt) == (size_t)-1) { self 2633 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): invalid multibyte sequence", self->from_charset, self->to_charset); self 2639 ext/iconv/iconv.c if (self->stub_len >= sizeof(self->stub)) { self 2640 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): insufficient buffer", self->from_charset, self->to_charset); self 2643 ext/iconv/iconv.c self->stub[self->stub_len++] = *(ps++); self 2645 ext/iconv/iconv.c pt = self->stub; self 2646 ext/iconv/iconv.c tcnt = self->stub_len; self 2690 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): unknown error", self->from_charset, self->to_charset); self 2695 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): unknown error", self->from_charset, self->to_charset); self 2702 ext/iconv/iconv.c memmove(self->stub, pt, tcnt); self 2703 ext/iconv/iconv.c self->stub_len = tcnt; self 2707 ext/iconv/iconv.c if ((ps == NULL ? iconv(self->cd, NULL, NULL, &pd, &ocnt): self 2708 ext/iconv/iconv.c iconv(self->cd, (char **)&ps, &icnt, &pd, &ocnt)) == (size_t)-1) { self 2712 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): invalid multibyte sequence", self->from_charset, self->to_charset); self 2717 ext/iconv/iconv.c if (icnt > sizeof(self->stub)) { self 2718 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): insufficient buffer", self->from_charset, self->to_charset); self 2721 ext/iconv/iconv.c memcpy(self->stub, ps, icnt); self 2722 ext/iconv/iconv.c self->stub_len = icnt; self 2726 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): unexpected octet values", self->from_charset, self->to_charset); self 2767 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): unknown error", self->from_charset, self->to_charset); self 2772 ext/iconv/iconv.c php_error_docref(NULL, E_WARNING, "iconv stream filter (\"%s\"=>\"%s\"): unknown error", self->from_charset, self->to_charset); self 2811 ext/iconv/iconv.c php_iconv_stream_filter *self = (php_iconv_stream_filter *)Z_PTR(filter->abstract); self 2818 ext/iconv/iconv.c if (php_iconv_stream_filter_append_bucket(self, stream, filter, self 2828 ext/iconv/iconv.c if (php_iconv_stream_filter_append_bucket(self, stream, filter, self 358 ext/mysqlnd/mysqlnd_auth.c mysqlnd_native_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self, self 418 ext/mysqlnd/mysqlnd_auth.c mysqlnd_pam_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self, self 568 ext/mysqlnd/mysqlnd_auth.c mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self, self 34 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, open)(MYSQLND_DEBUG * self, zend_bool reopen) self 36 ext/mysqlnd/mysqlnd_debug.c if (!self->file_name) { self 40 ext/mysqlnd/mysqlnd_debug.c self->stream = php_stream_open_wrapper(self->file_name, self 41 ext/mysqlnd/mysqlnd_debug.c reopen == TRUE || self->flags & MYSQLND_DEBUG_APPEND? "ab":"wb", self 43 ext/mysqlnd/mysqlnd_debug.c return self->stream? PASS:FAIL; self 50 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, log)(MYSQLND_DEBUG * self, self 59 ext/mysqlnd/mysqlnd_debug.c unsigned int flags = self->flags; self 63 ext/mysqlnd/mysqlnd_debug.c if (!self->stream && FAIL == self->m->open(self, FALSE)) { self 68 ext/mysqlnd/mysqlnd_debug.c level = zend_stack_count(&self->call_stack); self 79 ext/mysqlnd/mysqlnd_debug.c snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); self 132 ext/mysqlnd/mysqlnd_debug.c ret = php_stream_write(self->stream, message_line, message_line_len)? PASS:FAIL; self 135 ext/mysqlnd/mysqlnd_debug.c self->m->close(self); self 136 ext/mysqlnd/mysqlnd_debug.c self->m->open(self, TRUE); self 145 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, log_va)(MYSQLND_DEBUG *self, self 156 ext/mysqlnd/mysqlnd_debug.c unsigned int flags = self->flags; self 160 ext/mysqlnd/mysqlnd_debug.c if (!self->stream && FAIL == self->m->open(self, FALSE)) { self 165 ext/mysqlnd/mysqlnd_debug.c level = zend_stack_count(&self->call_stack); self 176 ext/mysqlnd/mysqlnd_debug.c snprintf(pid_buffer, sizeof(pid_buffer) - 1, "%5u: ", self->pid); self 233 ext/mysqlnd/mysqlnd_debug.c ret = php_stream_write(self->stream, message_line, message_line_len)? PASS:FAIL; self 237 ext/mysqlnd/mysqlnd_debug.c self->m->close(self); self 238 ext/mysqlnd/mysqlnd_debug.c self->m->open(self, TRUE); self 248 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, func_enter)(MYSQLND_DEBUG * self, self 252 ext/mysqlnd/mysqlnd_debug.c if ((self->flags & MYSQLND_DEBUG_DUMP_TRACE) == 0 || self->file_name == NULL) { self 255 ext/mysqlnd/mysqlnd_debug.c if ((uint) zend_stack_count(&self->call_stack) >= self->nest_level_limit) { self 259 ext/mysqlnd/mysqlnd_debug.c if ((self->flags & MYSQLND_DEBUG_TRACE_MEMORY_CALLS) == 0 && self->skip_functions) { self 260 ext/mysqlnd/mysqlnd_debug.c const char ** p = self->skip_functions; self 263 ext/mysqlnd/mysqlnd_debug.c zend_stack_push(&self->call_stack, &mysqlnd_debug_empty_string); self 265 ext/mysqlnd/mysqlnd_debug.c if (self->flags & MYSQLND_DEBUG_PROFILE_CALLS) { self 267 ext/mysqlnd/mysqlnd_debug.c zend_stack_push(&self->call_time_stack, &some_time); self 276 ext/mysqlnd/mysqlnd_debug.c zend_stack_push(&self->call_stack, &func_name); self 278 ext/mysqlnd/mysqlnd_debug.c if (self->flags & MYSQLND_DEBUG_PROFILE_CALLS) { self 280 ext/mysqlnd/mysqlnd_debug.c zend_stack_push(&self->call_time_stack, &some_time); self 284 ext/mysqlnd/mysqlnd_debug.c if (zend_hash_num_elements(&self->not_filtered_functions) && self 285 ext/mysqlnd/mysqlnd_debug.c 0 == zend_hash_str_exists(&self->not_filtered_functions, func_name, strlen(func_name))) self 290 ext/mysqlnd/mysqlnd_debug.c self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, ">%s", func_name); self 316 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, func_leave)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, uint64_t call_time) self 321 ext/mysqlnd/mysqlnd_debug.c zend_bool profile_calls = self->flags & MYSQLND_DEBUG_PROFILE_CALLS? TRUE:FALSE; self 323 ext/mysqlnd/mysqlnd_debug.c if ((self->flags & MYSQLND_DEBUG_DUMP_TRACE) == 0 || self->file_name == NULL) { self 326 ext/mysqlnd/mysqlnd_debug.c if ((uint) zend_stack_count(&self->call_stack) >= self->nest_level_limit) { self 330 ext/mysqlnd/mysqlnd_debug.c func_name = zend_stack_top(&self->call_stack); self 334 ext/mysqlnd/mysqlnd_debug.c mine_non_own_time_ptr = zend_stack_top(&self->call_time_stack); self 336 ext/mysqlnd/mysqlnd_debug.c zend_stack_del_top(&self->call_time_stack); /* callee - removing ourselves */ self 342 ext/mysqlnd/mysqlnd_debug.c } else if (!zend_hash_num_elements(&self->not_filtered_functions) || self 343 ext/mysqlnd/mysqlnd_debug.c 1 == zend_hash_str_exists(&self->not_filtered_functions, (*func_name), strlen((*func_name)))) self 348 ext/mysqlnd/mysqlnd_debug.c self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, "<%s", *func_name); self 357 ext/mysqlnd/mysqlnd_debug.c self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, "<%s (total=%u own=%u in_calls=%u)", self 361 ext/mysqlnd/mysqlnd_debug.c if ((f_profile = zend_hash_str_find_ptr(&self->function_profiles, *func_name, func_name_len)) != NULL) { self 405 ext/mysqlnd/mysqlnd_debug.c zend_hash_str_add_mem(&self->function_profiles, *func_name, func_name_len, f_profile, sizeof(struct st_mysqlnd_dbg_function_profile)); self 407 ext/mysqlnd/mysqlnd_debug.c if ((uint) zend_stack_count(&self->call_time_stack)) { self 410 ext/mysqlnd/mysqlnd_debug.c parent_non_own_time_ptr = zend_stack_top(&self->call_time_stack); self 413 ext/mysqlnd/mysqlnd_debug.c zend_stack_del_top(&self->call_time_stack); /* the caller */ self 414 ext/mysqlnd/mysqlnd_debug.c zend_stack_push(&self->call_time_stack, &parent_non_own_time); /* add back the caller */ self 420 ext/mysqlnd/mysqlnd_debug.c return zend_stack_del_top(&self->call_stack) == SUCCESS? PASS:FAIL; self 427 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, close)(MYSQLND_DEBUG * self) self 429 ext/mysqlnd/mysqlnd_debug.c if (self->stream) { self 431 ext/mysqlnd/mysqlnd_debug.c if (!(self->flags & MYSQLND_DEBUG_FLUSH) && (self->flags & MYSQLND_DEBUG_PROFILE_CALLS)) { self 435 ext/mysqlnd/mysqlnd_debug.c self->m->log_va(self, __LINE__, __FILE__, 0, "info : ", self 436 ext/mysqlnd/mysqlnd_debug.c "number of functions: %d", zend_hash_num_elements(&self->function_profiles)); self 437 ext/mysqlnd/mysqlnd_debug.c ZEND_HASH_FOREACH_STR_KEY_PTR(&self->function_profiles, string_key, f_profile) { self 438 ext/mysqlnd/mysqlnd_debug.c self->m->log_va(self, __LINE__, __FILE__, -1, "info : ", self 463 ext/mysqlnd/mysqlnd_debug.c php_stream_close(self->stream); self 464 ext/mysqlnd/mysqlnd_debug.c self->stream = NULL; self 474 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, free)(MYSQLND_DEBUG * self) self 476 ext/mysqlnd/mysqlnd_debug.c if (self->file_name && self->file_name != mysqlnd_debug_default_trace_file) { self 477 ext/mysqlnd/mysqlnd_debug.c efree(self->file_name); self 478 ext/mysqlnd/mysqlnd_debug.c self->file_name = NULL; self 480 ext/mysqlnd/mysqlnd_debug.c zend_stack_destroy(&self->call_stack); self 481 ext/mysqlnd/mysqlnd_debug.c zend_stack_destroy(&self->call_time_stack); self 482 ext/mysqlnd/mysqlnd_debug.c zend_hash_destroy(&self->not_filtered_functions); self 483 ext/mysqlnd/mysqlnd_debug.c zend_hash_destroy(&self->function_profiles); self 484 ext/mysqlnd/mysqlnd_debug.c free(self); self 499 ext/mysqlnd/mysqlnd_debug.c MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const mode) self 506 ext/mysqlnd/mysqlnd_debug.c self->flags = 0; self 507 ext/mysqlnd/mysqlnd_debug.c self->nest_level_limit = 0; self 508 ext/mysqlnd/mysqlnd_debug.c if (self->file_name && self->file_name != mysqlnd_debug_default_trace_file) { self 509 ext/mysqlnd/mysqlnd_debug.c efree(self->file_name); self 510 ext/mysqlnd/mysqlnd_debug.c self->file_name = NULL; self 512 ext/mysqlnd/mysqlnd_debug.c if (zend_hash_num_elements(&self->not_filtered_functions)) { self 513 ext/mysqlnd/mysqlnd_debug.c zend_hash_destroy(&self->not_filtered_functions); self 514 ext/mysqlnd/mysqlnd_debug.c zend_hash_init(&self->not_filtered_functions, 0, NULL, NULL, 0); self 521 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_FLUSH; self 525 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_APPEND; self 541 ext/mysqlnd/mysqlnd_debug.c self->file_name = estrndup(mode + i + 2, j - i - 2); self 545 ext/mysqlnd/mysqlnd_debug.c if (!self->file_name) self 546 ext/mysqlnd/mysqlnd_debug.c self->file_name = (char *) mysqlnd_debug_default_trace_file; self 577 ext/mysqlnd/mysqlnd_debug.c zend_hash_str_add_empty_element(&self->not_filtered_functions, self 613 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_DUMP_FILE; self 617 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_DUMP_PID; self 621 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_DUMP_LINE; self 625 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_DUMP_LEVEL; self 639 ext/mysqlnd/mysqlnd_debug.c self->nest_level_limit = atoi(value_str); self 644 ext/mysqlnd/mysqlnd_debug.c self->nest_level_limit = 200; /* default value for FF DBUG */ self 646 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_DUMP_TRACE; self 650 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_DUMP_TIME; self 660 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_TRACE_MEMORY_CALLS; self 664 ext/mysqlnd/mysqlnd_debug.c self->flags |= MYSQLND_DEBUG_PROFILE_CALLS; self 31 ext/mysqlnd/mysqlnd_debug.h enum_func_status (*open)(MYSQLND_DEBUG * self, zend_bool reopen); self 32 ext/mysqlnd/mysqlnd_debug.h void (*set_mode)(MYSQLND_DEBUG * self, const char * const mode); self 33 ext/mysqlnd/mysqlnd_debug.h enum_func_status (*log)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, self 35 ext/mysqlnd/mysqlnd_debug.h enum_func_status (*log_va)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, self 37 ext/mysqlnd/mysqlnd_debug.h zend_bool (*func_enter)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, self 39 ext/mysqlnd/mysqlnd_debug.h enum_func_status (*func_leave)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, uint64_t call_time); self 40 ext/mysqlnd/mysqlnd_debug.h enum_func_status (*close)(MYSQLND_DEBUG * self); self 41 ext/mysqlnd/mysqlnd_debug.h enum_func_status (*free_handle)(MYSQLND_DEBUG * self); self 644 ext/pdo_oci/oci_statement.c struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; self 649 ext/pdo_oci/oci_statement.c r = OCILobWrite(self->E->svc, self->E->err, self->lob, self 650 ext/pdo_oci/oci_statement.c &amt, self->offset, (char*)buf, (ub4) count, self 658 ext/pdo_oci/oci_statement.c self->offset += amt; self 664 ext/pdo_oci/oci_statement.c struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; self 669 ext/pdo_oci/oci_statement.c r = OCILobRead(self->E->svc, self->E->err, self->lob, self 670 ext/pdo_oci/oci_statement.c &amt, self->offset, buf, (ub4) count, self 677 ext/pdo_oci/oci_statement.c self->offset += amt; self 686 ext/pdo_oci/oci_statement.c struct oci_lob_self *self = (struct oci_lob_self *)stream->abstract; self 687 ext/pdo_oci/oci_statement.c pdo_stmt_t *stmt = self->stmt; self 692 ext/pdo_oci/oci_statement.c OCILobClose(self->E->svc, self->E->err, self->lob); self 693 ext/pdo_oci/oci_statement.c zval_ptr_dtor(&self->dbh); self 695 ext/pdo_oci/oci_statement.c efree(self->E); self 696 ext/pdo_oci/oci_statement.c efree(self); self 705 ext/pdo_oci/oci_statement.c struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; self 706 ext/pdo_oci/oci_statement.c OCILobFlushBuffer(self->E->svc, self->E->err, self->lob, 0); self 712 ext/pdo_oci/oci_statement.c struct oci_lob_self *self = (struct oci_lob_self*)stream->abstract; self 717 ext/pdo_oci/oci_statement.c self->offset = (ub4) offset + 1; /* Oracle LOBS are 1-based, but PHP is 0-based */ self 737 ext/pdo_oci/oci_statement.c struct oci_lob_self *self = ecalloc(1, sizeof(*self)); self 739 ext/pdo_oci/oci_statement.c ZVAL_COPY_VALUE(&self->dbh, dbh); self 740 ext/pdo_oci/oci_statement.c self->lob = lob; self 741 ext/pdo_oci/oci_statement.c self->offset = 1; /* 1-based */ self 742 ext/pdo_oci/oci_statement.c self->stmt = stmt; self 743 ext/pdo_oci/oci_statement.c self->S = (pdo_oci_stmt*)stmt->driver_data; self 744 ext/pdo_oci/oci_statement.c self->E = ecalloc(1, sizeof(oci_lob_env)); self 745 ext/pdo_oci/oci_statement.c self->E->svc = self->S->H->svc; self 746 ext/pdo_oci/oci_statement.c self->E->err = self->S->err; self 748 ext/pdo_oci/oci_statement.c stm = php_stream_alloc(&oci_blob_stream_ops, self, 0, "r+b"); self 753 ext/pdo_oci/oci_statement.c Z_ADDREF(self->dbh); self 758 ext/pdo_oci/oci_statement.c efree(self); self 139 ext/pdo_pgsql/pgsql_driver.c struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; self 140 ext/pdo_pgsql/pgsql_driver.c return lo_write(self->conn, self->lfd, (char*)buf, count); self 145 ext/pdo_pgsql/pgsql_driver.c struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; self 146 ext/pdo_pgsql/pgsql_driver.c return lo_read(self->conn, self->lfd, buf, count); self 151 ext/pdo_pgsql/pgsql_driver.c struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; self 154 ext/pdo_pgsql/pgsql_driver.c lo_close(self->conn, self->lfd); self 156 ext/pdo_pgsql/pgsql_driver.c zval_ptr_dtor(&self->dbh); self 157 ext/pdo_pgsql/pgsql_driver.c efree(self); self 169 ext/pdo_pgsql/pgsql_driver.c struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; self 171 ext/pdo_pgsql/pgsql_driver.c zend_off_t pos = lo_lseek64(self->conn, self->lfd, offset, whence); self 173 ext/pdo_pgsql/pgsql_driver.c zend_off_t pos = lo_lseek(self->conn, self->lfd, offset, whence); self 194 ext/pdo_pgsql/pgsql_driver.c struct pdo_pgsql_lob_self *self = ecalloc(1, sizeof(*self)); self 197 ext/pdo_pgsql/pgsql_driver.c ZVAL_COPY_VALUE(&self->dbh, dbh); self 198 ext/pdo_pgsql/pgsql_driver.c self->lfd = lfd; self 199 ext/pdo_pgsql/pgsql_driver.c self->oid = oid; self 200 ext/pdo_pgsql/pgsql_driver.c self->conn = H->server; self 202 ext/pdo_pgsql/pgsql_driver.c stm = php_stream_alloc(&pdo_pgsql_lob_stream_ops, self, 0, "r+b"); self 209 ext/pdo_pgsql/pgsql_driver.c efree(self); self 321 ext/pdo_pgsql/pgsql_statement.c struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stm->abstract; self 328 ext/pdo_pgsql/pgsql_statement.c P->oid = htonl(self->oid); self 19716 ext/sqlite3/libsqlite/sqlite3.c pthread_t self = pthread_self(); self 19717 ext/sqlite3/libsqlite/sqlite3.c if( p->nRef>0 && pthread_equal(p->owner, self) ){ self 19722 ext/sqlite3/libsqlite/sqlite3.c p->owner = self; self 19759 ext/sqlite3/libsqlite/sqlite3.c pthread_t self = pthread_self(); self 19760 ext/sqlite3/libsqlite/sqlite3.c if( p->nRef>0 && pthread_equal(p->owner, self) ){ self 19765 ext/sqlite3/libsqlite/sqlite3.c p->owner = self; self 392 ext/standard/proc_open.c HANDLE copy, self = GetCurrentProcess(); self 394 ext/standard/proc_open.c if (!DuplicateHandle(self, src, self, ©, 0, inherit, DUPLICATE_SAME_ACCESS | self 700 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 702 ext/xmlwriter/php_xmlwriter.c if (self) { self 706 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 739 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 741 ext/xmlwriter/php_xmlwriter.c if (self) { self 742 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 778 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 780 ext/xmlwriter/php_xmlwriter.c if (self) { self 784 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 844 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 846 ext/xmlwriter/php_xmlwriter.c if (self) { self 851 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 888 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 890 ext/xmlwriter/php_xmlwriter.c if (self) { self 895 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 933 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 935 ext/xmlwriter/php_xmlwriter.c if (self) { self 940 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 985 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 987 ext/xmlwriter/php_xmlwriter.c if (self) { self 992 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1045 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1047 ext/xmlwriter/php_xmlwriter.c if (self) { self 1052 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1099 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1101 ext/xmlwriter/php_xmlwriter.c if (self) { self 1106 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1170 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1172 ext/xmlwriter/php_xmlwriter.c if (self) { self 1177 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1211 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1213 ext/xmlwriter/php_xmlwriter.c if (self) { self 1214 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1278 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1280 ext/xmlwriter/php_xmlwriter.c if (self) { self 1281 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1333 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1335 ext/xmlwriter/php_xmlwriter.c if (self) { self 1339 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1380 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1382 ext/xmlwriter/php_xmlwriter.c if (self) { self 1387 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1427 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1429 ext/xmlwriter/php_xmlwriter.c if (self) { self 1434 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1484 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1486 ext/xmlwriter/php_xmlwriter.c if (self) { self 1490 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1543 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1545 ext/xmlwriter/php_xmlwriter.c if (self) { self 1550 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1586 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1588 ext/xmlwriter/php_xmlwriter.c if (self) { self 1592 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1639 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1641 ext/xmlwriter/php_xmlwriter.c if (self) { self 1647 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1685 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1692 ext/xmlwriter/php_xmlwriter.c if (self) { self 1694 ext/xmlwriter/php_xmlwriter.c ze_obj = Z_XMLWRITER_P(self); self 1717 ext/xmlwriter/php_xmlwriter.c if (self) { self 1736 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1739 ext/xmlwriter/php_xmlwriter.c if (self) { self 1741 ext/xmlwriter/php_xmlwriter.c ze_obj = Z_XMLWRITER_P(self); self 1760 ext/xmlwriter/php_xmlwriter.c if (self) { self 1781 ext/xmlwriter/php_xmlwriter.c zval *self = getThis(); self 1783 ext/xmlwriter/php_xmlwriter.c if (self) { self 1787 ext/xmlwriter/php_xmlwriter.c XMLWRITER_FROM_OBJECT(intern, self); self 1407 ext/zip/php_zip.c zval *self = getThis(); self 1414 ext/zip/php_zip.c if (self) { self 1416 ext/zip/php_zip.c ze_obj = Z_ZIP_P(self); self 1463 ext/zip/php_zip.c zval *self = getThis(); self 1467 ext/zip/php_zip.c if (!self) { self 1471 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1495 ext/zip/php_zip.c zval *self = getThis(); self 1499 ext/zip/php_zip.c if (!self) { self 1503 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1505 ext/zip/php_zip.c ze_obj = Z_ZIP_P(self); self 1530 ext/zip/php_zip.c zval *self = getThis(); self 1538 ext/zip/php_zip.c if (!self) { self 1542 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1562 ext/zip/php_zip.c zval *self = getThis(); self 1569 ext/zip/php_zip.c if (!self) { self 1573 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1613 ext/zip/php_zip.c zval *self = getThis(); self 1624 ext/zip/php_zip.c if (!self) { self 1628 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1738 ext/zip/php_zip.c zval *self = getThis(); self 1744 ext/zip/php_zip.c if (!self) { self 1748 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1778 ext/zip/php_zip.c zval *self = getThis(); self 1787 ext/zip/php_zip.c if (!self) { self 1791 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1798 ext/zip/php_zip.c ze_obj = Z_ZIP_P(self); self 1840 ext/zip/php_zip.c zval *self = getThis(); self 1845 ext/zip/php_zip.c if (!self) { self 1849 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1866 ext/zip/php_zip.c zval *self = getThis(); self 1871 ext/zip/php_zip.c if (!self) { self 1875 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1894 ext/zip/php_zip.c zval *self = getThis(); self 1899 ext/zip/php_zip.c if (!self) { self 1903 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1928 ext/zip/php_zip.c zval *self = getThis(); self 1932 ext/zip/php_zip.c if (!self) { self 1936 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1958 ext/zip/php_zip.c zval *self = getThis(); self 1962 ext/zip/php_zip.c if (!self) { self 1966 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 1984 ext/zip/php_zip.c zval *self = getThis(); self 1989 ext/zip/php_zip.c if (!self) { self 1993 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2012 ext/zip/php_zip.c zval *self = getThis(); self 2017 ext/zip/php_zip.c if (!self) { self 2021 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2045 ext/zip/php_zip.c zval *self = getThis(); self 2051 ext/zip/php_zip.c if (!self) { self 2055 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2075 ext/zip/php_zip.c zval *self = getThis(); self 2081 ext/zip/php_zip.c if (!self) { self 2085 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2113 ext/zip/php_zip.c zval *self = getThis(); self 2117 ext/zip/php_zip.c if (!self) { self 2121 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2142 ext/zip/php_zip.c zval *self = getThis(), *z_opsys, *z_attr; self 2150 ext/zip/php_zip.c if (!self) { self 2154 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2186 ext/zip/php_zip.c zval *self = getThis(), *z_opsys, *z_attr; self 2192 ext/zip/php_zip.c if (!self) { self 2196 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2222 ext/zip/php_zip.c zval *self = getThis(); self 2230 ext/zip/php_zip.c if (!self) { self 2234 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2260 ext/zip/php_zip.c zval *self = getThis(); self 2266 ext/zip/php_zip.c if (!self) { self 2270 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2355 ext/zip/php_zip.c zval *self = getThis(); self 2358 ext/zip/php_zip.c if (!self) { self 2362 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2385 ext/zip/php_zip.c zval *self = getThis(); self 2390 ext/zip/php_zip.c if (!self) { self 2394 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2416 ext/zip/php_zip.c zval *self = getThis(); self 2422 ext/zip/php_zip.c if (!self) { self 2426 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2452 ext/zip/php_zip.c zval *self = getThis(); self 2457 ext/zip/php_zip.c if (!self) { self 2461 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2486 ext/zip/php_zip.c zval *self = getThis(); self 2489 ext/zip/php_zip.c if (!self) { self 2493 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2516 ext/zip/php_zip.c zval *self = getThis(); self 2521 ext/zip/php_zip.c if (!self) { self 2525 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2550 ext/zip/php_zip.c zval *self = getThis(); self 2552 ext/zip/php_zip.c if (!self) { self 2556 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2571 ext/zip/php_zip.c zval *self = getThis(); self 2573 ext/zip/php_zip.c if (!self) { self 2577 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2598 ext/zip/php_zip.c zval *self = getThis(); self 2608 ext/zip/php_zip.c if (!self) { self 2627 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2682 ext/zip/php_zip.c zval *self = getThis(); self 2696 ext/zip/php_zip.c if (!self) { self 2700 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2766 ext/zip/php_zip.c zval *self = getThis(); self 2773 ext/zip/php_zip.c if (!self) { self 2777 ext/zip/php_zip.c ZIP_FROM_OBJECT(intern, self); self 2787 ext/zip/php_zip.c obj = Z_ZIP_P(self); self 42 ext/zip/zip_stream.c struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract; self 51 ext/zip/zip_stream.c if (self->za && self->zf) { self 52 ext/zip/zip_stream.c n = zip_fread(self->zf, buf, count); self 56 ext/zip/zip_stream.c zip_file_error_get(self->zf, &ze, &se); self 58 ext/zip/zip_stream.c php_error_docref(NULL, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf)); self 61 ext/zip/zip_stream.c err = zip_file_get_error(self->zf); self 73 ext/zip/zip_stream.c self->cursor += n; self 96 ext/zip/zip_stream.c if (self->zf) { self 97 ext/zip/zip_stream.c zip_fclose(self->zf); self 98 ext/zip/zip_stream.c self->zf = NULL; self 101 ext/zip/zip_stream.c if (self->za) { self 102 ext/zip/zip_stream.c zip_close(self->za); self 103 ext/zip/zip_stream.c self->za = NULL; self 106 ext/zip/zip_stream.c efree(self); self 217 ext/zip/zip_stream.c struct php_zip_stream_data_t *self; self 237 ext/zip/zip_stream.c self = emalloc(sizeof(*self)); self 239 ext/zip/zip_stream.c self->za = stream_za; self 240 ext/zip/zip_stream.c self->zf = zf; self 241 ext/zip/zip_stream.c self->stream = NULL; self 242 ext/zip/zip_stream.c self->cursor = 0; self 243 ext/zip/zip_stream.c stream = php_stream_alloc(&php_stream_zipio_ops, self, NULL, mode); self 279 ext/zip/zip_stream.c struct php_zip_stream_data_t *self; self 315 ext/zip/zip_stream.c self = emalloc(sizeof(*self)); self 317 ext/zip/zip_stream.c self->za = za; self 318 ext/zip/zip_stream.c self->zf = zf; self 319 ext/zip/zip_stream.c self->stream = NULL; self 320 ext/zip/zip_stream.c self->cursor = 0; self 321 ext/zip/zip_stream.c stream = php_stream_alloc(&php_stream_zipio_ops, self, NULL, mode); self 37 ext/zlib/zlib_fopen_wrapper.c struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; self 41 ext/zlib/zlib_fopen_wrapper.c read = gzread(self->gz_file, buf, count); self 43 ext/zlib/zlib_fopen_wrapper.c if (gzeof(self->gz_file)) { self 52 ext/zlib/zlib_fopen_wrapper.c struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; self 56 ext/zlib/zlib_fopen_wrapper.c wrote = gzwrite(self->gz_file, (char *) buf, count); self 63 ext/zlib/zlib_fopen_wrapper.c struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; self 65 ext/zlib/zlib_fopen_wrapper.c assert(self != NULL); self 71 ext/zlib/zlib_fopen_wrapper.c *newoffs = gzseek(self->gz_file, offset, whence); self 78 ext/zlib/zlib_fopen_wrapper.c struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; self 82 ext/zlib/zlib_fopen_wrapper.c if (self->gz_file) { self 83 ext/zlib/zlib_fopen_wrapper.c ret = gzclose(self->gz_file); self 84 ext/zlib/zlib_fopen_wrapper.c self->gz_file = NULL; self 86 ext/zlib/zlib_fopen_wrapper.c if (self->stream) { self 87 ext/zlib/zlib_fopen_wrapper.c php_stream_close(self->stream); self 88 ext/zlib/zlib_fopen_wrapper.c self->stream = NULL; self 91 ext/zlib/zlib_fopen_wrapper.c efree(self); self 98 ext/zlib/zlib_fopen_wrapper.c struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; self 100 ext/zlib/zlib_fopen_wrapper.c return gzflush(self->gz_file, Z_SYNC_FLUSH); self 116 ext/zlib/zlib_fopen_wrapper.c struct php_gz_stream_data_t *self; self 139 ext/zlib/zlib_fopen_wrapper.c self = emalloc(sizeof(*self)); self 140 ext/zlib/zlib_fopen_wrapper.c self->stream = innerstream; self 141 ext/zlib/zlib_fopen_wrapper.c self->gz_file = gzdopen(dup(fd), mode); self 143 ext/zlib/zlib_fopen_wrapper.c if (self->gz_file) { self 144 ext/zlib/zlib_fopen_wrapper.c stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); self 150 ext/zlib/zlib_fopen_wrapper.c gzclose(self->gz_file); self 153 ext/zlib/zlib_fopen_wrapper.c efree(self); self 246 main/rfc1867.c static int fill_buffer(multipart_buffer *self) self 251 main/rfc1867.c if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { self 252 main/rfc1867.c memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); self 255 main/rfc1867.c self->buf_begin = self->buffer; self 258 main/rfc1867.c bytes_to_read = self->bufsize - self->bytes_in_buffer; self 263 main/rfc1867.c char *buf = self->buffer + self->bytes_in_buffer; self 269 main/rfc1867.c self->bytes_in_buffer += actual_read; self 282 main/rfc1867.c static int multipart_buffer_eof(multipart_buffer *self) self 284 main/rfc1867.c if ( (self->bytes_in_buffer == 0 && fill_buffer(self) < 1) ) { self 294 main/rfc1867.c multipart_buffer *self = (multipart_buffer *) ecalloc(1, sizeof(multipart_buffer)); self 299 main/rfc1867.c self->buffer = (char *) ecalloc(1, minsize + 1); self 300 main/rfc1867.c self->bufsize = minsize; self 302 main/rfc1867.c spprintf(&self->boundary, 0, "--%s", boundary); self 304 main/rfc1867.c self->boundary_next_len = (int)spprintf(&self->boundary_next, 0, "\n--%s", boundary); self 306 main/rfc1867.c self->buf_begin = self->buffer; self 307 main/rfc1867.c self->bytes_in_buffer = 0; self 310 main/rfc1867.c php_rfc1867_get_detect_order(&self->detect_order, &self->detect_order_size); self 312 main/rfc1867.c self->detect_order = NULL; self 313 main/rfc1867.c self->detect_order_size = 0; self 316 main/rfc1867.c self->input_encoding = NULL; self 318 main/rfc1867.c return self; self 332 main/rfc1867.c static char *next_line(multipart_buffer *self) self 335 main/rfc1867.c char* line = self->buf_begin; self 336 main/rfc1867.c char* ptr = memchr(self->buf_begin, '\n', self->bytes_in_buffer); self 348 main/rfc1867.c self->buf_begin = ptr + 1; self 349 main/rfc1867.c self->bytes_in_buffer -= (self->buf_begin - line); self 354 main/rfc1867.c if (self->bytes_in_buffer < self->bufsize) { self 358 main/rfc1867.c line[self->bufsize] = 0; self 359 main/rfc1867.c self->buf_begin = ptr; self 360 main/rfc1867.c self->bytes_in_buffer = 0; self 367 main/rfc1867.c static char *get_line(multipart_buffer *self) self 369 main/rfc1867.c char* ptr = next_line(self); self 372 main/rfc1867.c fill_buffer(self); self 373 main/rfc1867.c ptr = next_line(self); self 391 main/rfc1867.c static int find_boundary(multipart_buffer *self, char *boundary) self 396 main/rfc1867.c while( (line = get_line(self)) ) self 409 main/rfc1867.c static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header) self 417 main/rfc1867.c if (!find_boundary(self, self->boundary)) { self 423 main/rfc1867.c while ((line = get_line(self)) && line[0] != '\0') { self 428 main/rfc1867.c self->input_encoding = zend_multibyte_encoding_detector((const unsigned char *) line, strlen(line), self->detect_order, self->detect_order_size); self 617 main/rfc1867.c static int multipart_buffer_read(multipart_buffer *self, char *buf, size_t bytes, int *end) self 623 main/rfc1867.c if (bytes > self->bytes_in_buffer) { self 624 main/rfc1867.c fill_buffer(self); self 628 main/rfc1867.c if ((bound = php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boundary_next_len, 1))) { self 629 main/rfc1867.c max = bound - self->buf_begin; self 630 main/rfc1867.c if (end && php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boundary_next_len, 0)) { self 634 main/rfc1867.c max = self->bytes_in_buffer; self 644 main/rfc1867.c memcpy(buf, self->buf_begin, len); self 652 main/rfc1867.c self->bytes_in_buffer -= (int)len; self 653 main/rfc1867.c self->buf_begin += len; self 663 main/rfc1867.c static char *multipart_buffer_read_body(multipart_buffer *self, size_t *len) self 668 main/rfc1867.c while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { self 295 main/streams/memory.c php_stream_memory_data *self; self 298 main/streams/memory.c self = emalloc(sizeof(*self)); self 299 main/streams/memory.c self->data = NULL; self 300 main/streams/memory.c self->fpos = 0; self 301 main/streams/memory.c self->fsize = 0; self 302 main/streams/memory.c self->smax = ~0u; self 303 main/streams/memory.c self->mode = mode; self 305 main/streams/memory.c stream = php_stream_alloc_rel(&php_stream_memory_ops, self, 0, mode & TEMP_STREAM_READONLY ? "rb" : "w+b"); self 564 main/streams/memory.c php_stream_temp_data *self; self 567 main/streams/memory.c self = ecalloc(1, sizeof(*self)); self 568 main/streams/memory.c self->smax = max_memory_usage; self 569 main/streams/memory.c self->mode = mode; self 570 main/streams/memory.c ZVAL_UNDEF(&self->meta); self 572 main/streams/memory.c self->tmpdir = estrdup(tmpdir); self 574 main/streams/memory.c stream = php_stream_alloc_rel(&php_stream_temp_ops, self, 0, mode & TEMP_STREAM_READONLY ? "rb" : "w+b"); self 576 main/streams/memory.c self->innerstream = php_stream_memory_create_rel(mode); self 577 main/streams/memory.c php_stream_encloses(stream, self->innerstream); self 164 main/streams/plain_wrapper.c php_stdio_stream_data *self; self 166 main/streams/plain_wrapper.c self = pemalloc_rel_orig(sizeof(*self), persistent_id); self 167 main/streams/plain_wrapper.c memset(self, 0, sizeof(*self)); self 168 main/streams/plain_wrapper.c self->file = NULL; self 169 main/streams/plain_wrapper.c self->is_pipe = 0; self 170 main/streams/plain_wrapper.c self->lock_flag = LOCK_UN; self 171 main/streams/plain_wrapper.c self->is_process_pipe = 0; self 172 main/streams/plain_wrapper.c self->temp_name = NULL; self 173 main/streams/plain_wrapper.c self->fd = fd; self 175 main/streams/plain_wrapper.c self->is_pipe_blocking = 0; self 178 main/streams/plain_wrapper.c return php_stream_alloc_rel(&php_stream_stdio_ops, self, persistent_id, mode); self 183 main/streams/plain_wrapper.c php_stdio_stream_data *self; self 185 main/streams/plain_wrapper.c self = emalloc_rel_orig(sizeof(*self)); self 186 main/streams/plain_wrapper.c memset(self, 0, sizeof(*self)); self 187 main/streams/plain_wrapper.c self->file = file; self 188 main/streams/plain_wrapper.c self->is_pipe = 0; self 189 main/streams/plain_wrapper.c self->lock_flag = LOCK_UN; self 190 main/streams/plain_wrapper.c self->is_process_pipe = 0; self 191 main/streams/plain_wrapper.c self->temp_name = NULL; self 192 main/streams/plain_wrapper.c self->fd = fileno(file); self 194 main/streams/plain_wrapper.c self->is_pipe_blocking = 0; self 197 main/streams/plain_wrapper.c return php_stream_alloc_rel(&php_stream_stdio_ops, self, 0, mode); self 215 main/streams/plain_wrapper.c php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; self 219 main/streams/plain_wrapper.c self->temp_name = opened_path; self 220 main/streams/plain_wrapper.c self->lock_flag = LOCK_UN; self 243 main/streams/plain_wrapper.c php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; self 247 main/streams/plain_wrapper.c if (self->fd >= 0) { self 248 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; self 252 main/streams/plain_wrapper.c zend_uintptr_t handle = _get_osfhandle(self->fd); self 255 main/streams/plain_wrapper.c self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE; self 260 main/streams/plain_wrapper.c if (self->is_pipe) { self 263 main/streams/plain_wrapper.c stream->position = zend_lseek(self->fd, 0, SEEK_CUR); self 268 main/streams/plain_wrapper.c self->is_pipe = 1; self 282 main/streams/plain_wrapper.c php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; self 286 main/streams/plain_wrapper.c if (self->fd >= 0) { self 287 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; self 291 main/streams/plain_wrapper.c zend_uintptr_t handle = _get_osfhandle(self->fd); self 294 main/streams/plain_wrapper.c self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE; self 299 main/streams/plain_wrapper.c if (self->is_pipe) { self 311 main/streams/plain_wrapper.c php_stdio_stream_data *self; self 314 main/streams/plain_wrapper.c self = emalloc_rel_orig(sizeof(*self)); self 315 main/streams/plain_wrapper.c memset(self, 0, sizeof(*self)); self 316 main/streams/plain_wrapper.c self->file = file; self 317 main/streams/plain_wrapper.c self->is_pipe = 1; self 318 main/streams/plain_wrapper.c self->lock_flag = LOCK_UN; self 319 main/streams/plain_wrapper.c self->is_process_pipe = 1; self 320 main/streams/plain_wrapper.c self->fd = fileno(file); self 321 main/streams/plain_wrapper.c self->temp_name = NULL; self 323 main/streams/plain_wrapper.c self->is_pipe_blocking = 0; self 326 main/streams/plain_wrapper.c stream = php_stream_alloc_rel(&php_stream_stdio_ops, self, 0, mode); self 371 main/streams/plain_wrapper.c php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; self 373 main/streams/plain_wrapper.c if ((self->is_pipe || self->is_process_pipe) && !self->is_pipe_blocking) { self 1015 main/streams/plain_wrapper.c php_stdio_stream_data *self = (php_stdio_stream_data*)ret->abstract; self 1018 main/streams/plain_wrapper.c r = do_fstat(self, 0); self 1019 main/streams/plain_wrapper.c if ((r == 0 && !S_ISREG(self->sb.st_mode))) { self 1030 main/streams/plain_wrapper.c php_stdio_stream_data *self = (php_stdio_stream_data*)ret->abstract; self 1031 main/streams/plain_wrapper.c self->is_pipe_blocking = 1;