ctx               166 TSRM/TSRM.h    #define TSRMLS_FETCH_FROM_CTX(ctx)	void ***tsrm_ls = (void ***) ctx
ctx               167 TSRM/TSRM.h    #define TSRMLS_SET_CTX(ctx)		ctx = (void ***) tsrm_get_ls_cache()
ctx               196 TSRM/TSRM.h    #define TSRMLS_FETCH_FROM_CTX(ctx)
ctx               197 TSRM/TSRM.h    #define TSRMLS_SET_CTX(ctx)
ctx                44 ext/com_dotnet/com_com.c 	CLSCTX ctx = CLSCTX_SERVER;
ctx                73 ext/com_dotnet/com_com.c 		ctx = CLSCTX_REMOTE_SERVER;
ctx                84 ext/com_dotnet/com_com.c 			ctx = CLSCTX_REMOTE_SERVER;
ctx               111 ext/com_dotnet/com_com.c 			ctx = (CLSCTX)Z_LVAL_P(tmp);
ctx               202 ext/com_dotnet/com_com.c 		res = CoCreateInstanceEx(&clsid, NULL, ctx, &info, 1, &qi);
ctx              1300 ext/curl/interface.c static size_t curl_write_nothing(char *data, size_t size, size_t nmemb, void *ctx)
ctx              1308 ext/curl/interface.c static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx)
ctx              1310 ext/curl/interface.c 	php_curl *ch = (php_curl *) ctx;
ctx              1316 ext/curl/interface.c 	fprintf(stderr, "data = %s, size = %d, nmemb = %d, ctx = %x\n", data, size, nmemb, ctx);
ctx              1374 ext/curl/interface.c static int curl_fnmatch(void *ctx, const char *pattern, const char *string)
ctx              1376 ext/curl/interface.c 	php_curl *ch = (php_curl *) ctx;
ctx              1483 ext/curl/interface.c static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx)
ctx              1485 ext/curl/interface.c 	php_curl *ch = (php_curl *)ctx;
ctx              1551 ext/curl/interface.c static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx)
ctx              1553 ext/curl/interface.c 	php_curl *ch = (php_curl *) ctx;
ctx              1615 ext/curl/interface.c static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */
ctx              1617 ext/curl/interface.c 	php_curl *ch = (php_curl *)ctx;
ctx              1635 ext/curl/interface.c static size_t curl_passwd(void *ctx, char *prompt, char *buf, int buflen)
ctx              1637 ext/curl/interface.c 	php_curl *ch = (php_curl *) ctx;
ctx               260 ext/dom/xpath.c 	xmlXPathContextPtr ctx, oldctx;
ctx               268 ext/dom/xpath.c 	ctx = xmlXPathNewContext(docp);
ctx               269 ext/dom/xpath.c 	if (ctx == NULL) {
ctx               282 ext/dom/xpath.c 		xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "functionString",
ctx               285 ext/dom/xpath.c 		xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "function",
ctx               289 ext/dom/xpath.c 		intern->dom.ptr = ctx;
ctx               290 ext/dom/xpath.c 		ctx->userData = (void *)intern;
ctx               301 ext/dom/xpath.c 	xmlXPathContextPtr ctx = (xmlXPathContextPtr) obj->ptr;
ctx               303 ext/dom/xpath.c 	if (ctx) {
ctx               304 ext/dom/xpath.c 		docp = (xmlDocPtr) ctx->doc;
ctx               249 ext/ftp/ftp.c  	SSL_CTX	*ctx = NULL;
ctx               283 ext/ftp/ftp.c  		ctx = SSL_CTX_new(SSLv23_client_method());
ctx               284 ext/ftp/ftp.c  		if (ctx == NULL) {
ctx               292 ext/ftp/ftp.c  		SSL_CTX_set_options(ctx, ssl_ctx_options);
ctx               294 ext/ftp/ftp.c  		ftp->ssl_handle = SSL_new(ctx);
ctx               297 ext/ftp/ftp.c  			SSL_CTX_free(ctx);
ctx              1639 ext/ftp/ftp.c  	SSL_CTX		*ctx;
ctx              1663 ext/ftp/ftp.c  		ctx = SSL_CTX_new(SSLv23_client_method());
ctx              1664 ext/ftp/ftp.c  		if (ctx == NULL) {
ctx              1672 ext/ftp/ftp.c  		SSL_CTX_set_options(ctx, ssl_ctx_options);
ctx              1674 ext/ftp/ftp.c  		data->ssl_handle = SSL_new(ctx);
ctx              1677 ext/ftp/ftp.c  			SSL_CTX_free(ctx);
ctx              1740 ext/ftp/ftp.c  	SSL_CTX		*ctx;
ctx              1749 ext/ftp/ftp.c  			ctx = SSL_get_SSL_CTX(data->ssl_handle);
ctx              1750 ext/ftp/ftp.c  			SSL_CTX_free(ctx);
ctx              1762 ext/ftp/ftp.c  			ctx = SSL_get_SSL_CTX(data->ssl_handle);
ctx              1763 ext/ftp/ftp.c  			SSL_CTX_free(ctx);
ctx              2139 ext/gd/gd.c    static int _php_ctx_getmbi(gdIOCtx *ctx)
ctx              2144 ext/gd/gd.c    		i = (ctx->getC)(ctx);
ctx                23 ext/gd/gd_ctx.c #define CTX_PUTC(c,ctx) ctx->putC(ctx, c)
ctx                25 ext/gd/gd_ctx.c static void _php_image_output_putc(struct gdIOCtx *ctx, int c) /* {{{ */
ctx                35 ext/gd/gd_ctx.c static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */
ctx                40 ext/gd/gd_ctx.c static void _php_image_output_ctxfree(struct gdIOCtx *ctx) /* {{{ */
ctx                42 ext/gd/gd_ctx.c 	if(ctx) {
ctx                43 ext/gd/gd_ctx.c 		efree(ctx);
ctx                47 ext/gd/gd_ctx.c static void _php_image_stream_putc(struct gdIOCtx *ctx, int c) /* {{{ */ {
ctx                49 ext/gd/gd_ctx.c 	php_stream * stream = (php_stream *)ctx->data;
ctx                53 ext/gd/gd_ctx.c static int _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */
ctx                55 ext/gd/gd_ctx.c 	php_stream * stream = (php_stream *)ctx->data;
ctx                59 ext/gd/gd_ctx.c static void _php_image_stream_ctxfree(struct gdIOCtx *ctx) /* {{{ */
ctx                62 ext/gd/gd_ctx.c 	if(ctx->data) {
ctx                63 ext/gd/gd_ctx.c 		php_stream_close((php_stream *) ctx->data);
ctx                64 ext/gd/gd_ctx.c 		ctx->data = NULL;
ctx                66 ext/gd/gd_ctx.c 	if(ctx) {
ctx                67 ext/gd/gd_ctx.c 		efree(ctx);
ctx                82 ext/gd/gd_ctx.c 	gdIOCtx *ctx = NULL;
ctx               143 ext/gd/gd_ctx.c 		ctx = emalloc(sizeof(gdIOCtx));
ctx               144 ext/gd/gd_ctx.c 		ctx->putC = _php_image_output_putc;
ctx               145 ext/gd/gd_ctx.c 		ctx->putBuf = _php_image_output_putbuf;
ctx               146 ext/gd/gd_ctx.c 		ctx->gd_free = _php_image_output_ctxfree;
ctx               155 ext/gd/gd_ctx.c 	if (!ctx)	{
ctx               156 ext/gd/gd_ctx.c 		ctx = emalloc(sizeof(gdIOCtx));
ctx               157 ext/gd/gd_ctx.c 		ctx->putC = _php_image_stream_putc;
ctx               158 ext/gd/gd_ctx.c 		ctx->putBuf = _php_image_stream_putbuf;
ctx               159 ext/gd/gd_ctx.c 		ctx->gd_free = _php_image_stream_ctxfree;
ctx               160 ext/gd/gd_ctx.c 		ctx->data = (void *)stream;
ctx               169 ext/gd/gd_ctx.c 			(*func_p)(im, ctx, q);
ctx               175 ext/gd/gd_ctx.c 			(*func_p)(im, ctx, q);
ctx               178 ext/gd/gd_ctx.c 			(*func_p)(im, ctx, q, f);
ctx               189 ext/gd/gd_ctx.c 				(*func_p)(im, file ? file : "", q, ctx);
ctx               191 ext/gd/gd_ctx.c 				(*func_p)(im, q, ctx);
ctx               195 ext/gd/gd_ctx.c 			(*func_p)(im, ctx);
ctx               199 ext/gd/gd_ctx.c 	ctx->gd_free(ctx);
ctx               756 ext/gd/libgd/gd.h void* gdDPExtractData(struct gdIOCtx* ctx, int *size);
ctx                90 ext/gd/libgd/gd_gif_out.c static void BumpPixel (GifCtx *ctx);
ctx                91 ext/gd/libgd/gd_gif_out.c static int GIFNextPixel (gdImagePtr im, GifCtx *ctx);
ctx                93 ext/gd/libgd/gd_gif_out.c static void compress (int init_bits, gdIOCtx *outfile, gdImagePtr im, GifCtx *ctx);
ctx                94 ext/gd/libgd/gd_gif_out.c static void output (code_int code, GifCtx *ctx);
ctx                95 ext/gd/libgd/gd_gif_out.c static void cl_block (GifCtx *ctx);
ctx                96 ext/gd/libgd/gd_gif_out.c static void cl_hash (register count_int chsize, GifCtx *ctx);
ctx                97 ext/gd/libgd/gd_gif_out.c static void char_init (GifCtx *ctx);
ctx                98 ext/gd/libgd/gd_gif_out.c static void char_out (int c, GifCtx *ctx);
ctx                99 ext/gd/libgd/gd_gif_out.c static void flush_char (GifCtx *ctx);
ctx               182 ext/gd/libgd/gd_gif_out.c BumpPixel(GifCtx *ctx)
ctx               187 ext/gd/libgd/gd_gif_out.c         ++(ctx->curx);
ctx               194 ext/gd/libgd/gd_gif_out.c         if( ctx->curx == ctx->Width ) {
ctx               195 ext/gd/libgd/gd_gif_out.c                 ctx->curx = 0;
ctx               197 ext/gd/libgd/gd_gif_out.c                 if( !ctx->Interlace )
ctx               198 ext/gd/libgd/gd_gif_out.c                         ++(ctx->cury);
ctx               200 ext/gd/libgd/gd_gif_out.c                      switch( ctx->Pass ) {
ctx               203 ext/gd/libgd/gd_gif_out.c                           ctx->cury += 8;
ctx               204 ext/gd/libgd/gd_gif_out.c                           if( ctx->cury >= ctx->Height ) {
ctx               205 ext/gd/libgd/gd_gif_out.c                                 ++(ctx->Pass);
ctx               206 ext/gd/libgd/gd_gif_out.c                                 ctx->cury = 4;
ctx               211 ext/gd/libgd/gd_gif_out.c                           ctx->cury += 8;
ctx               212 ext/gd/libgd/gd_gif_out.c                           if( ctx->cury >= ctx->Height ) {
ctx               213 ext/gd/libgd/gd_gif_out.c                                 ++(ctx->Pass);
ctx               214 ext/gd/libgd/gd_gif_out.c                                 ctx->cury = 2;
ctx               219 ext/gd/libgd/gd_gif_out.c                           ctx->cury += 4;
ctx               220 ext/gd/libgd/gd_gif_out.c                           if( ctx->cury >= ctx->Height ) {
ctx               221 ext/gd/libgd/gd_gif_out.c                              ++(ctx->Pass);
ctx               222 ext/gd/libgd/gd_gif_out.c                              ctx->cury = 1;
ctx               227 ext/gd/libgd/gd_gif_out.c                           ctx->cury += 2;
ctx               238 ext/gd/libgd/gd_gif_out.c GIFNextPixel(gdImagePtr im, GifCtx *ctx)
ctx               242 ext/gd/libgd/gd_gif_out.c         if( ctx->CountDown == 0 )
ctx               245 ext/gd/libgd/gd_gif_out.c         --(ctx->CountDown);
ctx               247 ext/gd/libgd/gd_gif_out.c         r = gdImageGetPixel(im, ctx->curx, ctx->cury);
ctx               249 ext/gd/libgd/gd_gif_out.c         BumpPixel(ctx);
ctx               266 ext/gd/libgd/gd_gif_out.c 		GifCtx ctx;
ctx               268 ext/gd/libgd/gd_gif_out.c 		memset(&ctx, 0, sizeof(ctx));
ctx               269 ext/gd/libgd/gd_gif_out.c         ctx.Interlace = GInterlace;
ctx               270 ext/gd/libgd/gd_gif_out.c 		ctx.in_count = 1;
ctx               274 ext/gd/libgd/gd_gif_out.c         RWidth = ctx.Width = GWidth;
ctx               275 ext/gd/libgd/gd_gif_out.c         RHeight = ctx.Height = GHeight;
ctx               283 ext/gd/libgd/gd_gif_out.c         ctx.CountDown = (long)ctx.Width * (long)ctx.Height;
ctx               288 ext/gd/libgd/gd_gif_out.c         ctx.Pass = 0;
ctx               301 ext/gd/libgd/gd_gif_out.c         ctx.curx = ctx.cury = 0;
ctx               378 ext/gd/libgd/gd_gif_out.c         gifPutWord( ctx.Width, fp );
ctx               379 ext/gd/libgd/gd_gif_out.c         gifPutWord( ctx.Height, fp );
ctx               384 ext/gd/libgd/gd_gif_out.c         if( ctx.Interlace )
ctx               397 ext/gd/libgd/gd_gif_out.c         compress( InitCodeSize+1, fp, im, &ctx );
ctx               455 ext/gd/libgd/gd_gif_out.c #define HashTabOf(i)       ctx->htab[i]
ctx               456 ext/gd/libgd/gd_gif_out.c #define CodeTabOf(i)    ctx->codetab[i]
ctx               489 ext/gd/libgd/gd_gif_out.c output(code_int code, GifCtx *ctx);
ctx               492 ext/gd/libgd/gd_gif_out.c compress(int init_bits, gdIOCtxPtr outfile, gdImagePtr im, GifCtx *ctx)
ctx               506 ext/gd/libgd/gd_gif_out.c     ctx->g_init_bits = init_bits;
ctx               507 ext/gd/libgd/gd_gif_out.c     ctx->g_outfile = outfile;
ctx               512 ext/gd/libgd/gd_gif_out.c     ctx->offset = 0;
ctx               513 ext/gd/libgd/gd_gif_out.c     ctx->out_count = 0;
ctx               514 ext/gd/libgd/gd_gif_out.c     ctx->clear_flg = 0;
ctx               515 ext/gd/libgd/gd_gif_out.c     ctx->in_count = 1;
ctx               516 ext/gd/libgd/gd_gif_out.c     ctx->maxcode = MAXCODE(ctx->n_bits = ctx->g_init_bits);
ctx               518 ext/gd/libgd/gd_gif_out.c     ctx->ClearCode = (1 << (init_bits - 1));
ctx               519 ext/gd/libgd/gd_gif_out.c     ctx->EOFCode = ctx->ClearCode + 1;
ctx               520 ext/gd/libgd/gd_gif_out.c     ctx->free_ent = ctx->ClearCode + 2;
ctx               522 ext/gd/libgd/gd_gif_out.c     char_init(ctx);
ctx               524 ext/gd/libgd/gd_gif_out.c     ent = GIFNextPixel( im, ctx );
ctx               532 ext/gd/libgd/gd_gif_out.c     cl_hash( (count_int) hsize_reg, ctx );            /* clear hash table */
ctx               534 ext/gd/libgd/gd_gif_out.c     output( (code_int)ctx->ClearCode, ctx );
ctx               539 ext/gd/libgd/gd_gif_out.c     while ( (c = GIFNextPixel( im, ctx )) != EOF ) {  /* } */
ctx               542 ext/gd/libgd/gd_gif_out.c         ++(ctx->in_count);
ctx               566 ext/gd/libgd/gd_gif_out.c         output ( (code_int) ent, ctx );
ctx               567 ext/gd/libgd/gd_gif_out.c         ++(ctx->out_count);
ctx               570 ext/gd/libgd/gd_gif_out.c         if ( (unsigned) ctx->free_ent < (unsigned) maxmaxcode) {
ctx               572 ext/gd/libgd/gd_gif_out.c         if ( ctx->free_ent < maxmaxcode ) {  /* } */
ctx               574 ext/gd/libgd/gd_gif_out.c             CodeTabOf (i) = ctx->free_ent++; /* code -> hashtable */
ctx               577 ext/gd/libgd/gd_gif_out.c                 cl_block(ctx);
ctx               582 ext/gd/libgd/gd_gif_out.c     output( (code_int)ent, ctx );
ctx               583 ext/gd/libgd/gd_gif_out.c     ++(ctx->out_count);
ctx               584 ext/gd/libgd/gd_gif_out.c     output( (code_int) ctx->EOFCode, ctx );
ctx               610 ext/gd/libgd/gd_gif_out.c output(code_int code, GifCtx *ctx)
ctx               612 ext/gd/libgd/gd_gif_out.c     ctx->cur_accum &= masks[ ctx->cur_bits ];
ctx               614 ext/gd/libgd/gd_gif_out.c     if( ctx->cur_bits > 0 )
ctx               615 ext/gd/libgd/gd_gif_out.c         ctx->cur_accum |= ((long)code << ctx->cur_bits);
ctx               617 ext/gd/libgd/gd_gif_out.c         ctx->cur_accum = code;
ctx               619 ext/gd/libgd/gd_gif_out.c     ctx->cur_bits += ctx->n_bits;
ctx               621 ext/gd/libgd/gd_gif_out.c     while( ctx->cur_bits >= 8 ) {
ctx               622 ext/gd/libgd/gd_gif_out.c         char_out( (unsigned int)(ctx->cur_accum & 0xff), ctx );
ctx               623 ext/gd/libgd/gd_gif_out.c         ctx->cur_accum >>= 8;
ctx               624 ext/gd/libgd/gd_gif_out.c         ctx->cur_bits -= 8;
ctx               631 ext/gd/libgd/gd_gif_out.c    if ( ctx->free_ent > ctx->maxcode || ctx->clear_flg ) {
ctx               633 ext/gd/libgd/gd_gif_out.c             if( ctx->clear_flg ) {
ctx               635 ext/gd/libgd/gd_gif_out.c                 ctx->maxcode = MAXCODE (ctx->n_bits = ctx->g_init_bits);
ctx               636 ext/gd/libgd/gd_gif_out.c                 ctx->clear_flg = 0;
ctx               640 ext/gd/libgd/gd_gif_out.c                 ++(ctx->n_bits);
ctx               641 ext/gd/libgd/gd_gif_out.c                 if ( ctx->n_bits == maxbits )
ctx               642 ext/gd/libgd/gd_gif_out.c                     ctx->maxcode = maxmaxcode;
ctx               644 ext/gd/libgd/gd_gif_out.c                     ctx->maxcode = MAXCODE(ctx->n_bits);
ctx               648 ext/gd/libgd/gd_gif_out.c     if( code == ctx->EOFCode ) {
ctx               652 ext/gd/libgd/gd_gif_out.c         while( ctx->cur_bits > 0 ) {
ctx               653 ext/gd/libgd/gd_gif_out.c                 char_out( (unsigned int)(ctx->cur_accum & 0xff), ctx);
ctx               654 ext/gd/libgd/gd_gif_out.c                 ctx->cur_accum >>= 8;
ctx               655 ext/gd/libgd/gd_gif_out.c                 ctx->cur_bits -= 8;
ctx               658 ext/gd/libgd/gd_gif_out.c         flush_char(ctx);
ctx               667 ext/gd/libgd/gd_gif_out.c cl_block (GifCtx *ctx)             /* table clear for block compress */
ctx               670 ext/gd/libgd/gd_gif_out.c         cl_hash ( (count_int) hsize, ctx );
ctx               671 ext/gd/libgd/gd_gif_out.c         ctx->free_ent = ctx->ClearCode + 2;
ctx               672 ext/gd/libgd/gd_gif_out.c         ctx->clear_flg = 1;
ctx               674 ext/gd/libgd/gd_gif_out.c         output( (code_int)ctx->ClearCode, ctx);
ctx               678 ext/gd/libgd/gd_gif_out.c cl_hash(register count_int chsize, GifCtx *ctx)          /* reset code table */
ctx               682 ext/gd/libgd/gd_gif_out.c         register count_int *htab_p = ctx->htab+chsize;
ctx               722 ext/gd/libgd/gd_gif_out.c char_init(GifCtx *ctx)
ctx               724 ext/gd/libgd/gd_gif_out.c         ctx->a_count = 0;
ctx               732 ext/gd/libgd/gd_gif_out.c char_out(int c, GifCtx *ctx)
ctx               734 ext/gd/libgd/gd_gif_out.c         ctx->accum[ ctx->a_count++ ] = c;
ctx               735 ext/gd/libgd/gd_gif_out.c         if( ctx->a_count >= 254 )
ctx               736 ext/gd/libgd/gd_gif_out.c                 flush_char(ctx);
ctx               743 ext/gd/libgd/gd_gif_out.c flush_char(GifCtx *ctx)
ctx               745 ext/gd/libgd/gd_gif_out.c         if( ctx->a_count > 0 ) {
ctx               746 ext/gd/libgd/gd_gif_out.c                 gdPutC( ctx->a_count, ctx->g_outfile );
ctx               747 ext/gd/libgd/gd_gif_out.c                 gdPutBuf( ctx->accum, ctx->a_count, ctx->g_outfile );
ctx               748 ext/gd/libgd/gd_gif_out.c                 ctx->a_count = 0;
ctx                34 ext/gd/libgd/gd_io.c void Putword (int w, gdIOCtx * ctx)
ctx                40 ext/gd/libgd/gd_io.c 	(ctx->putBuf) (ctx, (char *) buf, 2);
ctx                43 ext/gd/libgd/gd_io.c void Putchar (int c, gdIOCtx * ctx)
ctx                45 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, c & 0xff);
ctx                48 ext/gd/libgd/gd_io.c void gdPutC (const unsigned char c, gdIOCtx * ctx)
ctx                50 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, c);
ctx                53 ext/gd/libgd/gd_io.c void gdPutWord (int w, gdIOCtx * ctx)
ctx                56 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, (unsigned char) (w >> 8));
ctx                57 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, (unsigned char) (w & 0xFF));
ctx                61 ext/gd/libgd/gd_io.c void gdPutInt (int w, gdIOCtx * ctx)
ctx                64 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, (unsigned char) (w >> 24));
ctx                65 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, (unsigned char) ((w >> 16) & 0xFF));
ctx                66 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, (unsigned char) ((w >> 8) & 0xFF));
ctx                67 ext/gd/libgd/gd_io.c 	(ctx->putC) (ctx, (unsigned char) (w & 0xFF));
ctx                71 ext/gd/libgd/gd_io.c int gdGetC (gdIOCtx * ctx)
ctx                73 ext/gd/libgd/gd_io.c 	return ((ctx->getC) (ctx));
ctx                76 ext/gd/libgd/gd_io.c int gdGetByte (int *result, gdIOCtx * ctx)
ctx                79 ext/gd/libgd/gd_io.c 	r = (ctx->getC) (ctx);
ctx                85 ext/gd/libgd/gd_io.c int gdGetWord (int *result, gdIOCtx * ctx)
ctx                88 ext/gd/libgd/gd_io.c 	r = (ctx->getC) (ctx);
ctx                91 ext/gd/libgd/gd_io.c 	r = (ctx->getC) (ctx);
ctx                98 ext/gd/libgd/gd_io.c int gdGetInt (int *result, gdIOCtx * ctx)
ctx               101 ext/gd/libgd/gd_io.c 	r = (ctx->getC) (ctx);
ctx               105 ext/gd/libgd/gd_io.c 	r = (ctx->getC) (ctx);
ctx               109 ext/gd/libgd/gd_io.c 	r = (ctx->getC) (ctx);
ctx               115 ext/gd/libgd/gd_io.c 	r = (ctx->getC) (ctx);
ctx               122 ext/gd/libgd/gd_io.c int gdPutBuf (const void *buf, int size, gdIOCtx * ctx)
ctx               125 ext/gd/libgd/gd_io.c 	return (ctx->putBuf) (ctx, buf, size);
ctx               129 ext/gd/libgd/gd_io.c int gdGetBuf (void *buf, int size, gdIOCtx * ctx)
ctx               131 ext/gd/libgd/gd_io.c 	return (ctx->getBuf) (ctx, buf, size);
ctx               134 ext/gd/libgd/gd_io.c int gdSeek (gdIOCtx * ctx, const int pos)
ctx               137 ext/gd/libgd/gd_io.c 	return ((ctx->seek) (ctx, pos));
ctx               141 ext/gd/libgd/gd_io.c long gdTell (gdIOCtx * ctx)
ctx               144 ext/gd/libgd/gd_io.c 	return ((ctx->tell) (ctx));
ctx                27 ext/gd/libgd/gd_io.h void Putword(int w, gdIOCtx *ctx);
ctx                28 ext/gd/libgd/gd_io.h void Putchar(int c, gdIOCtx *ctx);
ctx                30 ext/gd/libgd/gd_io.h void gdPutC(const unsigned char c, gdIOCtx *ctx);
ctx                32 ext/gd/libgd/gd_io.h void gdPutWord(int w, gdIOCtx *ctx);
ctx                33 ext/gd/libgd/gd_io.h void gdPutInt(int w, gdIOCtx *ctx);
ctx                35 ext/gd/libgd/gd_io.h int gdGetC(gdIOCtx *ctx);
ctx                37 ext/gd/libgd/gd_io.h int gdGetByte(int *result, gdIOCtx *ctx);
ctx                38 ext/gd/libgd/gd_io.h int gdGetWord(int *result, gdIOCtx *ctx);
ctx                39 ext/gd/libgd/gd_io.h int gdGetInt(int *result, gdIOCtx *ctx);
ctx                41 ext/gd/libgd/gd_io.h int gdSeek(gdIOCtx *ctx, const int);
ctx                42 ext/gd/libgd/gd_io.h long gdTell(gdIOCtx *ctx);
ctx                41 ext/gd/libgd/gd_io_dp.c 	gdIOCtx ctx;
ctx                52 ext/gd/libgd/gd_io_dp.c static void gdFreeDynamicCtx (struct gdIOCtx *ctx);
ctx                58 ext/gd/libgd/gd_io_dp.c static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len);
ctx                59 ext/gd/libgd/gd_io_dp.c static int dynamicGetchar (gdIOCtxPtr ctx);
ctx                72 ext/gd/libgd/gd_io_dp.c 	dpIOCtx *ctx;
ctx                75 ext/gd/libgd/gd_io_dp.c 	ctx = (dpIOCtx *) gdMalloc (sizeof (dpIOCtx));
ctx                79 ext/gd/libgd/gd_io_dp.c 	ctx->dp = dp;
ctx                81 ext/gd/libgd/gd_io_dp.c 	ctx->ctx.getC = dynamicGetchar;
ctx                82 ext/gd/libgd/gd_io_dp.c 	ctx->ctx.putC = dynamicPutchar;
ctx                84 ext/gd/libgd/gd_io_dp.c 	ctx->ctx.getBuf = dynamicGetbuf;
ctx                85 ext/gd/libgd/gd_io_dp.c 	ctx->ctx.putBuf = dynamicPutbuf;
ctx                87 ext/gd/libgd/gd_io_dp.c 	ctx->ctx.seek = dynamicSeek;
ctx                88 ext/gd/libgd/gd_io_dp.c 	ctx->ctx.tell = dynamicTell;
ctx                90 ext/gd/libgd/gd_io_dp.c 	ctx->ctx.gd_free = gdFreeDynamicCtx;
ctx                92 ext/gd/libgd/gd_io_dp.c 	return (gdIOCtx *) ctx;
ctx                95 ext/gd/libgd/gd_io_dp.c void * gdDPExtractData (struct gdIOCtx *ctx, int *size)
ctx               101 ext/gd/libgd/gd_io_dp.c 	dctx = (dpIOCtx *) ctx;
ctx               124 ext/gd/libgd/gd_io_dp.c static void gdFreeDynamicCtx (struct gdIOCtx *ctx)
ctx               129 ext/gd/libgd/gd_io_dp.c 	dctx = (dpIOCtx *) ctx;
ctx               132 ext/gd/libgd/gd_io_dp.c 	gdFree(ctx);
ctx               140 ext/gd/libgd/gd_io_dp.c static long dynamicTell (struct gdIOCtx *ctx)
ctx               144 ext/gd/libgd/gd_io_dp.c 	dctx = (dpIOCtx *) ctx;
ctx               149 ext/gd/libgd/gd_io_dp.c static int dynamicSeek (struct gdIOCtx *ctx, const int pos)
ctx               155 ext/gd/libgd/gd_io_dp.c 	dctx = (dpIOCtx *) ctx;
ctx               198 ext/gd/libgd/gd_io_dp.c dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size)
ctx               201 ext/gd/libgd/gd_io_dp.c   dctx = (dpIOCtx *) ctx;
ctx               216 ext/gd/libgd/gd_io_dp.c static void dynamicPutchar (struct gdIOCtx *ctx, int a)
ctx               222 ext/gd/libgd/gd_io_dp.c 	dctx = (dpIOCtxPtr) ctx;
ctx               227 ext/gd/libgd/gd_io_dp.c static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len)
ctx               233 ext/gd/libgd/gd_io_dp.c 	dctx = (dpIOCtxPtr) ctx;
ctx               252 ext/gd/libgd/gd_io_dp.c static int dynamicGetchar (gdIOCtxPtr ctx)
ctx               257 ext/gd/libgd/gd_io_dp.c 	rv = dynamicGetbuf (ctx, &b, 1);
ctx                33 ext/gd/libgd/gd_io_file.c 	gdIOCtx ctx;
ctx                42 ext/gd/libgd/gd_io_file.c static int fileGetchar (gdIOCtx * ctx);
ctx                46 ext/gd/libgd/gd_io_file.c static void gdFreeFileCtx (gdIOCtx * ctx);
ctx                51 ext/gd/libgd/gd_io_file.c 	fileIOCtx *ctx;
ctx                53 ext/gd/libgd/gd_io_file.c 	ctx = (fileIOCtx *) gdMalloc(sizeof (fileIOCtx));
ctx                55 ext/gd/libgd/gd_io_file.c 	ctx->f = f;
ctx                57 ext/gd/libgd/gd_io_file.c 	ctx->ctx.getC = fileGetchar;
ctx                58 ext/gd/libgd/gd_io_file.c 	ctx->ctx.putC = filePutchar;
ctx                60 ext/gd/libgd/gd_io_file.c 	ctx->ctx.getBuf = fileGetbuf;
ctx                61 ext/gd/libgd/gd_io_file.c 	ctx->ctx.putBuf = filePutbuf;
ctx                63 ext/gd/libgd/gd_io_file.c 	ctx->ctx.tell = fileTell;
ctx                64 ext/gd/libgd/gd_io_file.c 	ctx->ctx.seek = fileSeek;
ctx                66 ext/gd/libgd/gd_io_file.c 	ctx->ctx.gd_free = gdFreeFileCtx;
ctx                68 ext/gd/libgd/gd_io_file.c 	return (gdIOCtx *) ctx;
ctx                71 ext/gd/libgd/gd_io_file.c static void gdFreeFileCtx (gdIOCtx * ctx)
ctx                73 ext/gd/libgd/gd_io_file.c 	gdFree(ctx);
ctx                77 ext/gd/libgd/gd_io_file.c static int filePutbuf (gdIOCtx * ctx, const void *buf, int size)
ctx                80 ext/gd/libgd/gd_io_file.c 	fctx = (fileIOCtx *) ctx;
ctx                86 ext/gd/libgd/gd_io_file.c static int fileGetbuf (gdIOCtx * ctx, void *buf, int size)
ctx                89 ext/gd/libgd/gd_io_file.c 	fctx = (fileIOCtx *) ctx;
ctx                94 ext/gd/libgd/gd_io_file.c static void filePutchar (gdIOCtx * ctx, int a)
ctx                98 ext/gd/libgd/gd_io_file.c 	fctx = (fileIOCtx *) ctx;
ctx               105 ext/gd/libgd/gd_io_file.c static int fileGetchar (gdIOCtx * ctx)
ctx               108 ext/gd/libgd/gd_io_file.c 	fctx = (fileIOCtx *) ctx;
ctx               114 ext/gd/libgd/gd_io_file.c static int fileSeek (struct gdIOCtx *ctx, const int pos)
ctx               117 ext/gd/libgd/gd_io_file.c 	fctx = (fileIOCtx *) ctx;
ctx               122 ext/gd/libgd/gd_io_file.c static long fileTell (struct gdIOCtx *ctx)
ctx               125 ext/gd/libgd/gd_io_file.c 	fctx = (fileIOCtx *) ctx;
ctx                34 ext/gd/libgd/gd_io_ss.c 	gdIOCtx ctx;
ctx                44 ext/gd/libgd/gd_io_ss.c static int sourceGetchar (gdIOCtx * ctx);
ctx                45 ext/gd/libgd/gd_io_ss.c static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
ctx                46 ext/gd/libgd/gd_io_ss.c static void sinkPutchar (gdIOCtx * ctx, int a);
ctx                47 ext/gd/libgd/gd_io_ss.c static void gdFreeSsCtx (gdIOCtx * ctx);
ctx                52 ext/gd/libgd/gd_io_ss.c 	ssIOCtxPtr ctx;
ctx                54 ext/gd/libgd/gd_io_ss.c 	ctx = (ssIOCtxPtr) gdMalloc (sizeof (ssIOCtx));
ctx                56 ext/gd/libgd/gd_io_ss.c 	ctx->src = src;
ctx                57 ext/gd/libgd/gd_io_ss.c 	ctx->snk = snk;
ctx                59 ext/gd/libgd/gd_io_ss.c 	ctx->ctx.getC = sourceGetchar;
ctx                60 ext/gd/libgd/gd_io_ss.c 	ctx->ctx.getBuf = sourceGetbuf;
ctx                62 ext/gd/libgd/gd_io_ss.c 	ctx->ctx.putC = sinkPutchar;
ctx                63 ext/gd/libgd/gd_io_ss.c 	ctx->ctx.putBuf = sinkPutbuf;
ctx                65 ext/gd/libgd/gd_io_ss.c 	ctx->ctx.tell = NULL;
ctx                66 ext/gd/libgd/gd_io_ss.c 	ctx->ctx.seek = NULL;
ctx                68 ext/gd/libgd/gd_io_ss.c 	ctx->ctx.gd_free = gdFreeSsCtx;
ctx                70 ext/gd/libgd/gd_io_ss.c 	return (gdIOCtx *) ctx;
ctx                73 ext/gd/libgd/gd_io_ss.c static void gdFreeSsCtx (gdIOCtx * ctx)
ctx                75 ext/gd/libgd/gd_io_ss.c 	gdFree(ctx);
ctx                79 ext/gd/libgd/gd_io_ss.c static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size)
ctx                84 ext/gd/libgd/gd_io_ss.c 	lctx = (ssIOCtx *) ctx;
ctx               102 ext/gd/libgd/gd_io_ss.c static int sourceGetchar (gdIOCtx * ctx)
ctx               107 ext/gd/libgd/gd_io_ss.c 	res = sourceGetbuf (ctx, &buf, 1);
ctx               116 ext/gd/libgd/gd_io_ss.c static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size)
ctx               121 ext/gd/libgd/gd_io_ss.c 	lctx = (ssIOCtx *) ctx;
ctx               132 ext/gd/libgd/gd_io_ss.c static void sinkPutchar (gdIOCtx * ctx, int a)
ctx               137 ext/gd/libgd/gd_io_ss.c 	sinkPutbuf (ctx, &b, 1);
ctx                26 ext/gd/libgd/gdtest.c   gdIOCtxPtr ctx;
ctx                79 ext/gd/libgd/gdtest.c   ctx = gdNewDynamicCtx (sz, iptr);
ctx                80 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromPngCtx (ctx);
ctx                85 ext/gd/libgd/gdtest.c   ctx->gd_free (ctx);
ctx               112 ext/gd/libgd/gdtest.c   ctx = gdNewDynamicCtx (sz, iptr);
ctx               114 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromGd2Ctx (ctx);
ctx               120 ext/gd/libgd/gdtest.c   ctx->gd_free (ctx);
ctx               147 ext/gd/libgd/gdtest.c   ctx = gdNewDynamicCtx (sz, iptr);
ctx               149 ext/gd/libgd/gdtest.c   im2 = gdImageCreateFromGdCtx (ctx);
ctx               155 ext/gd/libgd/gdtest.c   ctx->gd_free (ctx);
ctx               531 ext/ldap/ldap.c 	php_ldap_bictx *ctx;
ctx               533 ext/ldap/ldap.c 	ctx = ber_memalloc(sizeof(php_ldap_bictx));
ctx               534 ext/ldap/ldap.c 	ctx->mech    = (sasl_mech) ? ber_strdup(sasl_mech) : NULL;
ctx               535 ext/ldap/ldap.c 	ctx->realm   = (sasl_realm) ? ber_strdup(sasl_realm) : NULL;
ctx               536 ext/ldap/ldap.c 	ctx->authcid = (sasl_authc_id) ? ber_strdup(sasl_authc_id) : NULL;
ctx               537 ext/ldap/ldap.c 	ctx->passwd  = (passwd) ? ber_strdup(passwd) : NULL;
ctx               538 ext/ldap/ldap.c 	ctx->authzid = (sasl_authz_id) ? ber_strdup(sasl_authz_id) : NULL;
ctx               540 ext/ldap/ldap.c 	if (ctx->mech == NULL) {
ctx               541 ext/ldap/ldap.c 		ldap_get_option(ld, LDAP_OPT_X_SASL_MECH, &ctx->mech);
ctx               543 ext/ldap/ldap.c 	if (ctx->realm == NULL) {
ctx               544 ext/ldap/ldap.c 		ldap_get_option(ld, LDAP_OPT_X_SASL_REALM, &ctx->realm);
ctx               546 ext/ldap/ldap.c 	if (ctx->authcid == NULL) {
ctx               547 ext/ldap/ldap.c 		ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHCID, &ctx->authcid);
ctx               549 ext/ldap/ldap.c 	if (ctx->authzid == NULL) {
ctx               550 ext/ldap/ldap.c 		ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHZID, &ctx->authzid);
ctx               553 ext/ldap/ldap.c 	return ctx;
ctx               559 ext/ldap/ldap.c static void _php_sasl_freedefs(php_ldap_bictx *ctx)
ctx               561 ext/ldap/ldap.c 	if (ctx->mech) ber_memfree(ctx->mech);
ctx               562 ext/ldap/ldap.c 	if (ctx->realm) ber_memfree(ctx->realm);
ctx               563 ext/ldap/ldap.c 	if (ctx->authcid) ber_memfree(ctx->authcid);
ctx               564 ext/ldap/ldap.c 	if (ctx->passwd) ber_memfree(ctx->passwd);
ctx               565 ext/ldap/ldap.c 	if (ctx->authzid) ber_memfree(ctx->authzid);
ctx               566 ext/ldap/ldap.c 	ber_memfree(ctx);
ctx               576 ext/ldap/ldap.c 	php_ldap_bictx *ctx = defaults;
ctx               582 ext/ldap/ldap.c 				p = ctx->realm;
ctx               585 ext/ldap/ldap.c 				p = ctx->authcid;
ctx               588 ext/ldap/ldap.c 				p = ctx->authzid;
ctx               591 ext/ldap/ldap.c 				p = ctx->passwd;
ctx               617 ext/ldap/ldap.c 	php_ldap_bictx *ctx;
ctx               627 ext/ldap/ldap.c 	ctx = _php_sasl_setdefs(ld->link, sasl_mech, sasl_realm, sasl_authc_id, passwd, sasl_authz_id);
ctx               633 ext/ldap/ldap.c 	rc = ldap_sasl_interactive_bind_s(ld->link, binddn, ctx->mech, NULL, NULL, LDAP_SASL_QUIET, _php_sasl_interact, ctx);
ctx               640 ext/ldap/ldap.c 	_php_sasl_freedefs(ctx);
ctx               512 ext/libxml/libxml.c static void php_libxml_ctx_error_level(int level, void *ctx, const char *msg)
ctx               516 ext/libxml/libxml.c 	parser = (xmlParserCtxtPtr) ctx;
ctx               536 ext/libxml/libxml.c static void php_libxml_internal_error_handler(int error_type, void *ctx, const char **msg, va_list ap)
ctx               561 ext/libxml/libxml.c 					php_libxml_ctx_error_level(E_WARNING, ctx, ZSTR_VAL(LIBXML(error_buffer).s));
ctx               564 ext/libxml/libxml.c 					php_libxml_ctx_error_level(E_NOTICE, ctx, ZSTR_VAL(LIBXML(error_buffer).s));
ctx               715 ext/libxml/libxml.c PHP_LIBXML_API void php_libxml_ctx_error(void *ctx, const char *msg, ...)
ctx               719 ext/libxml/libxml.c 	php_libxml_internal_error_handler(PHP_LIBXML_CTX_ERROR, ctx, &msg, args);
ctx               723 ext/libxml/libxml.c PHP_LIBXML_API void php_libxml_ctx_warning(void *ctx, const char *msg, ...)
ctx               727 ext/libxml/libxml.c 	php_libxml_internal_error_handler(PHP_LIBXML_CTX_WARNING, ctx, &msg, args);
ctx               738 ext/libxml/libxml.c PHP_LIBXML_API void php_libxml_error_handler(void *ctx, const char *msg, ...)
ctx               742 ext/libxml/libxml.c 	php_libxml_internal_error_handler(PHP_LIBXML_ERROR, ctx, &msg, args);
ctx               106 ext/libxml/php_libxml.h PHP_LIBXML_API void php_libxml_error_handler(void *ctx, const char *msg, ...);
ctx               107 ext/libxml/php_libxml.h PHP_LIBXML_API void php_libxml_ctx_warning(void *ctx, const char *msg, ...);
ctx               108 ext/libxml/php_libxml.h PHP_LIBXML_API void php_libxml_ctx_error(void *ctx, const char *msg, ...);
ctx               570 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	mbfl_filt_conv_wchar_cp50220_ctx *ctx;
ctx               574 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	ctx = mbfl_malloc(sizeof(mbfl_filt_conv_wchar_cp50220_ctx));
ctx               575 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	if (ctx == NULL) {
ctx               580 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	ctx->tl_param.mode = MBFL_FILT_TL_HAN2ZEN_KATAKANA | MBFL_FILT_TL_HAN2ZEN_GLUE;
ctx               582 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	ctx->last = *filt;
ctx               583 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	ctx->last.opaque = ctx;
ctx               584 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	ctx->last.data = filt->data;
ctx               587 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	filt->output_function = (int(*)(int, void *))ctx->last.filter_function;
ctx               588 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	filt->flush_function = (int(*)(void *))ctx->last.filter_flush;
ctx               589 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	filt->data = &ctx->last;
ctx               590 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	filt->opaque = ctx;
ctx               597 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	mbfl_filt_conv_wchar_cp50220_ctx *ctx;
ctx               600 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	ctx = mbfl_malloc(sizeof(mbfl_filt_conv_wchar_cp50220_ctx));
ctx               601 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	if (ctx != NULL) {
ctx               602 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 		*ctx = *(mbfl_filt_conv_wchar_cp50220_ctx*)src->opaque;
ctx               605 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	dest->opaque = ctx;
ctx               606 ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c 	dest->data = &ctx->last;
ctx               172 ext/oci8/oci8_lob.c 	php_oci_lob_ctx *ctx = (php_oci_lob_ctx *)ctxp;
ctx               177 ext/oci8/oci8_lob.c 			if ((*(ctx->lob_len) + lenp) > (ctx->alloc_len)) {
ctx               179 ext/oci8/oci8_lob.c 				*(ctx->lob_data) = NULL;
ctx               180 ext/oci8/oci8_lob.c 				*(ctx->lob_len) = 0;
ctx               183 ext/oci8/oci8_lob.c 			memcpy(*(ctx->lob_data) + *(ctx->lob_len), bufxp, (size_t) lenp);
ctx               184 ext/oci8/oci8_lob.c 			*(ctx->lob_len) += lenp;
ctx               185 ext/oci8/oci8_lob.c 			*(*(ctx->lob_data) + *(ctx->lob_len)) = 0x00;
ctx               190 ext/oci8/oci8_lob.c 			if ((*(ctx->lob_len) + lenp) > ctx->alloc_len) {
ctx               192 ext/oci8/oci8_lob.c 				*(ctx->lob_data) = NULL;
ctx               193 ext/oci8/oci8_lob.c 				*(ctx->lob_len) = 0;
ctx               196 ext/oci8/oci8_lob.c 			memcpy(*(ctx->lob_data) + *(ctx->lob_len), bufxp, (size_t) lenp);
ctx               197 ext/oci8/oci8_lob.c 			*(ctx->lob_len) += lenp;
ctx               202 ext/oci8/oci8_lob.c 			*(ctx->lob_data) = NULL;
ctx               203 ext/oci8/oci8_lob.c 			*(ctx->lob_len) = 0;
ctx               248 ext/oci8/oci8_lob.c 	php_oci_lob_ctx ctx;
ctx               260 ext/oci8/oci8_lob.c 	ctx.lob_len = data_len;
ctx               261 ext/oci8/oci8_lob.c 	ctx.lob_data = data;
ctx               262 ext/oci8/oci8_lob.c 	ctx.alloc_len = 0;
ctx               327 ext/oci8/oci8_lob.c 	ctx.alloc_len = ((ub4) requested_len + 1) * bytes_per_char;
ctx               353 ext/oci8/oci8_lob.c 			(dvoid *)&ctx,
ctx               411 ext/oci8/oci8_statement.c sb4 php_oci_define_callback(dvoid *ctx, OCIDefine *define, ub4 iter, dvoid **bufpp, ub4 **alenpp, ub1 *piecep, dvoid **indpp, ub2 **rcpp)
ctx               413 ext/oci8/oci8_statement.c 	php_oci_out_column *outcol = (php_oci_out_column *)ctx;
ctx               113 ext/opcache/Optimizer/block_pass.c static int find_code_blocks(zend_op_array *op_array, zend_cfg *cfg, zend_optimizer_ctx *ctx)
ctx               121 ext/opcache/Optimizer/block_pass.c 	blocks = cfg->blocks = zend_arena_calloc(&ctx->arena, op_array->last + 2, sizeof(zend_code_block));
ctx               187 ext/opcache/Optimizer/block_pass.c 		cfg->try = zend_arena_calloc(&ctx->arena, op_array->last_try_catch, sizeof(zend_code_block *));
ctx               188 ext/opcache/Optimizer/block_pass.c 		cfg->catch = zend_arena_calloc(&ctx->arena, op_array->last_try_catch, sizeof(zend_code_block *));
ctx               225 ext/opcache/Optimizer/block_pass.c 			cfg->loop_start = zend_arena_calloc(&ctx->arena, op_array->last_brk_cont, sizeof(zend_code_block *));
ctx               226 ext/opcache/Optimizer/block_pass.c 			cfg->loop_cont  = zend_arena_calloc(&ctx->arena, op_array->last_brk_cont, sizeof(zend_code_block *));
ctx               227 ext/opcache/Optimizer/block_pass.c 			cfg->loop_brk   = zend_arena_calloc(&ctx->arena, op_array->last_brk_cont, sizeof(zend_code_block *));
ctx               342 ext/opcache/Optimizer/block_pass.c 		zend_block_source *__t = zend_arena_alloc(&ctx->arena, sizeof(zend_block_source)); \
ctx               449 ext/opcache/Optimizer/block_pass.c static void delete_code_block(zend_code_block *block, zend_optimizer_ctx *ctx)
ctx               481 ext/opcache/Optimizer/block_pass.c static void zend_access_path(zend_code_block *block, zend_optimizer_ctx *ctx)
ctx               489 ext/opcache/Optimizer/block_pass.c 		zend_access_path(block->op1_to, ctx);
ctx               493 ext/opcache/Optimizer/block_pass.c 		zend_access_path(block->op2_to, ctx);
ctx               497 ext/opcache/Optimizer/block_pass.c 		zend_access_path(block->ext_to, ctx);
ctx               501 ext/opcache/Optimizer/block_pass.c 		zend_access_path(block->follow_to, ctx);
ctx               507 ext/opcache/Optimizer/block_pass.c static void zend_rebuild_access_path(zend_cfg *cfg, zend_op_array *op_array, int find_start, zend_optimizer_ctx *ctx)
ctx               525 ext/opcache/Optimizer/block_pass.c 	zend_access_path(start, ctx);
ctx               531 ext/opcache/Optimizer/block_pass.c 			zend_access_path(cfg->loop_start[i], ctx);
ctx               532 ext/opcache/Optimizer/block_pass.c 			zend_access_path(cfg->loop_cont[i], ctx);
ctx               533 ext/opcache/Optimizer/block_pass.c 			zend_access_path(cfg->loop_brk[i], ctx);
ctx               542 ext/opcache/Optimizer/block_pass.c 				zend_access_path(cfg->catch[i], ctx);
ctx               564 ext/opcache/Optimizer/block_pass.c static void strip_nop(zend_code_block *block, zend_optimizer_ctx *ctx)
ctx               574 ext/opcache/Optimizer/block_pass.c 				delete_code_block(block, ctx);
ctx               609 ext/opcache/Optimizer/block_pass.c static void zend_optimize_block(zend_code_block *block, zend_op_array *op_array, zend_bitset used_ext, zend_cfg *cfg, zend_optimizer_ctx *ctx)
ctx               622 ext/opcache/Optimizer/block_pass.c 				delete_code_block(block, ctx);
ctx              1135 ext/opcache/Optimizer/block_pass.c 	strip_nop(block, ctx);
ctx              1249 ext/opcache/Optimizer/block_pass.c static void zend_jmp_optimization(zend_code_block *block, zend_op_array *op_array, zend_code_block *blocks, zend_cfg *cfg, zend_optimizer_ctx *ctx)
ctx              1276 ext/opcache/Optimizer/block_pass.c 						delete_code_block(block, ctx);
ctx              1368 ext/opcache/Optimizer/block_pass.c 								delete_code_block(block, ctx);
ctx              1787 ext/opcache/Optimizer/block_pass.c static void zend_t_usage(zend_code_block *block, zend_op_array *op_array, zend_bitset used_ext, zend_optimizer_ctx *ctx)
ctx              1800 ext/opcache/Optimizer/block_pass.c 	checkpoint = zend_arena_checkpoint(ctx->arena);
ctx              1802 ext/opcache/Optimizer/block_pass.c 	usage = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE);
ctx              1804 ext/opcache/Optimizer/block_pass.c 	defined_here = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE);
ctx              1934 ext/opcache/Optimizer/block_pass.c 	zend_arena_release(&ctx->arena, checkpoint);
ctx              1939 ext/opcache/Optimizer/block_pass.c void optimize_cfg(zend_op_array *op_array, zend_optimizer_ctx *ctx)
ctx              1958 ext/opcache/Optimizer/block_pass.c 	checkpoint = zend_arena_checkpoint(ctx->arena);
ctx              1959 ext/opcache/Optimizer/block_pass.c 	if (!find_code_blocks(op_array, &cfg, ctx)) {
ctx              1960 ext/opcache/Optimizer/block_pass.c 		zend_arena_release(&ctx->arena, checkpoint);
ctx              1964 ext/opcache/Optimizer/block_pass.c 	zend_rebuild_access_path(&cfg, op_array, 0, ctx);
ctx              1968 ext/opcache/Optimizer/block_pass.c 		cfg.Tsource = zend_arena_calloc(&ctx->arena, op_array->last_var + op_array->T, sizeof(zend_op *));
ctx              1969 ext/opcache/Optimizer/block_pass.c 		cfg.same_t = zend_arena_alloc(&ctx->arena, op_array->last_var + op_array->T);
ctx              1970 ext/opcache/Optimizer/block_pass.c 		usage = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE);
ctx              1980 ext/opcache/Optimizer/block_pass.c 		zend_t_usage(cfg.blocks, op_array, usage, ctx);
ctx              1987 ext/opcache/Optimizer/block_pass.c 			zend_optimize_block(cur_block, op_array, usage, &cfg, ctx);
ctx              1995 ext/opcache/Optimizer/block_pass.c 			zend_jmp_optimization(cur_block, op_array, cfg.blocks, &cfg, ctx);
ctx              1999 ext/opcache/Optimizer/block_pass.c 		zend_rebuild_access_path(&cfg, op_array, 1, ctx);
ctx              2003 ext/opcache/Optimizer/block_pass.c 	zend_t_usage(cfg.blocks, op_array, usage, ctx);
ctx              2007 ext/opcache/Optimizer/block_pass.c 	zend_arena_release(&ctx->arena, checkpoint);
ctx               117 ext/opcache/Optimizer/compact_literals.c void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx *ctx)
ctx               128 ext/opcache/Optimizer/compact_literals.c 	void *checkpoint = zend_arena_checkpoint(ctx->arena);
ctx               132 ext/opcache/Optimizer/compact_literals.c 		info = (literal_info*)zend_arena_calloc(&ctx->arena, op_array->last_literal, sizeof(literal_info));
ctx               340 ext/opcache/Optimizer/compact_literals.c 		map = (int*)zend_arena_alloc(&ctx->arena, op_array->last_literal * sizeof(int));
ctx               510 ext/opcache/Optimizer/compact_literals.c 		zend_arena_release(&ctx->arena, checkpoint);
ctx                41 ext/opcache/Optimizer/optimize_func_calls.c void optimize_func_calls(zend_op_array *op_array, zend_optimizer_ctx *ctx)
ctx                53 ext/opcache/Optimizer/optimize_func_calls.c 	checkpoint = zend_arena_checkpoint(ctx->arena);
ctx                54 ext/opcache/Optimizer/optimize_func_calls.c 	call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info));
ctx                62 ext/opcache/Optimizer/optimize_func_calls.c 					if ((func = zend_hash_find_ptr(&ctx->script->function_table,
ctx               167 ext/opcache/Optimizer/optimize_func_calls.c 	zend_arena_release(&ctx->arena, checkpoint);
ctx                42 ext/opcache/Optimizer/optimize_temp_vars_5.c void optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *ctx)
ctx                56 ext/opcache/Optimizer/optimize_temp_vars_5.c 	void *checkpoint = zend_arena_checkpoint(ctx->arena);
ctx                59 ext/opcache/Optimizer/optimize_temp_vars_5.c 	taken_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE);
ctx                60 ext/opcache/Optimizer/optimize_temp_vars_5.c 	start_of_T = (zend_op **) zend_arena_alloc(&ctx->arena, T * sizeof(zend_op *));
ctx                61 ext/opcache/Optimizer/optimize_temp_vars_5.c 	valid_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE);
ctx                62 ext/opcache/Optimizer/optimize_temp_vars_5.c 	map_T = (int *) zend_arena_alloc(&ctx->arena, T * sizeof(int));
ctx               227 ext/opcache/Optimizer/optimize_temp_vars_5.c 	zend_arena_release(&ctx->arena, checkpoint);
ctx                40 ext/opcache/Optimizer/pass1_5.c void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx)
ctx                46 ext/opcache/Optimizer/pass1_5.c 		(op_array == &ctx->script->main_op_array) : 0;
ctx               276 ext/opcache/Optimizer/pass1_5.c 					if (!ctx->constants || !zend_optimizer_get_collected_constant(ctx->constants, &ZEND_OP2_LITERAL(opline), &c)) {
ctx               405 ext/opcache/Optimizer/pass1_5.c 						zend_optimizer_collect_constant(ctx, &ZEND_OP1_LITERAL(send1_opline), &ZEND_OP1_LITERAL(send2_opline));
ctx               619 ext/opcache/Optimizer/pass1_5.c 				zend_optimizer_collect_constant(ctx, &ZEND_OP1_LITERAL(opline), &ZEND_OP2_LITERAL(opline));
ctx                35 ext/opcache/Optimizer/zend_optimizer.c void zend_optimizer_collect_constant(zend_optimizer_ctx *ctx, zval *name, zval* value)
ctx                39 ext/opcache/Optimizer/zend_optimizer.c 	if (!ctx->constants) {
ctx                40 ext/opcache/Optimizer/zend_optimizer.c 		ctx->constants = zend_arena_alloc(&ctx->arena, sizeof(HashTable));
ctx                41 ext/opcache/Optimizer/zend_optimizer.c 		zend_hash_init(ctx->constants, 16, NULL, zend_optimizer_zval_dtor_wrapper, 0);
ctx                44 ext/opcache/Optimizer/zend_optimizer.c 	zend_hash_add(ctx->constants, Z_STR_P(name), &val);
ctx               486 ext/opcache/Optimizer/zend_optimizer.c                           zend_optimizer_ctx *ctx)
ctx               499 ext/opcache/Optimizer/zend_optimizer.c 		zend_optimizer_pass1(op_array, ctx);
ctx               525 ext/opcache/Optimizer/zend_optimizer.c 		optimize_func_calls(op_array, ctx);
ctx               532 ext/opcache/Optimizer/zend_optimizer.c 		optimize_cfg(op_array, ctx);
ctx               539 ext/opcache/Optimizer/zend_optimizer.c 		optimize_temporary_variables(op_array, ctx);
ctx               553 ext/opcache/Optimizer/zend_optimizer.c 		zend_optimizer_compact_literals(op_array, ctx);
ctx               558 ext/opcache/Optimizer/zend_optimizer.c                                 zend_optimizer_ctx *ctx)
ctx               604 ext/opcache/Optimizer/zend_optimizer.c 	zend_optimize(op_array, ctx);
ctx               649 ext/opcache/Optimizer/zend_optimizer.c static void zend_accel_adjust_fcall_stack_size(zend_op_array *op_array, zend_optimizer_ctx *ctx)
ctx               659 ext/opcache/Optimizer/zend_optimizer.c 				&ctx->script->function_table,
ctx               675 ext/opcache/Optimizer/zend_optimizer.c 	zend_optimizer_ctx ctx;
ctx               677 ext/opcache/Optimizer/zend_optimizer.c 	ctx.arena = zend_arena_create(64 * 1024);
ctx               678 ext/opcache/Optimizer/zend_optimizer.c 	ctx.script = script;
ctx               679 ext/opcache/Optimizer/zend_optimizer.c 	ctx.constants = NULL;
ctx               681 ext/opcache/Optimizer/zend_optimizer.c 	zend_accel_optimize(&script->main_op_array, &ctx);
ctx               687 ext/opcache/Optimizer/zend_optimizer.c 		zend_accel_optimize(op_array, &ctx);
ctx               699 ext/opcache/Optimizer/zend_optimizer.c 				zend_accel_optimize(op_array, &ctx);
ctx               712 ext/opcache/Optimizer/zend_optimizer.c 		zend_accel_adjust_fcall_stack_size(&script->main_op_array, &ctx);
ctx               718 ext/opcache/Optimizer/zend_optimizer.c 			zend_accel_adjust_fcall_stack_size(op_array, &ctx);
ctx               730 ext/opcache/Optimizer/zend_optimizer.c 					zend_accel_adjust_fcall_stack_size(op_array, &ctx);
ctx               743 ext/opcache/Optimizer/zend_optimizer.c 	if (ctx.constants) {
ctx               744 ext/opcache/Optimizer/zend_optimizer.c 		zend_hash_destroy(ctx.constants);
ctx               746 ext/opcache/Optimizer/zend_optimizer.c 	zend_arena_destroy(ctx.arena);
ctx               118 ext/opcache/Optimizer/zend_optimizer_internal.h void zend_optimizer_collect_constant(zend_optimizer_ctx *ctx, zval *name, zval* value);
ctx               133 ext/opcache/Optimizer/zend_optimizer_internal.h void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx);
ctx               136 ext/opcache/Optimizer/zend_optimizer_internal.h void optimize_func_calls(zend_op_array *op_array, zend_optimizer_ctx *ctx);
ctx               137 ext/opcache/Optimizer/zend_optimizer_internal.h void optimize_cfg(zend_op_array *op_array, zend_optimizer_ctx *ctx);
ctx               138 ext/opcache/Optimizer/zend_optimizer_internal.h void optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *ctx);
ctx               140 ext/opcache/Optimizer/zend_optimizer_internal.h void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx *ctx);
ctx               817 ext/openssl/openssl.c 	X509V3_CTX ctx;
ctx               819 ext/openssl/openssl.c 	X509V3_set_ctx_test(&ctx);
ctx               820 ext/openssl/openssl.c 	X509V3_set_conf_lhash(&ctx, config);
ctx               821 ext/openssl/openssl.c 	if (!X509V3_EXT_add_conf(config, &ctx, (char *)section, NULL)) {
ctx              2159 ext/openssl/openssl.c static int check_cert(X509_STORE *ctx, X509 *x, STACK_OF(X509) *untrustedchain, int purpose)
ctx              2169 ext/openssl/openssl.c 	X509_STORE_CTX_init(csc, ctx, x, untrustedchain);
ctx              3033 ext/openssl/openssl.c 		X509V3_CTX ctx;
ctx              3035 ext/openssl/openssl.c 		X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0);
ctx              3036 ext/openssl/openssl.c 		X509V3_set_conf_lhash(&ctx, req.req_config);
ctx              3037 ext/openssl/openssl.c 		if (!X509V3_EXT_add_conf(req.req_config, &ctx, req.extensions_section, new_cert)) {
ctx              4907 ext/openssl/openssl.c 	EVP_CIPHER_CTX ctx;
ctx              4960 ext/openssl/openssl.c 	if (!EVP_EncryptInit(&ctx,cipher,NULL,NULL)) {
ctx              4962 ext/openssl/openssl.c 		EVP_CIPHER_CTX_cleanup(&ctx);
ctx              4967 ext/openssl/openssl.c 	buf = emalloc(data_len + EVP_CIPHER_CTX_block_size(&ctx));
ctx              4968 ext/openssl/openssl.c 	EVP_CIPHER_CTX_cleanup(&ctx);
ctx              4970 ext/openssl/openssl.c 	if (!EVP_SealInit(&ctx, cipher, eks, eksl, &iv_buf[0], pkeys, nkeys) ||
ctx              4971 ext/openssl/openssl.c 			!EVP_SealUpdate(&ctx, buf, &len1, (unsigned char *)data, (int)data_len) ||
ctx              4972 ext/openssl/openssl.c 			!EVP_SealFinal(&ctx, buf + len1, &len2)) {
ctx              4975 ext/openssl/openssl.c 		EVP_CIPHER_CTX_cleanup(&ctx);
ctx              5003 ext/openssl/openssl.c 	EVP_CIPHER_CTX_cleanup(&ctx);
ctx              5030 ext/openssl/openssl.c 	EVP_CIPHER_CTX ctx;
ctx              5081 ext/openssl/openssl.c 	if (EVP_OpenInit(&ctx, cipher, (unsigned char *)ekey, (int)ekey_len, iv_buf, pkey) &&
ctx              5082 ext/openssl/openssl.c 			EVP_OpenUpdate(&ctx, buf, &len1, (unsigned char *)data, (int)data_len)) {
ctx              5083 ext/openssl/openssl.c 		if (!EVP_OpenFinal(&ctx, buf + len1, &len2) || (len1 + len2 == 0)) {
ctx              5100 ext/openssl/openssl.c 	EVP_CIPHER_CTX_cleanup(&ctx);
ctx               120 ext/openssl/xp_ssl.c 	SSL_CTX *ctx;
ctx               147 ext/openssl/xp_ssl.c 	SSL_CTX *ctx;
ctx               271 ext/openssl/xp_ssl.c static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx) /* {{{ */
ctx               283 ext/openssl/xp_ssl.c 	err = X509_STORE_CTX_get_error(ctx);
ctx               284 ext/openssl/xp_ssl.c 	depth = X509_STORE_CTX_get_error_depth(ctx);
ctx               287 ext/openssl/xp_ssl.c 	ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
ctx               302 ext/openssl/xp_ssl.c 		X509_STORE_CTX_set_error(ctx, X509_V_ERR_CERT_CHAIN_TOO_LONG);
ctx               835 ext/openssl/xp_ssl.c static int enable_peer_verification(SSL_CTX *ctx, php_stream *stream) /* {{{ */
ctx               852 ext/openssl/xp_ssl.c 			SSL_CTX_set_client_CA_list(ctx, cert_names);
ctx               865 ext/openssl/xp_ssl.c 		if (!SSL_CTX_load_verify_locations(ctx, cafile, capath)) {
ctx               866 ext/openssl/xp_ssl.c 			if (cafile && !load_stream_cafile(SSL_CTX_get_cert_store(ctx), cafile)) {
ctx               872 ext/openssl/xp_ssl.c 		SSL_CTX_set_cert_verify_callback(ctx, win_cert_verify_callback, (void *)stream);
ctx               873 ext/openssl/xp_ssl.c 		SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);
ctx               875 ext/openssl/xp_ssl.c 		if (sslsock->is_client && !SSL_CTX_set_default_verify_paths(ctx)) {
ctx               883 ext/openssl/xp_ssl.c 	SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, verify_callback);
ctx               889 ext/openssl/xp_ssl.c static void disable_peer_verification(SSL_CTX *ctx, php_stream *stream) /* {{{ */
ctx               891 ext/openssl/xp_ssl.c 	SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL);
ctx               895 ext/openssl/xp_ssl.c static int set_local_cert(SSL_CTX *ctx, php_stream *stream) /* {{{ */
ctx               908 ext/openssl/xp_ssl.c 			if (SSL_CTX_use_certificate_chain_file(ctx, resolved_path_buff) != 1) {
ctx               917 ext/openssl/xp_ssl.c 					if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff_pk, SSL_FILETYPE_PEM) != 1) {
ctx               923 ext/openssl/xp_ssl.c 				if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff, SSL_FILETYPE_PEM) != 1) {
ctx               934 ext/openssl/xp_ssl.c 				SSL *tmpssl = SSL_new(ctx);
ctx               945 ext/openssl/xp_ssl.c 			if (!SSL_CTX_check_private_key(ctx)) {
ctx              1167 ext/openssl/xp_ssl.c static int set_server_dh_param(php_stream * stream, SSL_CTX *ctx) /* {{{ */
ctx              1179 ext/openssl/xp_ssl.c 	SSL_CTX_set_dh_auto(ctx, 1);
ctx              1200 ext/openssl/xp_ssl.c 	if (SSL_CTX_set_tmp_dh(ctx, dh) < 0) {
ctx              1214 ext/openssl/xp_ssl.c static int set_server_ecdh_curve(php_stream *stream, SSL_CTX *ctx) /* {{{ */
ctx              1223 ext/openssl/xp_ssl.c 		SSL_CTX_set_ecdh_auto(ctx, 1);
ctx              1243 ext/openssl/xp_ssl.c 	SSL_CTX_set_tmp_ecdh(ctx, ecdh);
ctx              1251 ext/openssl/xp_ssl.c static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx) /* {{{ */
ctx              1254 ext/openssl/xp_ssl.c 	long ssl_ctx_options = SSL_CTX_get_options(ctx);
ctx              1257 ext/openssl/xp_ssl.c 	if (set_server_ecdh_curve(stream, ctx) == FAILURE) {
ctx              1263 ext/openssl/xp_ssl.c 	SSL_CTX_set_tmp_rsa_callback(ctx, tmp_rsa_cb);
ctx              1271 ext/openssl/xp_ssl.c 	set_server_dh_param(stream, ctx);
ctx              1283 ext/openssl/xp_ssl.c 	SSL_CTX_set_options(ctx, ssl_ctx_options);
ctx              1312 ext/openssl/xp_ssl.c 			SSL_set_SSL_CTX(ssl_handle, sslsock->sni_certs[i].ctx);
ctx              1329 ext/openssl/xp_ssl.c 	SSL_CTX *ctx;
ctx              1373 ext/openssl/xp_ssl.c 			ctx = SSL_CTX_new(SSLv23_server_method());
ctx              1375 ext/openssl/xp_ssl.c 			if (SSL_CTX_use_certificate_chain_file(ctx, resolved_path_buff) != 1) {
ctx              1382 ext/openssl/xp_ssl.c 				SSL_CTX_free(ctx);
ctx              1384 ext/openssl/xp_ssl.c 			} else if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff, SSL_FILETYPE_PEM) != 1) {
ctx              1389 ext/openssl/xp_ssl.c 				SSL_CTX_free(ctx);
ctx              1393 ext/openssl/xp_ssl.c 				sslsock->sni_certs[i].ctx = ctx;
ctx              1405 ext/openssl/xp_ssl.c 	SSL_CTX_set_tlsext_servername_callback(sslsock->ctx, server_sni_callback);
ctx              1534 ext/openssl/xp_ssl.c 	sslsock->ctx = SSL_CTX_new(method);
ctx              1537 ext/openssl/xp_ssl.c 	sslsock->ctx = SSL_CTX_new((SSL_METHOD*)method);
ctx              1540 ext/openssl/xp_ssl.c 	if (sslsock->ctx == NULL) {
ctx              1562 ext/openssl/xp_ssl.c 		disable_peer_verification(sslsock->ctx, stream);
ctx              1563 ext/openssl/xp_ssl.c 	} else if (FAILURE == enable_peer_verification(sslsock->ctx, stream)) {
ctx              1569 ext/openssl/xp_ssl.c 		SSL_CTX_set_default_passwd_cb_userdata(sslsock->ctx, stream);
ctx              1570 ext/openssl/xp_ssl.c 		SSL_CTX_set_default_passwd_cb(sslsock->ctx, passwd_callback);
ctx              1580 ext/openssl/xp_ssl.c 		if (SSL_CTX_set_cipher_list(sslsock->ctx, cipherlist) != 1) {
ctx              1594 ext/openssl/xp_ssl.c 				SSL_CTX_free(sslsock->ctx);
ctx              1595 ext/openssl/xp_ssl.c 				sslsock->ctx = NULL;
ctx              1599 ext/openssl/xp_ssl.c 				SSL_CTX_set_alpn_protos(sslsock->ctx, alpn, alpn_len);
ctx              1604 ext/openssl/xp_ssl.c 				SSL_CTX_set_alpn_select_cb(sslsock->ctx, server_alpn_callback, sslsock);
ctx              1615 ext/openssl/xp_ssl.c 	if (FAILURE == set_local_cert(sslsock->ctx, stream)) {
ctx              1619 ext/openssl/xp_ssl.c 	SSL_CTX_set_options(sslsock->ctx, ssl_ctx_options);
ctx              1623 ext/openssl/xp_ssl.c 		FAILURE == set_server_specific_opts(stream, sslsock->ctx)
ctx              1628 ext/openssl/xp_ssl.c 	sslsock->ssl_handle = SSL_new(sslsock->ctx);
ctx              1632 ext/openssl/xp_ssl.c 		SSL_CTX_free(sslsock->ctx);
ctx              1633 ext/openssl/xp_ssl.c 		sslsock->ctx = NULL;
ctx              2135 ext/openssl/xp_ssl.c 		if (sslsock->ctx) {
ctx              2136 ext/openssl/xp_ssl.c 			SSL_CTX_free(sslsock->ctx);
ctx              2137 ext/openssl/xp_ssl.c 			sslsock->ctx = NULL;
ctx              2165 ext/openssl/xp_ssl.c 			SSL_CTX_free(sslsock->sni_certs[i].ctx);
ctx              2231 ext/openssl/xp_ssl.c 				xparam->outputs.client->ctx = stream->ctx;
ctx              2232 ext/openssl/xp_ssl.c 				if (stream->ctx) {
ctx              2233 ext/openssl/xp_ssl.c 					GC_REFCOUNT(stream->ctx)++;
ctx              2492 ext/openssl/xp_ssl.c static zend_long get_crypto_method(php_stream_context *ctx, zend_long crypto_method)
ctx              2496 ext/openssl/xp_ssl.c 	if (ctx && (val = php_stream_context_get_option(ctx, "ssl", "crypto_method")) != NULL) {
ctx              2570 ext/openssl/xp_ssl.c 	sslsock->ctx = NULL;
ctx               198 ext/pdo_oci/oci_statement.c static sb4 oci_bind_input_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, dvoid **bufpp, ub4 *alenp, ub1 *piecep, dvoid **indpp) /* {{{ */
ctx               200 ext/pdo_oci/oci_statement.c 	struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
ctx               235 ext/pdo_oci/oci_statement.c static sb4 oci_bind_output_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, dvoid **bufpp, ub4 **alenpp, ub1 *piecep, dvoid **indpp, ub2 **rcodepp) /* {{{ */
ctx               237 ext/pdo_oci/oci_statement.c 	struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
ctx                40 ext/soap/php_schema.c static int schema_attribute(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdlTypePtr cur_type, sdlCtx *ctx);
ctx                41 ext/soap/php_schema.c static int schema_attributeGroup(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdlTypePtr cur_type, sdlCtx *ctx);
ctx                47 ext/soap/php_schema.c static void schema_type_fixup(sdlCtx *ctx, sdlTypePtr type);
ctx                98 ext/soap/php_schema.c static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlAttrPtr tns, int import) {
ctx               100 ext/soap/php_schema.c 	    !zend_hash_str_exists(&ctx->docs, (char*)location, xmlStrlen(location))) {
ctx               105 ext/soap/php_schema.c 		sdl_set_uri_credentials(ctx, (char*)location);
ctx               107 ext/soap/php_schema.c 		sdl_restore_uri_credentials(ctx);
ctx               138 ext/soap/php_schema.c 		zend_hash_str_add_ptr(&ctx->docs, (char*)location, xmlStrlen(location), doc);
ctx               139 ext/soap/php_schema.c 		load_schema(ctx, schema);
ctx               163 ext/soap/php_schema.c int load_schema(sdlCtx *ctx, xmlNodePtr schema)
ctx               168 ext/soap/php_schema.c 	if (!ctx->sdl->types) {
ctx               169 ext/soap/php_schema.c 		ctx->sdl->types = emalloc(sizeof(HashTable));
ctx               170 ext/soap/php_schema.c 		zend_hash_init(ctx->sdl->types, 0, NULL, delete_type, 0);
ctx               172 ext/soap/php_schema.c 	if (!ctx->attributes) {
ctx               173 ext/soap/php_schema.c 		ctx->attributes = emalloc(sizeof(HashTable));
ctx               174 ext/soap/php_schema.c 		zend_hash_init(ctx->attributes, 0, NULL, delete_attribute, 0);
ctx               176 ext/soap/php_schema.c 	if (!ctx->attributeGroups) {
ctx               177 ext/soap/php_schema.c 		ctx->attributeGroups = emalloc(sizeof(HashTable));
ctx               178 ext/soap/php_schema.c 		zend_hash_init(ctx->attributeGroups, 0, NULL, delete_type, 0);
ctx               205 ext/soap/php_schema.c 				schema_load_file(ctx, NULL, uri, tns, 0);
ctx               225 ext/soap/php_schema.c 				schema_load_file(ctx, NULL, uri, tns, 0);
ctx               254 ext/soap/php_schema.c 			schema_load_file(ctx, ns, uri, tns, 1);
ctx               273 ext/soap/php_schema.c 			schema_simpleType(ctx->sdl, tns, trav, NULL);
ctx               275 ext/soap/php_schema.c 			schema_complexType(ctx->sdl, tns, trav, NULL);
ctx               277 ext/soap/php_schema.c 			schema_group(ctx->sdl, tns, trav, NULL, NULL);
ctx               279 ext/soap/php_schema.c 			schema_attributeGroup(ctx->sdl, tns, trav, NULL, ctx);
ctx               281 ext/soap/php_schema.c 			schema_element(ctx->sdl, tns, trav, NULL, NULL);
ctx               283 ext/soap/php_schema.c 			schema_attribute(ctx->sdl, tns, trav, NULL, ctx);
ctx              1730 ext/soap/php_schema.c static int schema_attribute(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdlTypePtr cur_type, sdlCtx *ctx)
ctx              1788 ext/soap/php_schema.c 			addHash = ctx->attributes;
ctx              1951 ext/soap/php_schema.c static int schema_attributeGroup(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrGroup, sdlTypePtr cur_type, sdlCtx *ctx)
ctx              1981 ext/soap/php_schema.c 			if (zend_hash_add_ptr(ctx->attributeGroups, key.s, newType) == NULL) {
ctx              2085 ext/soap/php_schema.c static void schema_attribute_fixup(sdlCtx *ctx, sdlAttributePtr attr)
ctx              2090 ext/soap/php_schema.c 		if (ctx->attributes != NULL) {
ctx              2091 ext/soap/php_schema.c 			tmp = (sdlAttributePtr)schema_find_by_ref(ctx->attributes, attr->ref);
ctx              2093 ext/soap/php_schema.c 				schema_attribute_fixup(ctx, tmp);
ctx              2133 ext/soap/php_schema.c static void schema_attributegroup_fixup(sdlCtx *ctx, sdlAttributePtr attr, HashTable *ht)
ctx              2139 ext/soap/php_schema.c 		if (ctx->attributeGroups != NULL) {
ctx              2140 ext/soap/php_schema.c 			tmp = (sdlTypePtr)schema_find_by_ref(ctx->attributeGroups, attr->ref);
ctx              2149 ext/soap/php_schema.c 							schema_attribute_fixup(ctx, tmp_attr);
ctx              2171 ext/soap/php_schema.c 							schema_attributegroup_fixup(ctx, tmp_attr, ht);
ctx              2184 ext/soap/php_schema.c static void schema_content_model_fixup(sdlCtx *ctx, sdlContentModelPtr model)
ctx              2190 ext/soap/php_schema.c 			if (ctx->sdl->groups && (tmp = zend_hash_str_find_ptr(ctx->sdl->groups, model->u.group_ref, strlen(model->u.group_ref))) != NULL) {
ctx              2191 ext/soap/php_schema.c 				schema_type_fixup(ctx, tmp);
ctx              2219 ext/soap/php_schema.c 				schema_content_model_fixup(ctx, tmp);
ctx              2228 ext/soap/php_schema.c static void schema_type_fixup(sdlCtx *ctx, sdlTypePtr type)
ctx              2234 ext/soap/php_schema.c 		if (ctx->sdl->elements != NULL) {
ctx              2235 ext/soap/php_schema.c 			tmp = (sdlTypePtr)schema_find_by_ref(ctx->sdl->elements, type->ref);
ctx              2260 ext/soap/php_schema.c 			schema_type_fixup(ctx, tmp);
ctx              2264 ext/soap/php_schema.c 		schema_content_model_fixup(ctx, type->model);
ctx              2272 ext/soap/php_schema.c 				schema_attribute_fixup(ctx, attr);
ctx              2274 ext/soap/php_schema.c 				schema_attributegroup_fixup(ctx, attr, type->attributes);
ctx              2281 ext/soap/php_schema.c void schema_pass2(sdlCtx *ctx)
ctx              2283 ext/soap/php_schema.c 	sdlPtr sdl = ctx->sdl;
ctx              2287 ext/soap/php_schema.c 	if (ctx->attributes) {
ctx              2288 ext/soap/php_schema.c 		ZEND_HASH_FOREACH_PTR(ctx->attributes, attr) {
ctx              2289 ext/soap/php_schema.c 			schema_attribute_fixup(ctx, attr);
ctx              2292 ext/soap/php_schema.c 	if (ctx->attributeGroups) {
ctx              2293 ext/soap/php_schema.c 		ZEND_HASH_FOREACH_PTR(ctx->attributeGroups, type) {
ctx              2294 ext/soap/php_schema.c 			schema_type_fixup(ctx, type);
ctx              2299 ext/soap/php_schema.c 			schema_type_fixup(ctx, type);
ctx              2304 ext/soap/php_schema.c 			schema_type_fixup(ctx, type);
ctx              2309 ext/soap/php_schema.c 			schema_type_fixup(ctx, type);
ctx              2312 ext/soap/php_schema.c 	if (ctx->attributes) {
ctx              2313 ext/soap/php_schema.c 		zend_hash_destroy(ctx->attributes);
ctx              2314 ext/soap/php_schema.c 		efree(ctx->attributes);
ctx              2316 ext/soap/php_schema.c 	if (ctx->attributeGroups) {
ctx              2317 ext/soap/php_schema.c 		zend_hash_destroy(ctx->attributeGroups);
ctx              2318 ext/soap/php_schema.c 		efree(ctx->attributeGroups);
ctx                25 ext/soap/php_schema.h int load_schema(sdlCtx *ctx, xmlNodePtr schema);
ctx                26 ext/soap/php_schema.h void schema_pass2(sdlCtx *ctx);
ctx               227 ext/soap/php_sdl.c void sdl_set_uri_credentials(sdlCtx *ctx, char *uri)
ctx               235 ext/soap/php_sdl.c 	s = strstr(ctx->sdl->source, "://");
ctx               238 ext/soap/php_sdl.c 	l1 = s ? (s - ctx->sdl->source) : strlen(ctx->sdl->source);
ctx               246 ext/soap/php_sdl.c 		    ctx->sdl->source[4] == ':' &&
ctx               247 ext/soap/php_sdl.c 		    ctx->sdl->source[l1-3] == ':' &&
ctx               248 ext/soap/php_sdl.c 		    ctx->sdl->source[l1-2] == '8' &&
ctx               249 ext/soap/php_sdl.c 		    ctx->sdl->source[l1-1] == '0') {
ctx               261 ext/soap/php_sdl.c 		    ctx->sdl->source[4] == 's' &&
ctx               262 ext/soap/php_sdl.c 		    ctx->sdl->source[l1-4] == ':' &&
ctx               263 ext/soap/php_sdl.c 		    ctx->sdl->source[l1-3] == '4' &&
ctx               264 ext/soap/php_sdl.c 		    ctx->sdl->source[l1-2] == '4' &&
ctx               265 ext/soap/php_sdl.c 		    ctx->sdl->source[l1-1] == '3') {
ctx               277 ext/soap/php_sdl.c 	if (l1 != l2 || memcmp(ctx->sdl->source, uri, l1) != 0) {
ctx               283 ext/soap/php_sdl.c 			ctx->context = php_stream_context_from_zval(context_ptr, 1);
ctx               285 ext/soap/php_sdl.c 			if (ctx->context &&
ctx               286 ext/soap/php_sdl.c 			    (header = php_stream_context_get_option(ctx->context, "http", "header")) != NULL) {
ctx               297 ext/soap/php_sdl.c 						ZVAL_COPY(&ctx->old_header, header);
ctx               298 ext/soap/php_sdl.c 						php_stream_context_set_option(ctx->context, "http", "header", &new_header);
ctx               307 ext/soap/php_sdl.c void sdl_restore_uri_credentials(sdlCtx *ctx)
ctx               309 ext/soap/php_sdl.c 	if (Z_TYPE(ctx->old_header) != IS_UNDEF) {
ctx               310 ext/soap/php_sdl.c 	    php_stream_context_set_option(ctx->context, "http", "header", &ctx->old_header);
ctx               311 ext/soap/php_sdl.c 	    zval_ptr_dtor(&ctx->old_header);
ctx               312 ext/soap/php_sdl.c 		ZVAL_UNDEF(&ctx->old_header);
ctx               314 ext/soap/php_sdl.c 	ctx->context = NULL;
ctx               317 ext/soap/php_sdl.c static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include)
ctx               319 ext/soap/php_sdl.c 	sdlPtr tmpsdl = ctx->sdl;
ctx               324 ext/soap/php_sdl.c 	if (zend_hash_str_exists(&ctx->docs, struri, strlen(struri))) {
ctx               328 ext/soap/php_sdl.c 	sdl_set_uri_credentials(ctx, struri);
ctx               330 ext/soap/php_sdl.c 	sdl_restore_uri_credentials(ctx);
ctx               342 ext/soap/php_sdl.c 	zend_hash_str_add_ptr(&ctx->docs, struri, strlen(struri), wsdl);
ctx               350 ext/soap/php_sdl.c 				load_schema(ctx, schema);
ctx               376 ext/soap/php_sdl.c 					load_schema(ctx, trav2);
ctx               395 ext/soap/php_sdl.c 				load_wsdl_ex(this_ptr, (char*)uri, ctx, 1);
ctx               402 ext/soap/php_sdl.c 				if (zend_hash_str_add_ptr(&ctx->messages, (char*)name->children->content, xmlStrlen(name->children->content), trav) == NULL) {
ctx               412 ext/soap/php_sdl.c 				if (zend_hash_str_add_ptr(&ctx->portTypes, (char*)name->children->content, xmlStrlen(name->children->content), trav) == NULL) {
ctx               422 ext/soap/php_sdl.c 				if (zend_hash_str_add_ptr(&ctx->bindings, (char*)name->children->content, xmlStrlen(name->children->content), trav) == NULL) {
ctx               432 ext/soap/php_sdl.c 				if (zend_hash_str_add_ptr(&ctx->services, (char*)name->children->content, xmlStrlen(name->children->content), trav) == NULL) {
ctx               445 ext/soap/php_sdl.c static sdlSoapBindingFunctionHeaderPtr wsdl_soap_binding_header(sdlCtx* ctx, xmlNodePtr header, char* wsdl_soap_namespace, int fault)
ctx               463 ext/soap/php_sdl.c 	if ((message = zend_hash_str_find_ptr(&ctx->messages, ctype, strlen(ctype))) == NULL) {
ctx               509 ext/soap/php_sdl.c 		h->encode = get_encoder_from_prefix(ctx->sdl, part, tmp->children->content);
ctx               513 ext/soap/php_sdl.c 			h->element = get_element(ctx->sdl, part, tmp->children->content);
ctx               530 ext/soap/php_sdl.c 				sdlSoapBindingFunctionHeaderPtr hf = wsdl_soap_binding_header(ctx, trav, wsdl_soap_namespace, 1);
ctx               557 ext/soap/php_sdl.c static void wsdl_soap_binding_body(sdlCtx* ctx, xmlNodePtr node, char* wsdl_soap_namespace, sdlSoapBindingFunctionBody *binding, HashTable* params)
ctx               632 ext/soap/php_sdl.c 			sdlSoapBindingFunctionHeaderPtr h = wsdl_soap_binding_header(ctx, trav, wsdl_soap_namespace, 0);
ctx               657 ext/soap/php_sdl.c static HashTable* wsdl_message(sdlCtx *ctx, xmlChar* message_name)
ctx               669 ext/soap/php_sdl.c 	if ((tmp = zend_hash_str_find_ptr(&ctx->messages, ctype, strlen(ctype))) == NULL) {
ctx               706 ext/soap/php_sdl.c 			param->encode = get_encoder_from_prefix(ctx->sdl, part, type->children->content);
ctx               710 ext/soap/php_sdl.c 				param->element = get_element(ctx->sdl, part, element->children->content);
ctx               726 ext/soap/php_sdl.c 	sdlCtx ctx;
ctx               729 ext/soap/php_sdl.c 	memset(&ctx,0,sizeof(ctx));
ctx               730 ext/soap/php_sdl.c 	ctx.sdl = emalloc(sizeof(sdl));
ctx               731 ext/soap/php_sdl.c 	memset(ctx.sdl, 0, sizeof(sdl));
ctx               732 ext/soap/php_sdl.c 	ctx.sdl->source = estrdup(struri);
ctx               733 ext/soap/php_sdl.c 	zend_hash_init(&ctx.sdl->functions, 0, NULL, delete_function, 0);
ctx               735 ext/soap/php_sdl.c 	zend_hash_init(&ctx.docs, 0, NULL, delete_document, 0);
ctx               736 ext/soap/php_sdl.c 	zend_hash_init(&ctx.messages, 0, NULL, NULL, 0);
ctx               737 ext/soap/php_sdl.c 	zend_hash_init(&ctx.bindings, 0, NULL, NULL, 0);
ctx               738 ext/soap/php_sdl.c 	zend_hash_init(&ctx.portTypes, 0, NULL, NULL, 0);
ctx               739 ext/soap/php_sdl.c 	zend_hash_init(&ctx.services,  0, NULL, NULL, 0);
ctx               741 ext/soap/php_sdl.c 	load_wsdl_ex(this_ptr, struri,&ctx, 0);
ctx               742 ext/soap/php_sdl.c 	schema_pass2(&ctx);
ctx               744 ext/soap/php_sdl.c 	n = zend_hash_num_elements(&ctx.services);
ctx               746 ext/soap/php_sdl.c 		zend_hash_internal_pointer_reset(&ctx.services);
ctx               752 ext/soap/php_sdl.c 			service = tmp = zend_hash_get_current_data_ptr(&ctx.services);
ctx               835 ext/soap/php_sdl.c 				if ((tmp = zend_hash_str_find_ptr(&ctx.bindings, ctype, strlen(ctype))) == NULL) {
ctx               890 ext/soap/php_sdl.c 				if ((tmp = zend_hash_str_find_ptr(&ctx.portTypes, ctype, strlen(ctype))) == NULL) {
ctx               983 ext/soap/php_sdl.c 						function->requestParameters = wsdl_message(&ctx, message->children->content);
ctx               999 ext/soap/php_sdl.c 								wsdl_soap_binding_body(&ctx, input, wsdl_soap_namespace, &soapFunctionBinding->input, function->requestParameters);
ctx              1012 ext/soap/php_sdl.c 						function->responseParameters = wsdl_message(&ctx, message->children->content);
ctx              1033 ext/soap/php_sdl.c 								wsdl_soap_binding_body(&ctx, output, wsdl_soap_namespace, &soapFunctionBinding->output, function->responseParameters);
ctx              1062 ext/soap/php_sdl.c 							f->details = wsdl_message(&ctx, message->children->content);
ctx              1129 ext/soap/php_sdl.c 						if (zend_hash_str_add_ptr(&ctx.sdl->functions, php_strtolower(tmp, len), len, function) == NULL) {
ctx              1130 ext/soap/php_sdl.c 							zend_hash_next_index_insert_ptr(&ctx.sdl->functions, function);
ctx              1134 ext/soap/php_sdl.c 							if (ctx.sdl->requests == NULL) {
ctx              1135 ext/soap/php_sdl.c 								ctx.sdl->requests = emalloc(sizeof(HashTable));
ctx              1136 ext/soap/php_sdl.c 								zend_hash_init(ctx.sdl->requests, 0, NULL, NULL, 0);
ctx              1140 ext/soap/php_sdl.c 							zend_hash_str_add_ptr(ctx.sdl->requests, php_strtolower(tmp, len), len, function);
ctx              1147 ext/soap/php_sdl.c 				if (!ctx.sdl->bindings) {
ctx              1148 ext/soap/php_sdl.c 					ctx.sdl->bindings = emalloc(sizeof(HashTable));
ctx              1149 ext/soap/php_sdl.c 					zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0);
ctx              1152 ext/soap/php_sdl.c 				if (!zend_hash_str_add_ptr(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), tmpbinding)) {
ctx              1153 ext/soap/php_sdl.c 					zend_hash_next_index_insert_ptr(ctx.sdl->bindings, tmpbinding);
ctx              1158 ext/soap/php_sdl.c 			zend_hash_move_forward(&ctx.services);
ctx              1164 ext/soap/php_sdl.c 	if (ctx.sdl->bindings == NULL || ctx.sdl->bindings->nNumOfElements == 0) {
ctx              1168 ext/soap/php_sdl.c 	zend_hash_destroy(&ctx.messages);
ctx              1169 ext/soap/php_sdl.c 	zend_hash_destroy(&ctx.bindings);
ctx              1170 ext/soap/php_sdl.c 	zend_hash_destroy(&ctx.portTypes);
ctx              1171 ext/soap/php_sdl.c 	zend_hash_destroy(&ctx.services);
ctx              1172 ext/soap/php_sdl.c 	zend_hash_destroy(&ctx.docs);
ctx              1174 ext/soap/php_sdl.c 	return ctx.sdl;
ctx               269 ext/soap/php_sdl.h void sdl_set_uri_credentials(sdlCtx *ctx, char *uri);
ctx               270 ext/soap/php_sdl.h void sdl_restore_uri_credentials(sdlCtx *ctx);
ctx                72 ext/soap/php_xml.c static void soap_ignorableWhitespace(void *ctx, const xmlChar *ch, int len)
ctx                76 ext/soap/php_xml.c static void soap_Comment(void *ctx, const xmlChar *value)
ctx               107 ext/sockets/conversions.c static int param_get_bool(void *ctx, const char *key, int def)
ctx               110 ext/sockets/conversions.c 	if ((elem = zend_hash_str_find_ptr(ctx, key, strlen(key))) != NULL) {
ctx               118 ext/sockets/conversions.c static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx)
ctx               121 ext/sockets/conversions.c 	zend_llist_add_element(&ctx->allocations, &ret);
ctx               124 ext/sockets/conversions.c static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx)
ctx               127 ext/sockets/conversions.c 	zend_llist_add_element(&ctx->allocations, &ret);
ctx               130 ext/sockets/conversions.c static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_context *ctx)
ctx               134 ext/sockets/conversions.c 	zend_llist_add_element(&ctx->allocations, &ret);
ctx               181 ext/sockets/conversions.c static void do_from_zval_err(ser_context *ctx, const char *fmt, ...)
ctx               186 ext/sockets/conversions.c 	do_from_to_zval_err(&ctx->err, &ctx->keys, "user", fmt, ap);
ctx               190 ext/sockets/conversions.c static void do_to_zval_err(res_context *ctx, const char *fmt, ...)
ctx               195 ext/sockets/conversions.c 	do_from_to_zval_err(&ctx->err, &ctx->keys, "native", fmt, ap);
ctx               216 ext/sockets/conversions.c 								   void (*func)(zval *elem, unsigned i, void **args, ser_context *ctx),
ctx               218 ext/sockets/conversions.c 								   ser_context *ctx)
ctx               231 ext/sockets/conversions.c 		zend_llist_add_element(&ctx->keys, &bufp);
ctx               233 ext/sockets/conversions.c 		func(elem, i, args, ctx);
ctx               235 ext/sockets/conversions.c 		zend_llist_remove_tail(&ctx->keys);
ctx               236 ext/sockets/conversions.c 		if (ctx->err.has_error) {
ctx               249 ext/sockets/conversions.c 										ser_context *ctx)
ctx               255 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected an array here");
ctx               258 ext/sockets/conversions.c 	for (descr = descriptors; descr->name != NULL && !ctx->err.has_error; descr++) {
ctx               263 ext/sockets/conversions.c 				do_from_zval_err(ctx, "No information on how to convert value "
ctx               268 ext/sockets/conversions.c 			zend_llist_add_element(&ctx->keys, (void*)&descr->name);
ctx               269 ext/sockets/conversions.c 			descr->from_zval(elem, ((char*)structure) + descr->field_offset, ctx);
ctx               270 ext/sockets/conversions.c 			zend_llist_remove_tail(&ctx->keys);
ctx               273 ext/sockets/conversions.c 			do_from_zval_err(ctx, "The key '%s' is required", descr->name);
ctx               281 ext/sockets/conversions.c 									 res_context *ctx)
ctx               288 ext/sockets/conversions.c 	for (descr = descriptors; descr->name != NULL && !ctx->err.has_error; descr++) {
ctx               292 ext/sockets/conversions.c 			do_to_zval_err(ctx, "No information on how to convert native "
ctx               300 ext/sockets/conversions.c 		zend_llist_add_element(&ctx->keys, (void*)&descr->name);
ctx               301 ext/sockets/conversions.c 		descr->to_zval(structure + descr->field_offset, new_zv, ctx);
ctx               302 ext/sockets/conversions.c 		zend_llist_remove_tail(&ctx->keys);
ctx               307 ext/sockets/conversions.c static zend_long from_zval_integer_common(const zval *arr_value, ser_context *ctx)
ctx               350 ext/sockets/conversions.c 		do_from_zval_err(ctx, "expected an integer, but got a non numeric "
ctx               356 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected an integer, either of a PHP "
ctx               365 ext/sockets/conversions.c void from_zval_write_int(const zval *arr_value, char *field, ser_context *ctx)
ctx               370 ext/sockets/conversions.c 	lval = from_zval_integer_common(arr_value, ctx);
ctx               371 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               376 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "given PHP integer is out of bounds "
ctx               384 ext/sockets/conversions.c static void from_zval_write_uint32(const zval *arr_value, char *field, ser_context *ctx)
ctx               389 ext/sockets/conversions.c 	lval = from_zval_integer_common(arr_value, ctx);
ctx               390 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               395 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "given PHP integer is out of bounds "
ctx               403 ext/sockets/conversions.c static void from_zval_write_net_uint16(const zval *arr_value, char *field, ser_context *ctx)
ctx               408 ext/sockets/conversions.c 	lval = from_zval_integer_common(arr_value, ctx);
ctx               409 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               414 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "given PHP integer is out of bounds "
ctx               422 ext/sockets/conversions.c static void from_zval_write_sa_family(const zval *arr_value, char *field, ser_context *ctx)
ctx               427 ext/sockets/conversions.c 	lval = from_zval_integer_common(arr_value, ctx);
ctx               428 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               433 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "given PHP integer is out of bounds "
ctx               441 ext/sockets/conversions.c static void from_zval_write_pid_t(const zval *arr_value, char *field, ser_context *ctx)
ctx               446 ext/sockets/conversions.c 	lval = from_zval_integer_common(arr_value, ctx);
ctx               447 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               452 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "given PHP integer is out of bounds "
ctx               460 ext/sockets/conversions.c static void from_zval_write_uid_t(const zval *arr_value, char *field, ser_context *ctx)
ctx               465 ext/sockets/conversions.c 	lval = from_zval_integer_common(arr_value, ctx);
ctx               466 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               473 ext/sockets/conversions.c 			do_from_zval_err(ctx, "%s", "given PHP integer is out of bounds "
ctx               479 ext/sockets/conversions.c 			do_from_zval_err(ctx, "%s", "given PHP integer is out of bounds "
ctx               489 ext/sockets/conversions.c void to_zval_read_int(const char *data, zval *zv, res_context *ctx)
ctx               496 ext/sockets/conversions.c static void to_zval_read_unsigned(const char *data, zval *zv, res_context *ctx)
ctx               503 ext/sockets/conversions.c static void to_zval_read_net_uint16(const char *data, zval *zv, res_context *ctx)
ctx               510 ext/sockets/conversions.c static void to_zval_read_uint32(const char *data, zval *zv, res_context *ctx)
ctx               517 ext/sockets/conversions.c static void to_zval_read_sa_family(const char *data, zval *zv, res_context *ctx)
ctx               524 ext/sockets/conversions.c static void to_zval_read_pid_t(const char *data, zval *zv, res_context *ctx)
ctx               531 ext/sockets/conversions.c static void to_zval_read_uid_t(const char *data, zval *zv, res_context *ctx)
ctx               540 ext/sockets/conversions.c static void from_zval_write_sin_addr(const zval *zaddr_str, char *inaddr, ser_context *ctx)
ctx               547 ext/sockets/conversions.c 	res = php_set_inet_addr(&saddr, ZSTR_VAL(addr_str), ctx->sock);
ctx               552 ext/sockets/conversions.c 		do_from_zval_err(ctx, "could not resolve address '%s' to get an AF_INET "
ctx               558 ext/sockets/conversions.c static void to_zval_read_sin_addr(const char *data, zval *zv, res_context *ctx)
ctx               568 ext/sockets/conversions.c 		do_to_zval_err(ctx, "could not convert IPv4 address to string "
ctx               581 ext/sockets/conversions.c static void from_zval_write_sockaddr_in(const zval *container, char *sockaddr, ser_context *ctx)
ctx               583 ext/sockets/conversions.c 	from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_in, ctx);
ctx               585 ext/sockets/conversions.c static void to_zval_read_sockaddr_in(const char *data, zval *zv, res_context *ctx)
ctx               587 ext/sockets/conversions.c 	to_zval_read_aggregation(data, zv, descriptors_sockaddr_in, ctx);
ctx               590 ext/sockets/conversions.c static void from_zval_write_sin6_addr(const zval *zaddr_str, char *addr6, ser_context *ctx)
ctx               597 ext/sockets/conversions.c 	res = php_set_inet6_addr(&saddr6, ZSTR_VAL(addr_str), ctx->sock);
ctx               602 ext/sockets/conversions.c 		do_from_zval_err(ctx, "could not resolve address '%s' to get an AF_INET6 "
ctx               608 ext/sockets/conversions.c static void to_zval_read_sin6_addr(const char *data, zval *zv, res_context *ctx)
ctx               619 ext/sockets/conversions.c 		do_to_zval_err(ctx, "could not convert IPv6 address to string "
ctx               634 ext/sockets/conversions.c static void from_zval_write_sockaddr_in6(const zval *container, char *sockaddr6, ser_context *ctx)
ctx               636 ext/sockets/conversions.c 	from_zval_write_aggregation(container, sockaddr6, descriptors_sockaddr_in6, ctx);
ctx               638 ext/sockets/conversions.c static void to_zval_read_sockaddr_in6(const char *data, zval *zv, res_context *ctx)
ctx               640 ext/sockets/conversions.c 	to_zval_read_aggregation(data, zv, descriptors_sockaddr_in6, ctx);
ctx               643 ext/sockets/conversions.c static void from_zval_write_sun_path(const zval *path, char *sockaddr_un_c, ser_context *ctx)
ctx               654 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "the path is cannot be empty");
ctx               658 ext/sockets/conversions.c 		do_from_zval_err(ctx, "the path is too long, the maximum permitted "
ctx               668 ext/sockets/conversions.c static void to_zval_read_sun_path(const char *data, zval *zv, res_context *ctx) {
ctx               674 ext/sockets/conversions.c 		do_to_zval_err(ctx, "could not find a NUL in the path");
ctx               685 ext/sockets/conversions.c static void from_zval_write_sockaddr_un(const zval *container, char *sockaddr, ser_context *ctx)
ctx               687 ext/sockets/conversions.c 	from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_un, ctx);
ctx               689 ext/sockets/conversions.c static void to_zval_read_sockaddr_un(const char *data, zval *zv, res_context *ctx)
ctx               691 ext/sockets/conversions.c 	to_zval_read_aggregation(data, zv, descriptors_sockaddr_un, ctx);
ctx               696 ext/sockets/conversions.c 										 ser_context *ctx)
ctx               703 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected an array here");
ctx               707 ext/sockets/conversions.c 	fill_sockaddr = param_get_bool(ctx, KEY_FILL_SOCKADDR, 1);
ctx               712 ext/sockets/conversions.c 		zend_llist_add_element(&ctx->keys, &node);
ctx               713 ext/sockets/conversions.c 		from_zval_write_int(elem, (char*)&family, ctx);
ctx               714 ext/sockets/conversions.c 		zend_llist_remove_tail(&ctx->keys);
ctx               716 ext/sockets/conversions.c 		family = ctx->sock->type;
ctx               722 ext/sockets/conversions.c 		if (ctx->sock->type != AF_INET && ctx->sock->type != AF_INET6) {
ctx               723 ext/sockets/conversions.c 			do_from_zval_err(ctx, "the specified family (number %d) is not "
ctx               727 ext/sockets/conversions.c 		*sockaddr_ptr = accounted_ecalloc(1, sizeof(struct sockaddr_in), ctx);
ctx               730 ext/sockets/conversions.c 			from_zval_write_sockaddr_in(container, (char*)*sockaddr_ptr, ctx);
ctx               737 ext/sockets/conversions.c 		if (ctx->sock->type != AF_INET6) {
ctx               738 ext/sockets/conversions.c 			do_from_zval_err(ctx, "the specified family (AF_INET6) is not "
ctx               742 ext/sockets/conversions.c 		*sockaddr_ptr = accounted_ecalloc(1, sizeof(struct sockaddr_in6), ctx);
ctx               745 ext/sockets/conversions.c 			from_zval_write_sockaddr_in6(container, (char*)*sockaddr_ptr, ctx);
ctx               752 ext/sockets/conversions.c 		if (ctx->sock->type != AF_UNIX) {
ctx               753 ext/sockets/conversions.c 			do_from_zval_err(ctx, "the specified family (AF_UNIX) is not "
ctx               757 ext/sockets/conversions.c 		*sockaddr_ptr = accounted_ecalloc(1, sizeof(struct sockaddr_un), ctx);
ctx               761 ext/sockets/conversions.c 			from_zval_write_sockaddr_un(container, (char*)*sockaddr_ptr, ctx);
ctx               778 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "the only families currently supported are "
ctx               783 ext/sockets/conversions.c static void to_zval_read_sockaddr_aux(const char *sockaddr_c, zval *zv, res_context *ctx)
ctx               796 ext/sockets/conversions.c 		to_zval_read_sockaddr_in(sockaddr_c, zv, ctx);
ctx               801 ext/sockets/conversions.c 		to_zval_read_sockaddr_in6(sockaddr_c, zv, ctx);
ctx               806 ext/sockets/conversions.c 		to_zval_read_sockaddr_un(sockaddr_c, zv, ctx);
ctx               810 ext/sockets/conversions.c 		do_to_zval_err(ctx, "cannot read struct sockaddr with family %d; "
ctx               832 ext/sockets/conversions.c 									ser_context			*ctx)
ctx               855 ext/sockets/conversions.c 	from_zval_write_aggregation(arr, (char *)&level, descriptor_level, ctx);
ctx               856 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               859 ext/sockets/conversions.c 	from_zval_write_aggregation(arr, (char *)&type, descriptor_type, ctx);
ctx               860 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx               866 ext/sockets/conversions.c 		do_from_zval_err(ctx, "cmsghdr with level %d and type %d not supported",
ctx               875 ext/sockets/conversions.c 			do_from_zval_err(ctx, "cmsghdr should have a 'data' element here");
ctx               878 ext/sockets/conversions.c 		data_len = entry->calc_space(data_elem, ctx);
ctx               879 ext/sockets/conversions.c 		if (ctx->err.has_error) {
ctx               902 ext/sockets/conversions.c 	from_zval_write_aggregation(arr, (char*)CMSG_DATA(cmsghdr), descriptor_data, ctx);
ctx               906 ext/sockets/conversions.c static void from_zval_write_control_array(const zval *arr, char *msghdr_c, ser_context *ctx)
ctx               920 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected an array here");
ctx               930 ext/sockets/conversions.c 	control_buf	= accounted_safe_ecalloc(num_elems, CMSG_SPACE(20), 0, ctx);
ctx               931 ext/sockets/conversions.c 	alloc		= ctx->allocations.tail;
ctx               936 ext/sockets/conversions.c 		if (ctx->err.has_error) {
ctx               943 ext/sockets/conversions.c 		zend_llist_add_element(&ctx->keys, &bufp);
ctx               945 ext/sockets/conversions.c 		from_zval_write_control(elem, &control_buf, alloc, &control_len, &cur_offset, ctx);
ctx               947 ext/sockets/conversions.c 		zend_llist_remove_tail(&ctx->keys);
ctx               953 ext/sockets/conversions.c static void to_zval_read_cmsg_data(const char *cmsghdr_c, zval *zv, res_context *ctx)
ctx               962 ext/sockets/conversions.c 		do_to_zval_err(ctx, "cmsghdr with level %d and type %d not supported",
ctx               967 ext/sockets/conversions.c 		do_to_zval_err(ctx, "the cmsghdr structure is unexpectedly small; "
ctx               975 ext/sockets/conversions.c 	if (zend_hash_str_add_ptr(&ctx->params, KEY_CMSG_LEN, sizeof(KEY_CMSG_LEN) - 1, len_p) == NULL) {
ctx               976 ext/sockets/conversions.c 		do_to_zval_err(ctx, "%s", "could not set parameter " KEY_CMSG_LEN);
ctx               980 ext/sockets/conversions.c 	entry->to_array((const char *)CMSG_DATA(cmsg), zv, ctx);
ctx               982 ext/sockets/conversions.c 	zend_hash_str_del(&ctx->params, KEY_CMSG_LEN, sizeof(KEY_CMSG_LEN) - 1);
ctx               984 ext/sockets/conversions.c static void to_zval_read_control(const char *cmsghdr_c, zval *zv, res_context *ctx)
ctx               995 ext/sockets/conversions.c 	to_zval_read_aggregation(cmsghdr_c, zv, descriptors, ctx);
ctx               997 ext/sockets/conversions.c static void to_zval_read_control_array(const char *msghdr_c, zval *zv, res_context *ctx)
ctx              1015 ext/sockets/conversions.c 			cmsg != NULL && !ctx->err.has_error;
ctx              1025 ext/sockets/conversions.c 		zend_llist_add_element(&ctx->keys, &bufp);
ctx              1027 ext/sockets/conversions.c 		to_zval_read_control((const char *)cmsg, elem, ctx);
ctx              1029 ext/sockets/conversions.c 		zend_llist_remove_tail(&ctx->keys);
ctx              1034 ext/sockets/conversions.c static void from_zval_write_name(const zval *zname_arr, char *msghdr_c, ser_context *ctx)
ctx              1040 ext/sockets/conversions.c 	from_zval_write_sockaddr_aux(zname_arr, &sockaddr, &sockaddr_len, ctx);
ctx              1045 ext/sockets/conversions.c static void to_zval_read_name(const char *sockaddr_p, zval *zv, res_context *ctx)
ctx              1051 ext/sockets/conversions.c 		to_zval_read_sockaddr_aux(name, zv, ctx);
ctx              1054 ext/sockets/conversions.c static void from_zval_write_msghdr_buffer_size(const zval *elem, char *msghdr_c, ser_context *ctx)
ctx              1059 ext/sockets/conversions.c 	lval = from_zval_integer_common(elem, ctx);
ctx              1060 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx              1065 ext/sockets/conversions.c 		do_from_zval_err(ctx, "the buffer size must be between 1 and %pd; "
ctx              1071 ext/sockets/conversions.c 	msghdr->msg_iov = accounted_emalloc(sizeof(*msghdr->msg_iov) * 1, ctx);
ctx              1072 ext/sockets/conversions.c 	msghdr->msg_iov[0].iov_base = accounted_emalloc((size_t)lval, ctx);
ctx              1075 ext/sockets/conversions.c static void from_zval_write_iov_array_aux(zval *elem, unsigned i, void **args, ser_context *ctx)
ctx              1086 ext/sockets/conversions.c 	msg->msg_iov[i - 1].iov_base = accounted_emalloc(len, ctx);
ctx              1092 ext/sockets/conversions.c static void from_zval_write_iov_array(const zval *arr, char *msghdr_c, ser_context *ctx)
ctx              1098 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected an array here");
ctx              1107 ext/sockets/conversions.c 	msg->msg_iov = accounted_safe_ecalloc(num_elem, sizeof *msg->msg_iov, 0, ctx);
ctx              1110 ext/sockets/conversions.c     from_array_iterate(arr, from_zval_write_iov_array_aux, (void**)&msg, ctx);
ctx              1112 ext/sockets/conversions.c static void from_zval_write_controllen(const zval *elem, char *msghdr_c, ser_context *ctx)
ctx              1120 ext/sockets/conversions.c 	from_zval_write_uint32(elem, (char*)&len, ctx);
ctx              1121 ext/sockets/conversions.c 	if (!ctx->err.has_error && len == 0) {
ctx              1122 ext/sockets/conversions.c 		do_from_zval_err(ctx, "controllen cannot be 0");
ctx              1125 ext/sockets/conversions.c 	msghdr->msg_control = accounted_emalloc(len, ctx);
ctx              1128 ext/sockets/conversions.c void from_zval_write_msghdr_send(const zval *container, char *msghdr_c, ser_context *ctx)
ctx              1137 ext/sockets/conversions.c 	from_zval_write_aggregation(container, msghdr_c, descriptors, ctx);
ctx              1139 ext/sockets/conversions.c void from_zval_write_msghdr_recv(const zval *container, char *msghdr_c, ser_context *ctx)
ctx              1165 ext/sockets/conversions.c 	if (zend_hash_str_add_ptr(&ctx->params, KEY_FILL_SOCKADDR, sizeof(KEY_FILL_SOCKADDR) - 1, (void *)falsevp) == NULL) {
ctx              1166 ext/sockets/conversions.c 		do_from_zval_err(ctx, "could not add fill_sockaddr; this is a bug");
ctx              1170 ext/sockets/conversions.c 	from_zval_write_aggregation(container, msghdr_c, descriptors, ctx);
ctx              1172 ext/sockets/conversions.c 	zend_hash_str_del(&ctx->params, KEY_FILL_SOCKADDR, sizeof(KEY_FILL_SOCKADDR) - 1);
ctx              1173 ext/sockets/conversions.c 	if (ctx->err.has_error) {
ctx              1179 ext/sockets/conversions.c 		msghdr->msg_iov = accounted_emalloc(sizeof(*msghdr->msg_iov) * 1, ctx);
ctx              1180 ext/sockets/conversions.c 		msghdr->msg_iov[0].iov_base = accounted_emalloc((size_t)DEFAULT_BUFF_SIZE, ctx);
ctx              1185 ext/sockets/conversions.c static void to_zval_read_iov(const char *msghdr_c, zval *zv, res_context *ctx)
ctx              1194 ext/sockets/conversions.c 		do_to_zval_err(ctx, "unexpectedly large value for iov_len: %lu",
ctx              1199 ext/sockets/conversions.c 	if ((recvmsg_ret = zend_hash_str_find_ptr(&ctx->params, KEY_RECVMSG_RET, sizeof(KEY_RECVMSG_RET) - 1)) == NULL) {
ctx              1200 ext/sockets/conversions.c 		do_to_zval_err(ctx, "recvmsg_ret not found in params. This is a bug");
ctx              1218 ext/sockets/conversions.c void to_zval_read_msghdr(const char *msghdr_c, zval *zv, res_context *ctx)
ctx              1230 ext/sockets/conversions.c 	to_zval_read_aggregation(msghdr_c, zv, descriptors, ctx);
ctx              1234 ext/sockets/conversions.c static void from_zval_write_ifindex(const zval *zv, char *uinteger, ser_context *ctx)
ctx              1240 ext/sockets/conversions.c 			do_from_zval_err(ctx, "the interface index cannot be negative or "
ctx              1253 ext/sockets/conversions.c 			do_from_zval_err(ctx, "no interface with name \"%s\" could be found", ZSTR_VAL(str));
ctx              1260 ext/sockets/conversions.c 				do_from_zval_err(ctx, "the interface name \"%s\" is too large ", ZSTR_VAL(str));
ctx              1261 ext/sockets/conversions.c 			} else if (ioctl(ctx->sock->bsd_socket, SIOCGIFINDEX, &ifr) < 0) {
ctx              1263 ext/sockets/conversions.c 					do_from_zval_err(ctx, "no interface with name \"%s\" could be "
ctx              1266 ext/sockets/conversions.c 					do_from_zval_err(ctx, "error fetching interface index for "
ctx              1275 ext/sockets/conversions.c 		do_from_zval_err(ctx,
ctx              1283 ext/sockets/conversions.c 	if (!ctx->err.has_error) {
ctx              1295 ext/sockets/conversions.c void from_zval_write_in6_pktinfo(const zval *container, char *in6_pktinfo_c, ser_context *ctx)
ctx              1297 ext/sockets/conversions.c 	from_zval_write_aggregation(container, in6_pktinfo_c, descriptors_in6_pktinfo, ctx);
ctx              1299 ext/sockets/conversions.c void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx)
ctx              1303 ext/sockets/conversions.c 	to_zval_read_aggregation(data, zv, descriptors_in6_pktinfo, ctx);
ctx              1316 ext/sockets/conversions.c void from_zval_write_ucred(const zval *container, char *ucred_c, ser_context *ctx)
ctx              1318 ext/sockets/conversions.c 	from_zval_write_aggregation(container, ucred_c, descriptors_ucred, ctx);
ctx              1320 ext/sockets/conversions.c void to_zval_read_ucred(const char *data, zval *zv, res_context *ctx)
ctx              1324 ext/sockets/conversions.c 	to_zval_read_aggregation(data, zv, descriptors_ucred, ctx);
ctx              1330 ext/sockets/conversions.c size_t calculate_scm_rights_space(const zval *arr, ser_context *ctx)
ctx              1335 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected an array here");
ctx              1341 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected at least one element in this array");
ctx              1347 ext/sockets/conversions.c static void from_zval_write_fd_array_aux(zval *elem, unsigned i, void **args, ser_context *ctx)
ctx              1363 ext/sockets/conversions.c 			do_from_zval_err(ctx, "resource is not a stream or a socket");
ctx              1369 ext/sockets/conversions.c 			do_from_zval_err(ctx, "cast stream to file descriptor failed");
ctx              1373 ext/sockets/conversions.c 		do_from_zval_err(ctx, "expected a resource variable");
ctx              1376 ext/sockets/conversions.c void from_zval_write_fd_array(const zval *arr, char *int_arr, ser_context *ctx)
ctx              1379 ext/sockets/conversions.c 		do_from_zval_err(ctx, "%s", "expected an array here");
ctx              1383 ext/sockets/conversions.c    from_array_iterate(arr, &from_zval_write_fd_array_aux, (void**)&int_arr, ctx);
ctx              1385 ext/sockets/conversions.c void to_zval_read_fd_array(const char *data, zval *zv, res_context *ctx)
ctx              1396 ext/sockets/conversions.c 	if ((cmsg_len = zend_hash_str_find_ptr(&ctx->params, KEY_CMSG_LEN, sizeof(KEY_CMSG_LEN) - 1)) == NULL) {
ctx              1397 ext/sockets/conversions.c 		do_to_zval_err(ctx, "could not get value of parameter " KEY_CMSG_LEN);
ctx              1402 ext/sockets/conversions.c 		do_to_zval_err(ctx, "length of cmsg is smaller than its data member "
ctx              1419 ext/sockets/conversions.c 			do_to_zval_err(ctx, "error creating resource for received file "
ctx              1449 ext/sockets/conversions.c 	ser_context ctx;
ctx              1458 ext/sockets/conversions.c 	memset(&ctx, 0, sizeof(ctx));
ctx              1459 ext/sockets/conversions.c 	zend_hash_init(&ctx.params, 8, NULL, NULL, 0);
ctx              1460 ext/sockets/conversions.c 	zend_llist_init(&ctx.keys, sizeof(const char *), NULL, 0);
ctx              1461 ext/sockets/conversions.c 	zend_llist_init(&ctx.allocations, sizeof(void *), &free_from_zval_allocation, 0);
ctx              1462 ext/sockets/conversions.c 	ctx.sock = sock;
ctx              1466 ext/sockets/conversions.c 	zend_llist_add_element(&ctx.keys, &top_name);
ctx              1467 ext/sockets/conversions.c 	zend_llist_add_element(&ctx.allocations, &structure);
ctx              1470 ext/sockets/conversions.c 	writer(container, structure, &ctx);
ctx              1472 ext/sockets/conversions.c 	if (ctx.err.has_error) {
ctx              1473 ext/sockets/conversions.c 		zend_llist_destroy(&ctx.allocations); /* deallocates structure as well */
ctx              1475 ext/sockets/conversions.c 		*err = ctx.err;
ctx              1478 ext/sockets/conversions.c 		**allocations = ctx.allocations;
ctx              1481 ext/sockets/conversions.c 	zend_llist_destroy(&ctx.keys);
ctx              1482 ext/sockets/conversions.c 	zend_hash_destroy(&ctx.params);
ctx              1492 ext/sockets/conversions.c 	res_context				ctx;
ctx              1499 ext/sockets/conversions.c 	memset(&ctx, 0, sizeof(ctx));
ctx              1500 ext/sockets/conversions.c 	zend_llist_init(&ctx.keys, sizeof(const char *), NULL, 0);
ctx              1501 ext/sockets/conversions.c 	zend_llist_add_element(&ctx.keys, &top_name);
ctx              1503 ext/sockets/conversions.c 	zend_hash_init(&ctx.params, 8, NULL, NULL, 0);
ctx              1505 ext/sockets/conversions.c 		zend_hash_str_update_ptr(&ctx.params, kv->key, kv->key_size - 1, kv->value);
ctx              1510 ext/sockets/conversions.c 	reader(structure, zv, &ctx);
ctx              1512 ext/sockets/conversions.c 	if (ctx.err.has_error) {
ctx              1515 ext/sockets/conversions.c 		*err = ctx.err;
ctx              1518 ext/sockets/conversions.c 	zend_llist_destroy(&ctx.keys);
ctx              1519 ext/sockets/conversions.c 	zend_hash_destroy(&ctx.params);
ctx                35 ext/sockets/conversions.h typedef void (from_zval_write_field)(const zval *arr_value, char *field, ser_context *ctx);
ctx                36 ext/sockets/conversions.h typedef void (to_zval_read_field)(const char *data, zval *zv, res_context *ctx);
ctx                46 ext/sockets/conversions.h void from_zval_write_int(const zval *arr_value, char *field, ser_context *ctx);
ctx                47 ext/sockets/conversions.h void to_zval_read_int(const char *data, zval *zv, res_context *ctx);
ctx                50 ext/sockets/conversions.h void from_zval_write_in6_pktinfo(const zval *container, char *in6_pktinfo_c, ser_context *ctx);
ctx                51 ext/sockets/conversions.h void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx);
ctx                55 ext/sockets/conversions.h void from_zval_write_ucred(const zval *container, char *ucred_c, ser_context *ctx);
ctx                56 ext/sockets/conversions.h void to_zval_read_ucred(const char *data, zval *zv, res_context *ctx);
ctx                60 ext/sockets/conversions.h size_t calculate_scm_rights_space(const zval *arr, ser_context *ctx);
ctx                61 ext/sockets/conversions.h void from_zval_write_fd_array(const zval *arr, char *int_arr, ser_context *ctx);
ctx                62 ext/sockets/conversions.h void to_zval_read_fd_array(const char *data, zval *zv, res_context *ctx);
ctx                65 ext/sockets/conversions.h void from_zval_write_msghdr_send(const zval *container, char *msghdr_c, ser_context *ctx);
ctx                66 ext/sockets/conversions.h void from_zval_write_msghdr_recv(const zval *container, char *msghdr_c, ser_context *ctx);
ctx                67 ext/sockets/conversions.h void to_zval_read_msghdr(const char *msghdr_c, zval *zv, res_context *ctx);
ctx                24 ext/sockets/sendrecvmsg.h typedef size_t (calculate_req_space)(const zval *value, ser_context *ctx);
ctx              63416 ext/sqlite3/libsqlite/sqlite3.c     sqlite3_context ctx;
ctx              63420 ext/sqlite3/libsqlite/sqlite3.c     memset(&ctx, 0, sizeof(ctx));
ctx              63424 ext/sqlite3/libsqlite/sqlite3.c     ctx.pOut = &t;
ctx              63425 ext/sqlite3/libsqlite/sqlite3.c     ctx.pMem = pMem;
ctx              63426 ext/sqlite3/libsqlite/sqlite3.c     ctx.pFunc = pFunc;
ctx              63427 ext/sqlite3/libsqlite/sqlite3.c     pFunc->xFinalize(&ctx); /* IMP: R-24505-23230 */
ctx              63431 ext/sqlite3/libsqlite/sqlite3.c     rc = ctx.isError;
ctx              64253 ext/sqlite3/libsqlite/sqlite3.c   sqlite3_context ctx;            /* Context object for function invocation */
ctx              64295 ext/sqlite3/libsqlite/sqlite3.c   memset(&ctx, 0, sizeof(ctx));
ctx              64296 ext/sqlite3/libsqlite/sqlite3.c   ctx.pOut = pVal;
ctx              64297 ext/sqlite3/libsqlite/sqlite3.c   ctx.pFunc = pFunc;
ctx              64298 ext/sqlite3/libsqlite/sqlite3.c   pFunc->xFunc(&ctx, nVal, apVal);
ctx              64299 ext/sqlite3/libsqlite/sqlite3.c   if( ctx.isError ){
ctx              64300 ext/sqlite3/libsqlite/sqlite3.c     rc = ctx.isError;
ctx              72406 ext/sqlite3/libsqlite/sqlite3.c   sqlite3_context ctx;
ctx              72414 ext/sqlite3/libsqlite/sqlite3.c   ctx.pOut = &aMem[pOp->p3];
ctx              72415 ext/sqlite3/libsqlite/sqlite3.c   memAboutToChange(p, ctx.pOut);
ctx              72428 ext/sqlite3/libsqlite/sqlite3.c   ctx.pFunc = pOp->p4.pFunc;
ctx              72429 ext/sqlite3/libsqlite/sqlite3.c   ctx.iOp = (int)(pOp - aOp);
ctx              72430 ext/sqlite3/libsqlite/sqlite3.c   ctx.pVdbe = p;
ctx              72431 ext/sqlite3/libsqlite/sqlite3.c   MemSetTypeFlag(ctx.pOut, MEM_Null);
ctx              72432 ext/sqlite3/libsqlite/sqlite3.c   ctx.fErrorOrAux = 0;
ctx              72434 ext/sqlite3/libsqlite/sqlite3.c   (*ctx.pFunc->xFunc)(&ctx, n, apVal); /* IMP: R-24505-23230 */
ctx              72438 ext/sqlite3/libsqlite/sqlite3.c   if( ctx.fErrorOrAux ){
ctx              72439 ext/sqlite3/libsqlite/sqlite3.c     if( ctx.isError ){
ctx              72440 ext/sqlite3/libsqlite/sqlite3.c       sqlite3SetString(&p->zErrMsg, db, "%s", sqlite3_value_text(ctx.pOut));
ctx              72441 ext/sqlite3/libsqlite/sqlite3.c       rc = ctx.isError;
ctx              72447 ext/sqlite3/libsqlite/sqlite3.c   sqlite3VdbeChangeEncoding(ctx.pOut, encoding);
ctx              72448 ext/sqlite3/libsqlite/sqlite3.c   if( sqlite3VdbeMemTooBig(ctx.pOut) ){
ctx              72452 ext/sqlite3/libsqlite/sqlite3.c   REGISTER_TRACE(pOp->p3, ctx.pOut);
ctx              72453 ext/sqlite3/libsqlite/sqlite3.c   UPDATE_MAX_BLOBSIZE(ctx.pOut);
ctx              76547 ext/sqlite3/libsqlite/sqlite3.c   sqlite3_context ctx;
ctx              76560 ext/sqlite3/libsqlite/sqlite3.c   ctx.pFunc = pOp->p4.pFunc;
ctx              76562 ext/sqlite3/libsqlite/sqlite3.c   ctx.pMem = pMem = &aMem[pOp->p3];
ctx              76565 ext/sqlite3/libsqlite/sqlite3.c   ctx.pOut = &t;
ctx              76566 ext/sqlite3/libsqlite/sqlite3.c   ctx.isError = 0;
ctx              76567 ext/sqlite3/libsqlite/sqlite3.c   ctx.pVdbe = p;
ctx              76568 ext/sqlite3/libsqlite/sqlite3.c   ctx.iOp = (int)(pOp - aOp);
ctx              76569 ext/sqlite3/libsqlite/sqlite3.c   ctx.skipFlag = 0;
ctx              76570 ext/sqlite3/libsqlite/sqlite3.c   (ctx.pFunc->xStep)(&ctx, n, apVal); /* IMP: R-24505-23230 */
ctx              76571 ext/sqlite3/libsqlite/sqlite3.c   if( ctx.isError ){
ctx              76573 ext/sqlite3/libsqlite/sqlite3.c     rc = ctx.isError;
ctx              76575 ext/sqlite3/libsqlite/sqlite3.c   if( ctx.skipFlag ){
ctx              148810 ext/sqlite3/libsqlite/sqlite3.c static int fts3ExprLoadDoclistsCb(Fts3Expr *pExpr, int iPhrase, void *ctx){
ctx              148813 ext/sqlite3/libsqlite/sqlite3.c   LoadDoclistCtx *p = (LoadDoclistCtx *)ctx;
ctx              148847 ext/sqlite3/libsqlite/sqlite3.c static int fts3ExprPhraseCountCb(Fts3Expr *pExpr, int iPhrase, void *ctx){
ctx              148848 ext/sqlite3/libsqlite/sqlite3.c   (*(int *)ctx)++;
ctx              148985 ext/sqlite3/libsqlite/sqlite3.c static int fts3SnippetFindPositions(Fts3Expr *pExpr, int iPhrase, void *ctx){
ctx              148986 ext/sqlite3/libsqlite/sqlite3.c   SnippetIter *p = (SnippetIter *)ctx;
ctx              149999 ext/sqlite3/libsqlite/sqlite3.c static int fts3ExprTermOffsetInit(Fts3Expr *pExpr, int iPhrase, void *ctx){
ctx              150000 ext/sqlite3/libsqlite/sqlite3.c   TermOffsetCtx *p = (TermOffsetCtx *)ctx;
ctx              152383 ext/sqlite3/libsqlite/sqlite3.c static int rtreeColumn(sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i){
ctx              152394 ext/sqlite3/libsqlite/sqlite3.c     sqlite3_result_int64(ctx, nodeGetRowid(pRtree, pNode, p->iCell));
ctx              152400 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_double(ctx, c.f);
ctx              152405 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int(ctx, c.i);
ctx              154237 ext/sqlite3/libsqlite/sqlite3.c static void rtreenode(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
ctx              154279 ext/sqlite3/libsqlite/sqlite3.c   sqlite3_result_text(ctx, zText, -1, sqlite3_free);
ctx              154291 ext/sqlite3/libsqlite/sqlite3.c static void rtreedepth(sqlite3_context *ctx, int nArg, sqlite3_value **apArg){
ctx              154296 ext/sqlite3/libsqlite/sqlite3.c     sqlite3_result_error(ctx, "Invalid argument to rtreedepth()", -1); 
ctx              154299 ext/sqlite3/libsqlite/sqlite3.c     sqlite3_result_int(ctx, readInt16(zBlob));
ctx              154359 ext/sqlite3/libsqlite/sqlite3.c static void geomCallback(sqlite3_context *ctx, int nArg, sqlite3_value **aArg){
ctx              154360 ext/sqlite3/libsqlite/sqlite3.c   RtreeGeomCallback *pGeomCtx = (RtreeGeomCallback *)sqlite3_user_data(ctx);
ctx              154367 ext/sqlite3/libsqlite/sqlite3.c     sqlite3_result_error_nomem(ctx);
ctx              154380 ext/sqlite3/libsqlite/sqlite3.c     sqlite3_result_blob(ctx, pBlob, nBlob, sqlite3_free);
ctx              155790 ext/sqlite3/libsqlite/sqlite3.c   sqlite3_context *ctx, 
ctx              155796 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_text(ctx, pCsr->zName, -1, SQLITE_TRANSIENT);
ctx              155799 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_text(ctx, pCsr->zPath, -1, SQLITE_TRANSIENT);
ctx              155802 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int64(ctx, pCsr->iPageno);
ctx              155805 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_text(ctx, pCsr->zPagetype, -1, SQLITE_STATIC);
ctx              155808 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int(ctx, pCsr->nCell);
ctx              155811 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int(ctx, pCsr->nPayload);
ctx              155814 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int(ctx, pCsr->nUnused);
ctx              155817 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int(ctx, pCsr->nMxPayload);
ctx              155820 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int64(ctx, pCsr->iOffset);
ctx              155824 ext/sqlite3/libsqlite/sqlite3.c       sqlite3_result_int(ctx, pCsr->szPage);
ctx               469 ext/standard/crypt_blowfish.c 	tmp1 = data.ctx.S[3][tmp1]; \
ctx               470 ext/standard/crypt_blowfish.c 	tmp2 = data.ctx.S[2][tmp2]; \
ctx               471 ext/standard/crypt_blowfish.c 	tmp3 = data.ctx.S[1][tmp3]; \
ctx               472 ext/standard/crypt_blowfish.c 	tmp3 += data.ctx.S[0][tmp4]; \
ctx               474 ext/standard/crypt_blowfish.c 	R ^= data.ctx.P[N + 1]; \
ctx               490 ext/standard/crypt_blowfish.c 	tmp1 = BF_INDEX(data.ctx.S[3], tmp1); \
ctx               491 ext/standard/crypt_blowfish.c 	tmp2 = BF_INDEX(data.ctx.S[2], tmp2); \
ctx               492 ext/standard/crypt_blowfish.c 	tmp3 = BF_INDEX(data.ctx.S[1], tmp3); \
ctx               493 ext/standard/crypt_blowfish.c 	tmp3 += BF_INDEX(data.ctx.S[0], tmp4); \
ctx               495 ext/standard/crypt_blowfish.c 	R ^= data.ctx.P[N + 1]; \
ctx               504 ext/standard/crypt_blowfish.c 	L ^= data.ctx.P[0]; \
ctx               523 ext/standard/crypt_blowfish.c 	L = tmp4 ^ data.ctx.P[BF_N + 1];
ctx               527 ext/standard/crypt_blowfish.c 	_BF_body_r(&data.ctx);
ctx               531 ext/standard/crypt_blowfish.c 	ptr = data.ctx.P; \
ctx               537 ext/standard/crypt_blowfish.c 	} while (ptr < &data.ctx.P[BF_N + 2]); \
ctx               539 ext/standard/crypt_blowfish.c 	ptr = data.ctx.S[0]; \
ctx               545 ext/standard/crypt_blowfish.c 	} while (ptr < &data.ctx.S[3][0xFF]);
ctx               659 ext/standard/crypt_blowfish.c 	extern void _BF_body_r(BF_ctx *ctx);
ctx               662 ext/standard/crypt_blowfish.c 		BF_ctx ctx;
ctx               700 ext/standard/crypt_blowfish.c 	BF_set_key(key, data.expanded_key, data.ctx.P,
ctx               703 ext/standard/crypt_blowfish.c 	memcpy(data.ctx.S, BF_init_state.S, sizeof(data.ctx.S));
ctx               710 ext/standard/crypt_blowfish.c 		data.ctx.P[i] = L;
ctx               711 ext/standard/crypt_blowfish.c 		data.ctx.P[i + 1] = R;
ctx               714 ext/standard/crypt_blowfish.c 	ptr = data.ctx.S[0];
ctx               728 ext/standard/crypt_blowfish.c 	} while (ptr < &data.ctx.S[3][0xFF]);
ctx               734 ext/standard/crypt_blowfish.c 			data.ctx.P[i] ^= data.expanded_key[i];
ctx               735 ext/standard/crypt_blowfish.c 			data.ctx.P[i + 1] ^= data.expanded_key[i + 1];
ctx               750 ext/standard/crypt_blowfish.c 				data.ctx.P[i] ^= tmp1;
ctx               751 ext/standard/crypt_blowfish.c 				data.ctx.P[i + 1] ^= tmp2;
ctx               752 ext/standard/crypt_blowfish.c 				data.ctx.P[i + 2] ^= tmp3;
ctx               753 ext/standard/crypt_blowfish.c 				data.ctx.P[i + 3] ^= tmp4;
ctx               755 ext/standard/crypt_blowfish.c 			data.ctx.P[16] ^= tmp1;
ctx               756 ext/standard/crypt_blowfish.c 			data.ctx.P[17] ^= tmp2;
ctx               106 ext/standard/crypt_sha256.c static void sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx) {
ctx               111 ext/standard/crypt_sha256.c 	uint32_t a = ctx->H[0];
ctx               112 ext/standard/crypt_sha256.c 	uint32_t b = ctx->H[1];
ctx               113 ext/standard/crypt_sha256.c 	uint32_t c = ctx->H[2];
ctx               114 ext/standard/crypt_sha256.c 	uint32_t d = ctx->H[3];
ctx               115 ext/standard/crypt_sha256.c 	uint32_t e = ctx->H[4];
ctx               116 ext/standard/crypt_sha256.c 	uint32_t f = ctx->H[5];
ctx               117 ext/standard/crypt_sha256.c 	uint32_t g = ctx->H[6];
ctx               118 ext/standard/crypt_sha256.c 	uint32_t h = ctx->H[7];
ctx               123 ext/standard/crypt_sha256.c 	ctx->total[0] += (uint32_t)len;
ctx               124 ext/standard/crypt_sha256.c 	if (ctx->total[0] < len) {
ctx               125 ext/standard/crypt_sha256.c 		++ctx->total[1];
ctx               191 ext/standard/crypt_sha256.c 	ctx->H[0] = a;
ctx               192 ext/standard/crypt_sha256.c 	ctx->H[1] = b;
ctx               193 ext/standard/crypt_sha256.c 	ctx->H[2] = c;
ctx               194 ext/standard/crypt_sha256.c 	ctx->H[3] = d;
ctx               195 ext/standard/crypt_sha256.c 	ctx->H[4] = e;
ctx               196 ext/standard/crypt_sha256.c 	ctx->H[5] = f;
ctx               197 ext/standard/crypt_sha256.c 	ctx->H[6] = g;
ctx               198 ext/standard/crypt_sha256.c 	ctx->H[7] = h;
ctx               204 ext/standard/crypt_sha256.c static void sha256_init_ctx(struct sha256_ctx *ctx) {
ctx               205 ext/standard/crypt_sha256.c 	ctx->H[0] = 0x6a09e667;
ctx               206 ext/standard/crypt_sha256.c 	ctx->H[1] = 0xbb67ae85;
ctx               207 ext/standard/crypt_sha256.c 	ctx->H[2] = 0x3c6ef372;
ctx               208 ext/standard/crypt_sha256.c 	ctx->H[3] = 0xa54ff53a;
ctx               209 ext/standard/crypt_sha256.c 	ctx->H[4] = 0x510e527f;
ctx               210 ext/standard/crypt_sha256.c 	ctx->H[5] = 0x9b05688c;
ctx               211 ext/standard/crypt_sha256.c 	ctx->H[6] = 0x1f83d9ab;
ctx               212 ext/standard/crypt_sha256.c 	ctx->H[7] = 0x5be0cd19;
ctx               214 ext/standard/crypt_sha256.c 	ctx->total[0] = ctx->total[1] = 0;
ctx               215 ext/standard/crypt_sha256.c 	ctx->buflen = 0;
ctx               224 ext/standard/crypt_sha256.c static void * sha256_finish_ctx(struct sha256_ctx *ctx, void *resbuf) {
ctx               226 ext/standard/crypt_sha256.c 	uint32_t bytes = ctx->buflen;
ctx               231 ext/standard/crypt_sha256.c 	ctx->total[0] += bytes;
ctx               232 ext/standard/crypt_sha256.c 	if (ctx->total[0] < bytes) {
ctx               233 ext/standard/crypt_sha256.c 		++ctx->total[1];
ctx               237 ext/standard/crypt_sha256.c 	memcpy(&ctx->buffer[bytes], fillbuf, pad);
ctx               240 ext/standard/crypt_sha256.c 	*(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3);
ctx               241 ext/standard/crypt_sha256.c 	*(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) |
ctx               242 ext/standard/crypt_sha256.c 						  (ctx->total[0] >> 29));
ctx               245 ext/standard/crypt_sha256.c 	sha256_process_block(ctx->buffer, bytes + pad + 8, ctx);
ctx               249 ext/standard/crypt_sha256.c 		((uint32_t *) resbuf)[i] = SWAP(ctx->H[i]);
ctx               256 ext/standard/crypt_sha256.c static void sha256_process_bytes(const void *buffer, size_t len, struct sha256_ctx *ctx) {
ctx               259 ext/standard/crypt_sha256.c 	if (ctx->buflen != 0) {
ctx               260 ext/standard/crypt_sha256.c 		size_t left_over = ctx->buflen;
ctx               263 ext/standard/crypt_sha256.c 		  memcpy(&ctx->buffer[left_over], buffer, add);
ctx               264 ext/standard/crypt_sha256.c 		  ctx->buflen += (uint32_t)add;
ctx               266 ext/standard/crypt_sha256.c 		if (ctx->buflen > 64) {
ctx               267 ext/standard/crypt_sha256.c 			sha256_process_block(ctx->buffer, ctx->buflen & ~63, ctx);
ctx               268 ext/standard/crypt_sha256.c 			ctx->buflen &= 63;
ctx               270 ext/standard/crypt_sha256.c 			memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen);
ctx               288 ext/standard/crypt_sha256.c 				sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx);
ctx               292 ext/standard/crypt_sha256.c 				sha256_process_block(buffer, len & ~63, ctx);
ctx               300 ext/standard/crypt_sha256.c 		size_t left_over = ctx->buflen;
ctx               302 ext/standard/crypt_sha256.c 		memcpy(&ctx->buffer[left_over], buffer, len);
ctx               305 ext/standard/crypt_sha256.c 			sha256_process_block(ctx->buffer, 64, ctx);
ctx               307 ext/standard/crypt_sha256.c 			memcpy(ctx->buffer, &ctx->buffer[64], left_over);
ctx               309 ext/standard/crypt_sha256.c 		ctx->buflen = (uint32_t)left_over;
ctx               351 ext/standard/crypt_sha256.c 	struct sha256_ctx ctx;
ctx               399 ext/standard/crypt_sha256.c 	sha256_init_ctx(&ctx);
ctx               402 ext/standard/crypt_sha256.c 	sha256_process_bytes(key, key_len, &ctx);
ctx               407 ext/standard/crypt_sha256.c 	sha256_process_bytes(salt, salt_len, &ctx);
ctx               429 ext/standard/crypt_sha256.c 		sha256_process_bytes(alt_result, 32, &ctx);
ctx               431 ext/standard/crypt_sha256.c 	sha256_process_bytes(alt_result, cnt, &ctx);
ctx               437 ext/standard/crypt_sha256.c 			sha256_process_bytes(alt_result, 32, &ctx);
ctx               439 ext/standard/crypt_sha256.c 			sha256_process_bytes(key, key_len, &ctx);
ctx               444 ext/standard/crypt_sha256.c 	sha256_finish_ctx(&ctx, alt_result);
ctx               486 ext/standard/crypt_sha256.c 		sha256_init_ctx(&ctx);
ctx               490 ext/standard/crypt_sha256.c 			sha256_process_bytes(p_bytes, key_len, &ctx);
ctx               492 ext/standard/crypt_sha256.c 			sha256_process_bytes(alt_result, 32, &ctx);
ctx               497 ext/standard/crypt_sha256.c 			sha256_process_bytes(s_bytes, salt_len, &ctx);
ctx               502 ext/standard/crypt_sha256.c 			sha256_process_bytes(p_bytes, key_len, &ctx);
ctx               507 ext/standard/crypt_sha256.c 			sha256_process_bytes(alt_result, 32, &ctx);
ctx               509 ext/standard/crypt_sha256.c 			sha256_process_bytes(p_bytes, key_len, &ctx);
ctx               513 ext/standard/crypt_sha256.c 		sha256_finish_ctx(&ctx, alt_result);
ctx               572 ext/standard/crypt_sha256.c 	sha256_init_ctx(&ctx);
ctx               573 ext/standard/crypt_sha256.c 	sha256_finish_ctx(&ctx, alt_result);
ctx               577 ext/standard/crypt_sha256.c 	ZEND_SECURE_ZERO(&ctx, sizeof(ctx));
ctx               695 ext/standard/crypt_sha256.c 	struct sha256_ctx ctx;
ctx               705 ext/standard/crypt_sha256.c 		sha256_init_ctx(&ctx);
ctx               706 ext/standard/crypt_sha256.c 		sha256_process_bytes(tests[cnt].input, strlen(tests[cnt].input), &ctx);
ctx               707 ext/standard/crypt_sha256.c 		sha256_finish_ctx(&ctx, sum);
ctx               713 ext/standard/crypt_sha256.c 		sha256_init_ctx(&ctx);
ctx               715 ext/standard/crypt_sha256.c 			sha256_process_bytes(&tests[cnt].input[i], 1, &ctx);
ctx               717 ext/standard/crypt_sha256.c 		sha256_finish_ctx(&ctx, sum);
ctx               727 ext/standard/crypt_sha256.c 	sha256_init_ctx(&ctx);
ctx               729 ext/standard/crypt_sha256.c 		sha256_process_bytes (buf, sizeof (buf), &ctx);
ctx               732 ext/standard/crypt_sha256.c 	sha256_finish_ctx(&ctx, sum);
ctx               132 ext/standard/crypt_sha512.c sha512_process_block(const void *buffer, size_t len, struct sha512_ctx *ctx) {
ctx               135 ext/standard/crypt_sha512.c 	uint64_t a = ctx->H[0];
ctx               136 ext/standard/crypt_sha512.c 	uint64_t b = ctx->H[1];
ctx               137 ext/standard/crypt_sha512.c 	uint64_t c = ctx->H[2];
ctx               138 ext/standard/crypt_sha512.c 	uint64_t d = ctx->H[3];
ctx               139 ext/standard/crypt_sha512.c 	uint64_t e = ctx->H[4];
ctx               140 ext/standard/crypt_sha512.c 	uint64_t f = ctx->H[5];
ctx               141 ext/standard/crypt_sha512.c 	uint64_t g = ctx->H[6];
ctx               142 ext/standard/crypt_sha512.c 	uint64_t h = ctx->H[7];
ctx               147 ext/standard/crypt_sha512.c 	ctx->total[0] += len;
ctx               148 ext/standard/crypt_sha512.c 	if (ctx->total[0] < len) {
ctx               149 ext/standard/crypt_sha512.c 		++ctx->total[1];
ctx               218 ext/standard/crypt_sha512.c 	ctx->H[0] = a;
ctx               219 ext/standard/crypt_sha512.c 	ctx->H[1] = b;
ctx               220 ext/standard/crypt_sha512.c 	ctx->H[2] = c;
ctx               221 ext/standard/crypt_sha512.c 	ctx->H[3] = d;
ctx               222 ext/standard/crypt_sha512.c 	ctx->H[4] = e;
ctx               223 ext/standard/crypt_sha512.c 	ctx->H[5] = f;
ctx               224 ext/standard/crypt_sha512.c 	ctx->H[6] = g;
ctx               225 ext/standard/crypt_sha512.c 	ctx->H[7] = h;
ctx               231 ext/standard/crypt_sha512.c static void sha512_init_ctx (struct sha512_ctx *ctx) {
ctx               232 ext/standard/crypt_sha512.c 	ctx->H[0] = UINT64_C (0x6a09e667f3bcc908);
ctx               233 ext/standard/crypt_sha512.c 	ctx->H[1] = UINT64_C (0xbb67ae8584caa73b);
ctx               234 ext/standard/crypt_sha512.c 	ctx->H[2] = UINT64_C (0x3c6ef372fe94f82b);
ctx               235 ext/standard/crypt_sha512.c 	ctx->H[3] = UINT64_C (0xa54ff53a5f1d36f1);
ctx               236 ext/standard/crypt_sha512.c 	ctx->H[4] = UINT64_C (0x510e527fade682d1);
ctx               237 ext/standard/crypt_sha512.c 	ctx->H[5] = UINT64_C (0x9b05688c2b3e6c1f);
ctx               238 ext/standard/crypt_sha512.c 	ctx->H[6] = UINT64_C (0x1f83d9abfb41bd6b);
ctx               239 ext/standard/crypt_sha512.c 	ctx->H[7] = UINT64_C (0x5be0cd19137e2179);
ctx               241 ext/standard/crypt_sha512.c 	ctx->total[0] = ctx->total[1] = 0;
ctx               242 ext/standard/crypt_sha512.c 	ctx->buflen = 0;
ctx               251 ext/standard/crypt_sha512.c static void * sha512_finish_ctx (struct sha512_ctx *ctx, void *resbuf) {
ctx               253 ext/standard/crypt_sha512.c 	uint64_t bytes = ctx->buflen;
ctx               258 ext/standard/crypt_sha512.c 	ctx->total[0] += bytes;
ctx               259 ext/standard/crypt_sha512.c 	if (ctx->total[0] < bytes) {
ctx               260 ext/standard/crypt_sha512.c 		++ctx->total[1];
ctx               264 ext/standard/crypt_sha512.c 	memcpy(&ctx->buffer[bytes], fillbuf, pad);
ctx               267 ext/standard/crypt_sha512.c 	*(uint64_t *) &ctx->buffer[bytes + pad + 8] = SWAP(ctx->total[0] << 3);
ctx               268 ext/standard/crypt_sha512.c 	*(uint64_t *) &ctx->buffer[bytes + pad] = SWAP((ctx->total[1] << 3) |
ctx               269 ext/standard/crypt_sha512.c 						(ctx->total[0] >> 61));
ctx               272 ext/standard/crypt_sha512.c 	sha512_process_block(ctx->buffer, (size_t)(bytes + pad + 16), ctx);
ctx               276 ext/standard/crypt_sha512.c 		((uint64_t *) resbuf)[i] = SWAP(ctx->H[i]);
ctx               283 ext/standard/crypt_sha512.c sha512_process_bytes(const void *buffer, size_t len, struct sha512_ctx *ctx) {
ctx               286 ext/standard/crypt_sha512.c 	if (ctx->buflen != 0) {
ctx               287 ext/standard/crypt_sha512.c 		size_t left_over = (size_t)ctx->buflen;
ctx               290 ext/standard/crypt_sha512.c 		memcpy(&ctx->buffer[left_over], buffer, add);
ctx               291 ext/standard/crypt_sha512.c 		ctx->buflen += add;
ctx               293 ext/standard/crypt_sha512.c 		if (ctx->buflen > 128) {
ctx               294 ext/standard/crypt_sha512.c 			sha512_process_block(ctx->buffer, ctx->buflen & ~127, ctx);
ctx               296 ext/standard/crypt_sha512.c 			ctx->buflen &= 127;
ctx               298 ext/standard/crypt_sha512.c 			memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127],
ctx               299 ext/standard/crypt_sha512.c 					(size_t)ctx->buflen);
ctx               318 ext/standard/crypt_sha512.c 				sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx);
ctx               325 ext/standard/crypt_sha512.c 		  sha512_process_block(buffer, len & ~127, ctx);
ctx               333 ext/standard/crypt_sha512.c 		size_t left_over = (size_t)ctx->buflen;
ctx               335 ext/standard/crypt_sha512.c 		memcpy(&ctx->buffer[left_over], buffer, len);
ctx               338 ext/standard/crypt_sha512.c 			sha512_process_block(ctx->buffer, 128, ctx);
ctx               340 ext/standard/crypt_sha512.c 			memcpy(ctx->buffer, &ctx->buffer[128], left_over);
ctx               342 ext/standard/crypt_sha512.c 		ctx->buflen = left_over;
ctx               384 ext/standard/crypt_sha512.c 	struct sha512_ctx ctx;
ctx               433 ext/standard/crypt_sha512.c 	sha512_init_ctx(&ctx);
ctx               436 ext/standard/crypt_sha512.c 	sha512_process_bytes(key, key_len, &ctx);
ctx               441 ext/standard/crypt_sha512.c 	sha512_process_bytes(salt, salt_len, &ctx);
ctx               463 ext/standard/crypt_sha512.c 		sha512_process_bytes(alt_result, 64, &ctx);
ctx               465 ext/standard/crypt_sha512.c 	sha512_process_bytes(alt_result, cnt, &ctx);
ctx               471 ext/standard/crypt_sha512.c 			sha512_process_bytes(alt_result, 64, &ctx);
ctx               473 ext/standard/crypt_sha512.c 			sha512_process_bytes(key, key_len, &ctx);
ctx               478 ext/standard/crypt_sha512.c 	sha512_finish_ctx(&ctx, alt_result);
ctx               521 ext/standard/crypt_sha512.c 		sha512_init_ctx(&ctx);
ctx               525 ext/standard/crypt_sha512.c 			sha512_process_bytes(p_bytes, key_len, &ctx);
ctx               527 ext/standard/crypt_sha512.c 			sha512_process_bytes(alt_result, 64, &ctx);
ctx               532 ext/standard/crypt_sha512.c 			sha512_process_bytes(s_bytes, salt_len, &ctx);
ctx               537 ext/standard/crypt_sha512.c 			sha512_process_bytes(p_bytes, key_len, &ctx);
ctx               542 ext/standard/crypt_sha512.c 			sha512_process_bytes(alt_result, 64, &ctx);
ctx               544 ext/standard/crypt_sha512.c 			sha512_process_bytes(p_bytes, key_len, &ctx);
ctx               548 ext/standard/crypt_sha512.c 		sha512_finish_ctx(&ctx, alt_result);
ctx               620 ext/standard/crypt_sha512.c 	sha512_init_ctx(&ctx);
ctx               621 ext/standard/crypt_sha512.c 	sha512_finish_ctx(&ctx, alt_result);
ctx               625 ext/standard/crypt_sha512.c 	ZEND_SECURE_ZERO(&ctx, sizeof(ctx));
ctx               760 ext/standard/crypt_sha512.c 	struct sha512_ctx ctx;
ctx               773 ext/standard/crypt_sha512.c 		sha512_init_ctx (&ctx);
ctx               774 ext/standard/crypt_sha512.c 		sha512_process_bytes (tests[cnt].input, strlen (tests[cnt].input), &ctx);
ctx               775 ext/standard/crypt_sha512.c 		sha512_finish_ctx (&ctx, sum);
ctx               781 ext/standard/crypt_sha512.c 		sha512_init_ctx (&ctx);
ctx               783 ext/standard/crypt_sha512.c 			sha512_process_bytes (&tests[cnt].input[i], 1, &ctx);
ctx               785 ext/standard/crypt_sha512.c 		sha512_finish_ctx (&ctx, sum);
ctx               795 ext/standard/crypt_sha512.c 	sha512_init_ctx (&ctx);
ctx               797 ext/standard/crypt_sha512.c 		sha512_process_bytes (buf, sizeof (buf), &ctx);
ctx               800 ext/standard/crypt_sha512.c 	sha512_finish_ctx (&ctx, sum);
ctx              1695 ext/standard/file.c PHPAPI int php_copy_file_ctx(const char *src, const char *dest, int src_flg, php_stream_context *ctx)
ctx              1701 ext/standard/file.c 	switch (php_stream_stat_path_ex(src, 0, &src_s, ctx)) {
ctx              1716 ext/standard/file.c 	switch (php_stream_stat_path_ex(dest, PHP_STREAM_URL_STAT_QUIET | PHP_STREAM_URL_STAT_NOCACHE, &dest_s, ctx)) {
ctx              1766 ext/standard/file.c 	srcstream = php_stream_open_wrapper_ex(src, "rb", src_flg | REPORT_ERRORS, NULL, ctx);
ctx              1772 ext/standard/file.c 	deststream = php_stream_open_wrapper_ex(dest, "wb", REPORT_ERRORS, NULL, ctx);
ctx                81 ext/standard/file.h PHPAPI int php_copy_file_ctx(const char *src, const char *dest, int src_chk, php_stream_context *ctx);
ctx               177 ext/standard/md5.c 	(ctx->block[(n)] = \
ctx               183 ext/standard/md5.c 	(ctx->block[(n)])
ctx               190 ext/standard/md5.c static const void *body(PHP_MD5_CTX *ctx, const void *data, size_t size)
ctx               198 ext/standard/md5.c 	a = ctx->a;
ctx               199 ext/standard/md5.c 	b = ctx->b;
ctx               200 ext/standard/md5.c 	c = ctx->c;
ctx               201 ext/standard/md5.c 	d = ctx->d;
ctx               289 ext/standard/md5.c 	ctx->a = a;
ctx               290 ext/standard/md5.c 	ctx->b = b;
ctx               291 ext/standard/md5.c 	ctx->c = c;
ctx               292 ext/standard/md5.c 	ctx->d = d;
ctx               297 ext/standard/md5.c PHPAPI void PHP_MD5Init(PHP_MD5_CTX *ctx)
ctx               299 ext/standard/md5.c 	ctx->a = 0x67452301;
ctx               300 ext/standard/md5.c 	ctx->b = 0xefcdab89;
ctx               301 ext/standard/md5.c 	ctx->c = 0x98badcfe;
ctx               302 ext/standard/md5.c 	ctx->d = 0x10325476;
ctx               304 ext/standard/md5.c 	ctx->lo = 0;
ctx               305 ext/standard/md5.c 	ctx->hi = 0;
ctx               308 ext/standard/md5.c PHPAPI void PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size)
ctx               313 ext/standard/md5.c 	saved_lo = ctx->lo;
ctx               314 ext/standard/md5.c 	if ((ctx->lo = (saved_lo + size) & 0x1fffffff) < saved_lo) {
ctx               315 ext/standard/md5.c 		ctx->hi++;
ctx               317 ext/standard/md5.c 	ctx->hi += size >> 29;
ctx               325 ext/standard/md5.c 			memcpy(&ctx->buffer[used], data, size);
ctx               329 ext/standard/md5.c 		memcpy(&ctx->buffer[used], data, free);
ctx               332 ext/standard/md5.c 		body(ctx, ctx->buffer, 64);
ctx               336 ext/standard/md5.c 		data = body(ctx, data, size & ~(size_t)0x3f);
ctx               340 ext/standard/md5.c 	memcpy(ctx->buffer, data, size);
ctx               343 ext/standard/md5.c PHPAPI void PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx)
ctx               347 ext/standard/md5.c 	used = ctx->lo & 0x3f;
ctx               349 ext/standard/md5.c 	ctx->buffer[used++] = 0x80;
ctx               354 ext/standard/md5.c 		memset(&ctx->buffer[used], 0, free);
ctx               355 ext/standard/md5.c 		body(ctx, ctx->buffer, 64);
ctx               360 ext/standard/md5.c 	memset(&ctx->buffer[used], 0, free - 8);
ctx               362 ext/standard/md5.c 	ctx->lo <<= 3;
ctx               363 ext/standard/md5.c 	ctx->buffer[56] = ctx->lo;
ctx               364 ext/standard/md5.c 	ctx->buffer[57] = ctx->lo >> 8;
ctx               365 ext/standard/md5.c 	ctx->buffer[58] = ctx->lo >> 16;
ctx               366 ext/standard/md5.c 	ctx->buffer[59] = ctx->lo >> 24;
ctx               367 ext/standard/md5.c 	ctx->buffer[60] = ctx->hi;
ctx               368 ext/standard/md5.c 	ctx->buffer[61] = ctx->hi >> 8;
ctx               369 ext/standard/md5.c 	ctx->buffer[62] = ctx->hi >> 16;
ctx               370 ext/standard/md5.c 	ctx->buffer[63] = ctx->hi >> 24;
ctx               372 ext/standard/md5.c 	body(ctx, ctx->buffer, 64);
ctx               374 ext/standard/md5.c 	result[0] = ctx->a;
ctx               375 ext/standard/md5.c 	result[1] = ctx->a >> 8;
ctx               376 ext/standard/md5.c 	result[2] = ctx->a >> 16;
ctx               377 ext/standard/md5.c 	result[3] = ctx->a >> 24;
ctx               378 ext/standard/md5.c 	result[4] = ctx->b;
ctx               379 ext/standard/md5.c 	result[5] = ctx->b >> 8;
ctx               380 ext/standard/md5.c 	result[6] = ctx->b >> 16;
ctx               381 ext/standard/md5.c 	result[7] = ctx->b >> 24;
ctx               382 ext/standard/md5.c 	result[8] = ctx->c;
ctx               383 ext/standard/md5.c 	result[9] = ctx->c >> 8;
ctx               384 ext/standard/md5.c 	result[10] = ctx->c >> 16;
ctx               385 ext/standard/md5.c 	result[11] = ctx->c >> 24;
ctx               386 ext/standard/md5.c 	result[12] = ctx->d;
ctx               387 ext/standard/md5.c 	result[13] = ctx->d >> 8;
ctx               388 ext/standard/md5.c 	result[14] = ctx->d >> 16;
ctx               389 ext/standard/md5.c 	result[15] = ctx->d >> 24;
ctx               391 ext/standard/md5.c 	ZEND_SECURE_ZERO(ctx, sizeof(*ctx));
ctx                51 ext/standard/md5.h PHPAPI void PHP_MD5Init(PHP_MD5_CTX *ctx);
ctx                52 ext/standard/md5.h PHPAPI void PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size);
ctx                53 ext/standard/md5.h PHPAPI void PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx);
ctx               129 ext/standard/php_crypt_r.c 	HCRYPTHASH ctx, ctx1;
ctx               166 ext/standard/php_crypt_r.c 	if(!CryptCreateHash(hCryptProv, CALG_MD5, 0, 0, &ctx)) {
ctx               171 ext/standard/php_crypt_r.c 	if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) {
ctx               176 ext/standard/php_crypt_r.c 	if(!CryptHashData(ctx, magic_md5, magic_md5_len, 0)) {
ctx               181 ext/standard/php_crypt_r.c 	if(!CryptHashData( ctx, (BYTE *)sp, sl, 0)) {
ctx               205 ext/standard/php_crypt_r.c 		CryptHashData(ctx, final, (DWORD)(pl > 16 ? 16 : pl), 0);
ctx               214 ext/standard/php_crypt_r.c 			CryptHashData(ctx, (const BYTE *)final, 1, 0);
ctx               216 ext/standard/php_crypt_r.c 			CryptHashData(ctx, (const BYTE *)pw, 1, 0);
ctx               231 ext/standard/php_crypt_r.c 	CryptGetHashParam(ctx, HP_HASHVAL, final, &dwHashLen, 0);
ctx               302 ext/standard/php_crypt_r.c 	CryptDestroyHash(ctx);
ctx               325 ext/standard/php_crypt_r.c 	PHP_MD5_CTX	ctx, ctx1;
ctx               345 ext/standard/php_crypt_r.c 	PHP_MD5Init(&ctx);
ctx               348 ext/standard/php_crypt_r.c 	PHP_MD5Update(&ctx, (const unsigned char *)pw, pwl);
ctx               351 ext/standard/php_crypt_r.c 	PHP_MD5Update(&ctx, (const unsigned char *)MD5_MAGIC, MD5_MAGIC_LEN);
ctx               354 ext/standard/php_crypt_r.c 	PHP_MD5Update(&ctx, (const unsigned char *)sp, sl);
ctx               364 ext/standard/php_crypt_r.c 		PHP_MD5Update(&ctx, final, (unsigned int)(pl > 16 ? 16 : pl));
ctx               372 ext/standard/php_crypt_r.c 		    PHP_MD5Update(&ctx, final, 1);
ctx               374 ext/standard/php_crypt_r.c 		    PHP_MD5Update(&ctx, (const unsigned char *)pw, 1);
ctx               381 ext/standard/php_crypt_r.c 	PHP_MD5Final(final, &ctx);
ctx               950 ext/standard/streamsfuncs.c 				stream->ctx = context->res;
ctx                53 ext/standard/url_scanner_ex.c 	url_adapt_state_ex_t *ctx;
ctx                58 ext/standard/url_scanner_ex.c 	ctx = &BG(url_adapt_state_ex);
ctx                62 ext/standard/url_scanner_ex.c 	if (ctx->tags)
ctx                63 ext/standard/url_scanner_ex.c 		zend_hash_destroy(ctx->tags);
ctx                65 ext/standard/url_scanner_ex.c 		ctx->tags = malloc(sizeof(HashTable));
ctx                66 ext/standard/url_scanner_ex.c 		if (!ctx->tags) {
ctx                71 ext/standard/url_scanner_ex.c 	zend_hash_init(ctx->tags, 0, NULL, tag_dtor, 1);
ctx                89 ext/standard/url_scanner_ex.c 			zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);
ctx               209 ext/standard/url_scanner_ex.c static inline void tag_arg(url_adapt_state_ex_t *ctx, char quotes, char type)
ctx               213 ext/standard/url_scanner_ex.c 	if (strncasecmp(ZSTR_VAL(ctx->arg.s), ctx->lookup_data, ZSTR_LEN(ctx->arg.s)) == 0)
ctx               217 ext/standard/url_scanner_ex.c 		smart_str_appendc(&ctx->result, type);
ctx               219 ext/standard/url_scanner_ex.c 		append_modified_url(&ctx->val, &ctx->result, &ctx->url_app, PG(arg_separator).output);
ctx               221 ext/standard/url_scanner_ex.c 		smart_str_append_smart_str(&ctx->result, &ctx->val);
ctx               224 ext/standard/url_scanner_ex.c 		smart_str_appendc(&ctx->result, type);
ctx               241 ext/standard/url_scanner_ex.c #define STATE ctx->state
ctx               243 ext/standard/url_scanner_ex.c #define STD_PARA url_adapt_state_ex_t *ctx, char *start, char *YYCURSOR
ctx               244 ext/standard/url_scanner_ex.c #define STD_ARGS ctx, start, xp
ctx               255 ext/standard/url_scanner_ex.c 	smart_str_appendl(&ctx->result, start, YYCURSOR - start);
ctx               267 ext/standard/url_scanner_ex.c 	if (ZSTR_LEN(ctx->form_app.s) > 0) {
ctx               268 ext/standard/url_scanner_ex.c 		switch (ZSTR_LEN(ctx->tag.s)) {
ctx               270 ext/standard/url_scanner_ex.c 				if (!strncasecmp(ZSTR_VAL(ctx->tag.s), "form", sizeof("form") - 1)) {
ctx               273 ext/standard/url_scanner_ex.c 				if (doit && ctx->val.s && ctx->lookup_data && *ctx->lookup_data) {
ctx               274 ext/standard/url_scanner_ex.c 					char *e, *p = (char *)zend_memnstr(ZSTR_VAL(ctx->val.s), "://", sizeof("://") - 1, ZSTR_VAL(ctx->val.s) + ZSTR_LEN(ctx->val.s));
ctx               276 ext/standard/url_scanner_ex.c 						e = memchr(p, '/', (ZSTR_VAL(ctx->val.s) + ZSTR_LEN(ctx->val.s)) - p);
ctx               278 ext/standard/url_scanner_ex.c 							e = ZSTR_VAL(ctx->val.s) + ZSTR_LEN(ctx->val.s);
ctx               280 ext/standard/url_scanner_ex.c 						if ((e - p) && strncasecmp(p, ctx->lookup_data, (e - p))) {
ctx               288 ext/standard/url_scanner_ex.c 				if (!strncasecmp(ZSTR_VAL(ctx->tag.s), "fieldset", sizeof("fieldset") - 1)) {
ctx               295 ext/standard/url_scanner_ex.c 			smart_str_append_smart_str(&ctx->result, &ctx->form_app);
ctx               311 ext/standard/url_scanner_ex.c 	if (ctx->tag.s) {
ctx               312 ext/standard/url_scanner_ex.c 		ZSTR_LEN(ctx->tag.s) = 0;
ctx               314 ext/standard/url_scanner_ex.c 	smart_str_appendl(&ctx->tag, start, YYCURSOR - start);
ctx               315 ext/standard/url_scanner_ex.c 	for (i = 0; i < ZSTR_LEN(ctx->tag.s); i++)
ctx               316 ext/standard/url_scanner_ex.c 		ZSTR_VAL(ctx->tag.s)[i] = tolower((int)(unsigned char)ZSTR_VAL(ctx->tag.s)[i]);
ctx               318 ext/standard/url_scanner_ex.c 	if ((ctx->lookup_data = zend_hash_str_find_ptr(ctx->tags, ZSTR_VAL(ctx->tag.s), ZSTR_LEN(ctx->tag.s))) != NULL)
ctx               325 ext/standard/url_scanner_ex.c 	if (ctx->arg.s) {
ctx               326 ext/standard/url_scanner_ex.c 		ZSTR_LEN(ctx->arg.s) = 0;
ctx               328 ext/standard/url_scanner_ex.c 	smart_str_appendl(&ctx->arg, start, YYCURSOR - start);
ctx               333 ext/standard/url_scanner_ex.c 	smart_str_setl(&ctx->val, start + quotes, YYCURSOR - start - quotes * 2);
ctx               334 ext/standard/url_scanner_ex.c 	tag_arg(ctx, quotes, type);
ctx               337 ext/standard/url_scanner_ex.c static inline void xx_mainloop(url_adapt_state_ex_t *ctx, const char *newdata, size_t newlen)
ctx               344 ext/standard/url_scanner_ex.c 	smart_str_appendl(&ctx->buf, newdata, newlen);
ctx               346 ext/standard/url_scanner_ex.c 	YYCURSOR = ZSTR_VAL(ctx->buf.s);
ctx               347 ext/standard/url_scanner_ex.c 	YYLIMIT = ZSTR_VAL(ctx->buf.s) + ZSTR_LEN(ctx->buf.s);
ctx               858 ext/standard/url_scanner_ex.c 		scdebug(("stopped in state %d at pos %d (%d:%c) %d\n", STATE, YYCURSOR - ctx->buf.c, *YYCURSOR, *YYCURSOR, rest));
ctx               861 ext/standard/url_scanner_ex.c 	if (rest) memmove(ZSTR_VAL(ctx->buf.s), start, rest);
ctx               862 ext/standard/url_scanner_ex.c 	ZSTR_LEN(ctx->buf.s) = rest;
ctx               907 ext/standard/url_scanner_ex.c 	url_adapt_state_ex_t *ctx;
ctx               910 ext/standard/url_scanner_ex.c 	ctx = &BG(url_adapt_state_ex);
ctx               912 ext/standard/url_scanner_ex.c 	xx_mainloop(ctx, src, srclen);
ctx               914 ext/standard/url_scanner_ex.c 	if (!ctx->result.s) {
ctx               915 ext/standard/url_scanner_ex.c 		smart_str_appendl(&ctx->result, "", 0);
ctx               918 ext/standard/url_scanner_ex.c 		*newlen = ZSTR_LEN(ctx->result.s);
ctx               920 ext/standard/url_scanner_ex.c 	smart_str_0(&ctx->result);
ctx               922 ext/standard/url_scanner_ex.c 		smart_str_append(&ctx->result, ctx->buf.s);
ctx               923 ext/standard/url_scanner_ex.c 		*newlen += ZSTR_LEN(ctx->buf.s);
ctx               924 ext/standard/url_scanner_ex.c 		smart_str_free(&ctx->buf);
ctx               925 ext/standard/url_scanner_ex.c 		smart_str_free(&ctx->val);
ctx               927 ext/standard/url_scanner_ex.c 	retval = estrndup(ZSTR_VAL(ctx->result.s), ZSTR_LEN(ctx->result.s));
ctx               928 ext/standard/url_scanner_ex.c 	smart_str_free(&ctx->result);
ctx               934 ext/standard/url_scanner_ex.c 	url_adapt_state_ex_t *ctx;
ctx               936 ext/standard/url_scanner_ex.c 	ctx = &BG(url_adapt_state_ex);
ctx               938 ext/standard/url_scanner_ex.c 	memset(ctx, 0, ((size_t) &((url_adapt_state_ex_t *)0)->tags));
ctx               945 ext/standard/url_scanner_ex.c 	url_adapt_state_ex_t *ctx;
ctx               947 ext/standard/url_scanner_ex.c 	ctx = &BG(url_adapt_state_ex);
ctx               949 ext/standard/url_scanner_ex.c 	smart_str_free(&ctx->result);
ctx               950 ext/standard/url_scanner_ex.c 	smart_str_free(&ctx->buf);
ctx               951 ext/standard/url_scanner_ex.c 	smart_str_free(&ctx->tag);
ctx               952 ext/standard/url_scanner_ex.c 	smart_str_free(&ctx->arg);
ctx               969 ext/standard/url_scanner_ex.c 		url_adapt_state_ex_t *ctx = &BG(url_adapt_state_ex);
ctx               970 ext/standard/url_scanner_ex.c 		if (ctx->buf.s && ZSTR_LEN(ctx->buf.s)) {
ctx               971 ext/standard/url_scanner_ex.c 			smart_str_append(&ctx->result, ctx->buf.s);
ctx               972 ext/standard/url_scanner_ex.c 			smart_str_appendl(&ctx->result, output, output_len);
ctx               974 ext/standard/url_scanner_ex.c 			*handled_output = estrndup(ZSTR_VAL(ctx->result.s), ZSTR_LEN(ctx->result.s));
ctx               975 ext/standard/url_scanner_ex.c 			*handled_output_len = ZSTR_LEN(ctx->buf.s) + output_len;
ctx               977 ext/standard/url_scanner_ex.c 			smart_str_free(&ctx->buf);
ctx               978 ext/standard/url_scanner_ex.c 			smart_str_free(&ctx->result);
ctx                87 ext/zip/lib/zip_source_buffer.c     struct read_data *ctx;
ctx                95 ext/zip/lib/zip_source_buffer.c     if ((ctx=(struct read_data *)malloc(sizeof(*ctx))) == NULL) {
ctx               100 ext/zip/lib/zip_source_buffer.c     if ((ctx->in = buffer_new_read(data, len, freep)) == NULL) {
ctx               102 ext/zip/lib/zip_source_buffer.c 	free(ctx);
ctx               106 ext/zip/lib/zip_source_buffer.c     ctx->out = NULL;
ctx               107 ext/zip/lib/zip_source_buffer.c     ctx->mtime = time(NULL);
ctx               108 ext/zip/lib/zip_source_buffer.c     zip_error_init(&ctx->error);
ctx               110 ext/zip/lib/zip_source_buffer.c     if ((zs=zip_source_function_create(read_data, ctx, error)) == NULL) {
ctx               111 ext/zip/lib/zip_source_buffer.c 	buffer_free(ctx->in);
ctx               112 ext/zip/lib/zip_source_buffer.c 	free(ctx);
ctx               123 ext/zip/lib/zip_source_buffer.c     struct read_data *ctx = (struct read_data *)state;
ctx               127 ext/zip/lib/zip_source_buffer.c 	    if ((ctx->out = buffer_new_write(WRITE_FRAGMENT_SIZE)) == NULL) {
ctx               128 ext/zip/lib/zip_source_buffer.c 		zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
ctx               137 ext/zip/lib/zip_source_buffer.c 	    buffer_free(ctx->in);
ctx               138 ext/zip/lib/zip_source_buffer.c 	    ctx->in = ctx->out;
ctx               139 ext/zip/lib/zip_source_buffer.c 	    ctx->out = NULL;
ctx               143 ext/zip/lib/zip_source_buffer.c             return zip_error_to_data(&ctx->error, data, len);
ctx               146 ext/zip/lib/zip_source_buffer.c 	    buffer_free(ctx->in);
ctx               147 ext/zip/lib/zip_source_buffer.c 	    buffer_free(ctx->out);
ctx               148 ext/zip/lib/zip_source_buffer.c             free(ctx);
ctx               152 ext/zip/lib/zip_source_buffer.c 	    ctx->in->offset = 0;
ctx               157 ext/zip/lib/zip_source_buffer.c 		zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               160 ext/zip/lib/zip_source_buffer.c             return buffer_read(ctx->in, data, len);
ctx               166 ext/zip/lib/zip_source_buffer.c 		zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
ctx               170 ext/zip/lib/zip_source_buffer.c 	    buffer_free(ctx->in);
ctx               171 ext/zip/lib/zip_source_buffer.c 	    ctx->in = empty;
ctx               176 ext/zip/lib/zip_source_buffer.c 	    buffer_free(ctx->out);
ctx               177 ext/zip/lib/zip_source_buffer.c 	    ctx->out = NULL;
ctx               181 ext/zip/lib/zip_source_buffer.c 	    return buffer_seek(ctx->in, data, len, &ctx->error);
ctx               184 ext/zip/lib/zip_source_buffer.c 	    return buffer_seek(ctx->out, data, len, &ctx->error);
ctx               191 ext/zip/lib/zip_source_buffer.c                 zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               198 ext/zip/lib/zip_source_buffer.c 	    st->mtime = ctx->mtime;
ctx               199 ext/zip/lib/zip_source_buffer.c 	    st->size = ctx->in->size;
ctx               212 ext/zip/lib/zip_source_buffer.c             if (ctx->in->offset > ZIP_INT64_MAX) {
ctx               213 ext/zip/lib/zip_source_buffer.c 		zip_error_set(&ctx->error, ZIP_ER_TELL, EOVERFLOW);
ctx               216 ext/zip/lib/zip_source_buffer.c 	    return (zip_int64_t)ctx->in->offset;
ctx               220 ext/zip/lib/zip_source_buffer.c             if (ctx->out->offset > ZIP_INT64_MAX) {
ctx               221 ext/zip/lib/zip_source_buffer.c 		zip_error_set(&ctx->error, ZIP_ER_TELL, EOVERFLOW);
ctx               224 ext/zip/lib/zip_source_buffer.c 	    return (zip_int64_t)ctx->out->offset;
ctx               228 ext/zip/lib/zip_source_buffer.c 		zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               231 ext/zip/lib/zip_source_buffer.c 	    return buffer_write(ctx->out, data, len, &ctx->error);
ctx               234 ext/zip/lib/zip_source_buffer.c 	    zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx                57 ext/zip/lib/zip_source_crc.c     struct crc_context *ctx;
ctx                64 ext/zip/lib/zip_source_crc.c     if ((ctx=(struct crc_context *)malloc(sizeof(*ctx))) == NULL) {
ctx                69 ext/zip/lib/zip_source_crc.c     zip_error_init(&ctx->error);
ctx                70 ext/zip/lib/zip_source_crc.c     ctx->validate = validate;
ctx                71 ext/zip/lib/zip_source_crc.c     ctx->crc_complete = 0;
ctx                72 ext/zip/lib/zip_source_crc.c     ctx->crc_position = 0;
ctx                73 ext/zip/lib/zip_source_crc.c     ctx->crc = (zip_uint32_t)crc32(0, NULL, 0);
ctx                74 ext/zip/lib/zip_source_crc.c     ctx->size = 0;
ctx                76 ext/zip/lib/zip_source_crc.c     return zip_source_layered(za, src, crc_read, ctx);
ctx                83 ext/zip/lib/zip_source_crc.c     struct crc_context *ctx;
ctx                86 ext/zip/lib/zip_source_crc.c     ctx = (struct crc_context *)_ctx;
ctx                90 ext/zip/lib/zip_source_crc.c             ctx->position = 0;
ctx                95 ext/zip/lib/zip_source_crc.c                 _zip_error_set_from_source(&ctx->error, src);
ctx               100 ext/zip/lib/zip_source_crc.c                 if (ctx->crc_position == ctx->position) {
ctx               101 ext/zip/lib/zip_source_crc.c                     ctx->crc_complete = 1;
ctx               102 ext/zip/lib/zip_source_crc.c                     ctx->size = ctx->position;
ctx               104 ext/zip/lib/zip_source_crc.c                     if (ctx->validate) {
ctx               108 ext/zip/lib/zip_source_crc.c                             _zip_error_set_from_source(&ctx->error, src);
ctx               112 ext/zip/lib/zip_source_crc.c                         if ((st.valid & ZIP_STAT_CRC) && st.crc != ctx->crc) {
ctx               113 ext/zip/lib/zip_source_crc.c                             zip_error_set(&ctx->error, ZIP_ER_CRC, 0);
ctx               116 ext/zip/lib/zip_source_crc.c                         if ((st.valid & ZIP_STAT_SIZE) && st.size != ctx->size) {
ctx               117 ext/zip/lib/zip_source_crc.c                             zip_error_set(&ctx->error, ZIP_ER_INCONS, 0);
ctx               123 ext/zip/lib/zip_source_crc.c             else if (!ctx->crc_complete && ctx->position <= ctx->crc_position) {
ctx               126 ext/zip/lib/zip_source_crc.c 		for (i = ctx->crc_position - ctx->position; i < (zip_uint64_t)n; i += nn) {
ctx               129 ext/zip/lib/zip_source_crc.c 		    ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data+i, (uInt)nn);
ctx               130 ext/zip/lib/zip_source_crc.c                     ctx->crc_position += nn;
ctx               133 ext/zip/lib/zip_source_crc.c             ctx->position += (zip_uint64_t)n;
ctx               145 ext/zip/lib/zip_source_crc.c 	    if (ctx->crc_complete) {
ctx               148 ext/zip/lib/zip_source_crc.c 		st->size = ctx->size;
ctx               149 ext/zip/lib/zip_source_crc.c 		st->crc = ctx->crc;
ctx               150 ext/zip/lib/zip_source_crc.c 		st->comp_size = ctx->size;
ctx               159 ext/zip/lib/zip_source_crc.c             return zip_error_to_data(&ctx->error, data, len);
ctx               162 ext/zip/lib/zip_source_crc.c             free(ctx);
ctx               170 ext/zip/lib/zip_source_crc.c                 _zip_error_set_from_source(&ctx->error, src);
ctx               180 ext/zip/lib/zip_source_crc.c             zip_source_args_seek_t *args = ZIP_SOURCE_GET_ARGS(zip_source_args_seek_t, data, len, &ctx->error);
ctx               186 ext/zip/lib/zip_source_crc.c                 _zip_error_set_from_source(&ctx->error, src);
ctx               190 ext/zip/lib/zip_source_crc.c             ctx->position = (zip_uint64_t)new_position;
ctx               196 ext/zip/lib/zip_source_crc.c             return (zip_int64_t)ctx->position;
ctx               199 ext/zip/lib/zip_source_crc.c             zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx                62 ext/zip/lib/zip_source_deflate.c     struct deflate *ctx;
ctx                70 ext/zip/lib/zip_source_deflate.c     if ((ctx=(struct deflate *)malloc(sizeof(*ctx))) == NULL) {
ctx                75 ext/zip/lib/zip_source_deflate.c     zip_error_init(&ctx->error);
ctx                76 ext/zip/lib/zip_source_deflate.c     ctx->eof = false;
ctx                77 ext/zip/lib/zip_source_deflate.c     ctx->is_stored = false;
ctx                78 ext/zip/lib/zip_source_deflate.c     ctx->can_store = ZIP_CM_IS_DEFAULT(cm);
ctx                80 ext/zip/lib/zip_source_deflate.c 	ctx->mem_level = MAX_MEM_LEVEL;
ctx                86 ext/zip/lib/zip_source_deflate.c 			       ctx)) == NULL) {
ctx                87 ext/zip/lib/zip_source_deflate.c 	deflate_free(ctx);
ctx                96 ext/zip/lib/zip_source_deflate.c compress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len)
ctx               103 ext/zip/lib/zip_source_deflate.c     if (zip_error_code_zip(&ctx->error) != ZIP_ER_OK)
ctx               106 ext/zip/lib/zip_source_deflate.c     if (len == 0 || ctx->is_stored) {
ctx               112 ext/zip/lib/zip_source_deflate.c     ctx->zstr.next_out = (Bytef *)data;
ctx               113 ext/zip/lib/zip_source_deflate.c     ctx->zstr.avail_out = out_len;
ctx               117 ext/zip/lib/zip_source_deflate.c 	ret = deflate(&ctx->zstr, ctx->eof ? Z_FINISH : 0);
ctx               121 ext/zip/lib/zip_source_deflate.c             if (ctx->can_store && ctx->zstr.total_in <= ctx->zstr.total_out) {
ctx               122 ext/zip/lib/zip_source_deflate.c                 ctx->is_stored = true;
ctx               123 ext/zip/lib/zip_source_deflate.c                 ctx->size = ctx->zstr.total_in;
ctx               124 ext/zip/lib/zip_source_deflate.c                 memcpy(data, ctx->buffer, ctx->size);
ctx               125 ext/zip/lib/zip_source_deflate.c                 return (zip_int64_t)ctx->size;
ctx               131 ext/zip/lib/zip_source_deflate.c 	    if (ctx->zstr.avail_out == 0) {
ctx               135 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.next_out = (Bytef *)data+out_offset;
ctx               136 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.avail_out = out_len;
ctx               139 ext/zip/lib/zip_source_deflate.c                     ctx->can_store = false;
ctx               143 ext/zip/lib/zip_source_deflate.c 	    else if (ctx->eof && ctx->zstr.avail_in == 0)
ctx               148 ext/zip/lib/zip_source_deflate.c 	    if (ctx->zstr.avail_in == 0) {
ctx               149 ext/zip/lib/zip_source_deflate.c 		if (ctx->eof) {
ctx               154 ext/zip/lib/zip_source_deflate.c 		if ((n=zip_source_read(src, ctx->buffer, sizeof(ctx->buffer))) < 0) {
ctx               155 ext/zip/lib/zip_source_deflate.c                     _zip_error_set_from_source(&ctx->error, src);
ctx               160 ext/zip/lib/zip_source_deflate.c 		    ctx->eof = true;
ctx               162 ext/zip/lib/zip_source_deflate.c 		    ctx->size = ctx->zstr.total_in;
ctx               165 ext/zip/lib/zip_source_deflate.c                     if (ctx->zstr.total_in > 0) {
ctx               167 ext/zip/lib/zip_source_deflate.c                         ctx->can_store = false;
ctx               169 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.next_in = (Bytef *)ctx->buffer;
ctx               170 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.avail_in = (uInt)n;
ctx               179 ext/zip/lib/zip_source_deflate.c             zip_error_set(&ctx->error, ZIP_ER_ZLIB, ret);
ctx               186 ext/zip/lib/zip_source_deflate.c     if (ctx->zstr.avail_out < len) {
ctx               187 ext/zip/lib/zip_source_deflate.c 	ctx->can_store = false;
ctx               188 ext/zip/lib/zip_source_deflate.c 	return (zip_int64_t)(len - ctx->zstr.avail_out);
ctx               191 ext/zip/lib/zip_source_deflate.c     return (zip_error_code_zip(&ctx->error) == ZIP_ER_OK) ? 0 : -1;
ctx               196 ext/zip/lib/zip_source_deflate.c decompress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len)
ctx               203 ext/zip/lib/zip_source_deflate.c     if (zip_error_code_zip(&ctx->error) != ZIP_ER_OK)
ctx               211 ext/zip/lib/zip_source_deflate.c     ctx->zstr.next_out = (Bytef *)data;
ctx               212 ext/zip/lib/zip_source_deflate.c     ctx->zstr.avail_out = out_len;
ctx               216 ext/zip/lib/zip_source_deflate.c 	ret = inflate(&ctx->zstr, Z_SYNC_FLUSH);
ctx               220 ext/zip/lib/zip_source_deflate.c 	    if (ctx->zstr.avail_out == 0) {
ctx               224 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.next_out = (Bytef *)data+out_offset;
ctx               225 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.avail_out = out_len;
ctx               234 ext/zip/lib/zip_source_deflate.c 	    ctx->eof = 1;
ctx               239 ext/zip/lib/zip_source_deflate.c 	    if (ctx->zstr.avail_in == 0) {
ctx               240 ext/zip/lib/zip_source_deflate.c 		if (ctx->eof) {
ctx               245 ext/zip/lib/zip_source_deflate.c 		if ((n=zip_source_read(src, ctx->buffer, sizeof(ctx->buffer))) < 0) {
ctx               246 ext/zip/lib/zip_source_deflate.c                     _zip_error_set_from_source(&ctx->error, src);
ctx               251 ext/zip/lib/zip_source_deflate.c 		    ctx->eof = 1;
ctx               254 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.next_in = (Bytef *)ctx->buffer;
ctx               255 ext/zip/lib/zip_source_deflate.c 		    ctx->zstr.avail_in = (uInt)n;
ctx               264 ext/zip/lib/zip_source_deflate.c             zip_error_set(&ctx->error, ZIP_ER_ZLIB, ret);
ctx               270 ext/zip/lib/zip_source_deflate.c     if (ctx->zstr.avail_out < len)
ctx               271 ext/zip/lib/zip_source_deflate.c 	return (zip_int64_t)(len - ctx->zstr.avail_out);
ctx               273 ext/zip/lib/zip_source_deflate.c     return (zip_error_code_zip(&ctx->error) == ZIP_ER_OK) ? 0 : -1;
ctx               280 ext/zip/lib/zip_source_deflate.c     struct deflate *ctx;
ctx               283 ext/zip/lib/zip_source_deflate.c     ctx = (struct deflate *)ud;
ctx               287 ext/zip/lib/zip_source_deflate.c 	ctx->zstr.zalloc = Z_NULL;
ctx               288 ext/zip/lib/zip_source_deflate.c 	ctx->zstr.zfree = Z_NULL;
ctx               289 ext/zip/lib/zip_source_deflate.c 	ctx->zstr.opaque = NULL;
ctx               290 ext/zip/lib/zip_source_deflate.c 	ctx->zstr.avail_in = 0;
ctx               291 ext/zip/lib/zip_source_deflate.c 	ctx->zstr.next_in = NULL;
ctx               292 ext/zip/lib/zip_source_deflate.c 	ctx->zstr.avail_out = 0;
ctx               293 ext/zip/lib/zip_source_deflate.c 	ctx->zstr.next_out = NULL;
ctx               296 ext/zip/lib/zip_source_deflate.c 	if ((ret=deflateInit2(&ctx->zstr, Z_BEST_COMPRESSION, Z_DEFLATED, -MAX_WBITS, ctx->mem_level, Z_DEFAULT_STRATEGY)) != Z_OK) {
ctx               297 ext/zip/lib/zip_source_deflate.c             zip_error_set(&ctx->error, ZIP_ER_ZLIB, ret);
ctx               304 ext/zip/lib/zip_source_deflate.c 	return compress_read(src, ctx, data, len);
ctx               307 ext/zip/lib/zip_source_deflate.c 	deflateEnd(&ctx->zstr);
ctx               316 ext/zip/lib/zip_source_deflate.c 	    st->comp_method = ctx->is_stored ? ZIP_CM_STORE : ZIP_CM_DEFLATE;
ctx               318 ext/zip/lib/zip_source_deflate.c 	    if (ctx->eof) {
ctx               319 ext/zip/lib/zip_source_deflate.c 		st->comp_size = ctx->size;
ctx               328 ext/zip/lib/zip_source_deflate.c         return zip_error_to_data(&ctx->error, data, len);
ctx               331 ext/zip/lib/zip_source_deflate.c 	deflate_free(ctx);
ctx               338 ext/zip/lib/zip_source_deflate.c         zip_error_set(&ctx->error, ZIP_ER_INTERNAL, 0);
ctx               348 ext/zip/lib/zip_source_deflate.c     struct deflate *ctx;
ctx               352 ext/zip/lib/zip_source_deflate.c     ctx = (struct deflate *)ud;
ctx               356 ext/zip/lib/zip_source_deflate.c             if ((n=zip_source_read(src, ctx->buffer, sizeof(ctx->buffer))) < 0) {
ctx               357 ext/zip/lib/zip_source_deflate.c                 _zip_error_set_from_source(&ctx->error, src);
ctx               361 ext/zip/lib/zip_source_deflate.c             ctx->zstr.zalloc = Z_NULL;
ctx               362 ext/zip/lib/zip_source_deflate.c             ctx->zstr.zfree = Z_NULL;
ctx               363 ext/zip/lib/zip_source_deflate.c             ctx->zstr.opaque = NULL;
ctx               364 ext/zip/lib/zip_source_deflate.c             ctx->zstr.next_in = (Bytef *)ctx->buffer;
ctx               365 ext/zip/lib/zip_source_deflate.c             ctx->zstr.avail_in = (uInt)n;
ctx               368 ext/zip/lib/zip_source_deflate.c             if ((ret=inflateInit2(&ctx->zstr, -MAX_WBITS)) != Z_OK) {
ctx               369 ext/zip/lib/zip_source_deflate.c                 zip_error_set(&ctx->error, ZIP_ER_ZLIB, ret);
ctx               375 ext/zip/lib/zip_source_deflate.c             return decompress_read(src, ctx, data, len);
ctx               378 ext/zip/lib/zip_source_deflate.c             inflateEnd(&ctx->zstr);
ctx               395 ext/zip/lib/zip_source_deflate.c             return zip_error_to_data(&ctx->error, data, len);
ctx               398 ext/zip/lib/zip_source_deflate.c             free(ctx);
ctx               405 ext/zip/lib/zip_source_deflate.c             zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx               412 ext/zip/lib/zip_source_deflate.c deflate_free(struct deflate *ctx)
ctx               414 ext/zip/lib/zip_source_deflate.c     free(ctx);
ctx                85 ext/zip/lib/zip_source_filep.c static int create_temp_output(struct read_file *ctx);
ctx               115 ext/zip/lib/zip_source_filep.c     struct read_file *ctx;
ctx               123 ext/zip/lib/zip_source_filep.c     if ((ctx=(struct read_file *)malloc(sizeof(struct read_file))) == NULL) {
ctx               128 ext/zip/lib/zip_source_filep.c     ctx->fname = NULL;
ctx               130 ext/zip/lib/zip_source_filep.c 	if ((ctx->fname=strdup(fname)) == NULL) {
ctx               132 ext/zip/lib/zip_source_filep.c 	    free(ctx);
ctx               136 ext/zip/lib/zip_source_filep.c     ctx->f = file;
ctx               137 ext/zip/lib/zip_source_filep.c     ctx->start = start;
ctx               138 ext/zip/lib/zip_source_filep.c     ctx->end = (len < 0 ? 0 : start+(zip_uint64_t)len);
ctx               140 ext/zip/lib/zip_source_filep.c 	memcpy(&ctx->st, st, sizeof(ctx->st));
ctx               141 ext/zip/lib/zip_source_filep.c         ctx->st.name = NULL;
ctx               142 ext/zip/lib/zip_source_filep.c         ctx->st.valid &= ~ZIP_STAT_NAME;
ctx               145 ext/zip/lib/zip_source_filep.c 	zip_stat_init(&ctx->st);
ctx               148 ext/zip/lib/zip_source_filep.c     ctx->tmpname = NULL;
ctx               149 ext/zip/lib/zip_source_filep.c     ctx->fout = NULL;
ctx               151 ext/zip/lib/zip_source_filep.c     zip_error_init(&ctx->error);
ctx               153 ext/zip/lib/zip_source_filep.c     ctx->supports = ZIP_SOURCE_SUPPORTS_READABLE | zip_source_make_command_bitmap(ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_TELL, -1);
ctx               154 ext/zip/lib/zip_source_filep.c     if (ctx->fname) {
ctx               157 ext/zip/lib/zip_source_filep.c 	if (stat(ctx->fname, &sb) < 0 || S_ISREG(sb.st_mode)) {
ctx               158 ext/zip/lib/zip_source_filep.c             ctx->supports = ZIP_SOURCE_SUPPORTS_WRITABLE;
ctx               161 ext/zip/lib/zip_source_filep.c     else if (fseeko(ctx->f, 0, SEEK_CUR) == 0) {
ctx               162 ext/zip/lib/zip_source_filep.c         ctx->supports = ZIP_SOURCE_SUPPORTS_SEEKABLE;
ctx               165 ext/zip/lib/zip_source_filep.c     if ((zs=zip_source_function_create(read_file, ctx, error)) == NULL) {
ctx               166 ext/zip/lib/zip_source_filep.c 	free(ctx->fname);
ctx               167 ext/zip/lib/zip_source_filep.c 	free(ctx);
ctx               176 ext/zip/lib/zip_source_filep.c create_temp_output(struct read_file *ctx)
ctx               183 ext/zip/lib/zip_source_filep.c     if ((temp=(char *)malloc(strlen(ctx->fname)+8)) == NULL) {
ctx               184 ext/zip/lib/zip_source_filep.c 	zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
ctx               187 ext/zip/lib/zip_source_filep.c     sprintf(temp, "%s.XXXXXX", ctx->fname);
ctx               191 ext/zip/lib/zip_source_filep.c         zip_error_set(&ctx->error, ZIP_ER_TMPOPEN, errno);
ctx               199 ext/zip/lib/zip_source_filep.c         zip_error_set(&ctx->error, ZIP_ER_TMPOPEN, errno);
ctx               214 ext/zip/lib/zip_source_filep.c     ctx->fout = tfp;
ctx               215 ext/zip/lib/zip_source_filep.c     ctx->tmpname = temp;
ctx               224 ext/zip/lib/zip_source_filep.c     struct read_file *ctx;
ctx               229 ext/zip/lib/zip_source_filep.c     ctx = (struct read_file *)state;
ctx               234 ext/zip/lib/zip_source_filep.c             if (ctx->fname == NULL) {
ctx               235 ext/zip/lib/zip_source_filep.c                 zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx               238 ext/zip/lib/zip_source_filep.c             return create_temp_output(ctx);
ctx               243 ext/zip/lib/zip_source_filep.c             if (fclose(ctx->fout) < 0) {
ctx               244 ext/zip/lib/zip_source_filep.c                 ctx->fout = NULL;
ctx               245 ext/zip/lib/zip_source_filep.c                 zip_error_set(&ctx->error, ZIP_ER_WRITE, errno);
ctx               247 ext/zip/lib/zip_source_filep.c             ctx->fout = NULL;
ctx               248 ext/zip/lib/zip_source_filep.c             if (rename(ctx->tmpname, ctx->fname) < 0) {
ctx               249 ext/zip/lib/zip_source_filep.c                 zip_error_set(&ctx->error, ZIP_ER_RENAME, errno);
ctx               255 ext/zip/lib/zip_source_filep.c 	    (void)chmod(ctx->fname, 0666&~mask);
ctx               256 ext/zip/lib/zip_source_filep.c 	    free(ctx->tmpname);
ctx               257 ext/zip/lib/zip_source_filep.c 	    ctx->tmpname = NULL;
ctx               262 ext/zip/lib/zip_source_filep.c             if (ctx->fname) {
ctx               263 ext/zip/lib/zip_source_filep.c                 fclose(ctx->f);
ctx               264 ext/zip/lib/zip_source_filep.c                 ctx->f = NULL;
ctx               269 ext/zip/lib/zip_source_filep.c             return zip_error_to_data(&ctx->error, data, len);
ctx               272 ext/zip/lib/zip_source_filep.c             free(ctx->fname);
ctx               273 ext/zip/lib/zip_source_filep.c 	    free(ctx->tmpname);
ctx               274 ext/zip/lib/zip_source_filep.c             if (ctx->f)
ctx               275 ext/zip/lib/zip_source_filep.c                 fclose(ctx->f);
ctx               276 ext/zip/lib/zip_source_filep.c             free(ctx);
ctx               280 ext/zip/lib/zip_source_filep.c             if (ctx->fname) {
ctx               281 ext/zip/lib/zip_source_filep.c                 if ((ctx->f=fopen(ctx->fname, "rb")) == NULL) {
ctx               282 ext/zip/lib/zip_source_filep.c                     zip_error_set(&ctx->error, ZIP_ER_OPEN, errno);
ctx               287 ext/zip/lib/zip_source_filep.c             if (ctx->start > 0) {
ctx               288 ext/zip/lib/zip_source_filep.c                 if (_zip_fseek_u(ctx->f, ctx->start, SEEK_SET, &ctx->error) < 0) {
ctx               292 ext/zip/lib/zip_source_filep.c             ctx->current = ctx->start;
ctx               296 ext/zip/lib/zip_source_filep.c             if (ctx->end > 0) {
ctx               297 ext/zip/lib/zip_source_filep.c                 n = ctx->end-ctx->current;
ctx               309 ext/zip/lib/zip_source_filep.c             if ((i=fread(buf, 1, (size_t)n, ctx->f)) == 0) {
ctx               310 ext/zip/lib/zip_source_filep.c                 if (ferror(ctx->f)) {
ctx               311 ext/zip/lib/zip_source_filep.c                     zip_error_set(&ctx->error, ZIP_ER_READ, errno);
ctx               315 ext/zip/lib/zip_source_filep.c             ctx->current += i;
ctx               320 ext/zip/lib/zip_source_filep.c             if (remove(ctx->fname) < 0) {
ctx               321 ext/zip/lib/zip_source_filep.c                 zip_error_set(&ctx->error, ZIP_ER_REMOVE, errno);
ctx               327 ext/zip/lib/zip_source_filep.c             if (ctx->fout) {
ctx               328 ext/zip/lib/zip_source_filep.c                 fclose(ctx->fout);
ctx               329 ext/zip/lib/zip_source_filep.c                 ctx->fout = NULL;
ctx               331 ext/zip/lib/zip_source_filep.c             (void)remove(ctx->tmpname);
ctx               332 ext/zip/lib/zip_source_filep.c 	    free(ctx->tmpname);
ctx               333 ext/zip/lib/zip_source_filep.c             ctx->tmpname = NULL;
ctx               339 ext/zip/lib/zip_source_filep.c 	    zip_source_args_seek_t *args = ZIP_SOURCE_GET_ARGS(zip_source_args_seek_t, data, len, &ctx->error);
ctx               352 ext/zip/lib/zip_source_filep.c                     if (ctx->end == 0) {
ctx               353 ext/zip/lib/zip_source_filep.c                         if (_zip_fseek(ctx->f, args->offset, SEEK_END, &ctx->error) < 0) {
ctx               356 ext/zip/lib/zip_source_filep.c                         if ((new_current = ftello(ctx->f)) < 0) {
ctx               357 ext/zip/lib/zip_source_filep.c                             zip_error_set(&ctx->error, ZIP_ER_SEEK, errno);
ctx               363 ext/zip/lib/zip_source_filep.c                         new_current = (zip_int64_t)ctx->end + args->offset;
ctx               367 ext/zip/lib/zip_source_filep.c                     new_current = (zip_int64_t)ctx->current + args->offset;
ctx               371 ext/zip/lib/zip_source_filep.c                     zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               375 ext/zip/lib/zip_source_filep.c             if (new_current < 0 || (zip_uint64_t)new_current < ctx->start || (ctx->end != 0 && (zip_uint64_t)new_current > ctx->end)) {
ctx               376 ext/zip/lib/zip_source_filep.c                 zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               380 ext/zip/lib/zip_source_filep.c             ctx->current = (zip_uint64_t)new_current;
ctx               383 ext/zip/lib/zip_source_filep.c                 if (_zip_fseek_u(ctx->f, ctx->current, SEEK_SET, &ctx->error) < 0) {
ctx               393 ext/zip/lib/zip_source_filep.c             args = ZIP_SOURCE_GET_ARGS(zip_source_args_seek_t, data, len, &ctx->error);
ctx               398 ext/zip/lib/zip_source_filep.c             if (_zip_fseek(ctx->fout, args->offset, args->whence, &ctx->error) < 0) {
ctx               405 ext/zip/lib/zip_source_filep.c 	    if (len < sizeof(ctx->st))
ctx               408 ext/zip/lib/zip_source_filep.c 	    if (ctx->st.valid != 0)
ctx               409 ext/zip/lib/zip_source_filep.c 		memcpy(data, &ctx->st, sizeof(ctx->st));
ctx               415 ext/zip/lib/zip_source_filep.c 		if (ctx->f)
ctx               416 ext/zip/lib/zip_source_filep.c 		    err = fstat(fileno(ctx->f), &fst);
ctx               418 ext/zip/lib/zip_source_filep.c 		    err = stat(ctx->fname, &fst);
ctx               421 ext/zip/lib/zip_source_filep.c                     zip_error_set(&ctx->error, ZIP_ER_READ, errno);
ctx               430 ext/zip/lib/zip_source_filep.c 		if (ctx->end != 0) {
ctx               431 ext/zip/lib/zip_source_filep.c                     st->size = ctx->end - ctx->start;
ctx               439 ext/zip/lib/zip_source_filep.c 	    return sizeof(ctx->st);
ctx               443 ext/zip/lib/zip_source_filep.c 	    return ctx->supports;
ctx               446 ext/zip/lib/zip_source_filep.c             return (zip_int64_t)ctx->current;
ctx               450 ext/zip/lib/zip_source_filep.c             off_t ret = ftello(ctx->fout);
ctx               453 ext/zip/lib/zip_source_filep.c                 zip_error_set(&ctx->error, ZIP_ER_TELL, errno);
ctx               463 ext/zip/lib/zip_source_filep.c 	    clearerr(ctx->fout);
ctx               464 ext/zip/lib/zip_source_filep.c             ret = fwrite(data, 1, len, ctx->fout);
ctx               465 ext/zip/lib/zip_source_filep.c             if (ret != len || ferror(ctx->fout)) {
ctx               466 ext/zip/lib/zip_source_filep.c                 zip_error_set(&ctx->error, ZIP_ER_WRITE, errno);
ctx               474 ext/zip/lib/zip_source_filep.c             zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx                63 ext/zip/lib/zip_source_pkware.c     struct trad_pkware *ctx;
ctx                75 ext/zip/lib/zip_source_pkware.c     if ((ctx=(struct trad_pkware *)malloc(sizeof(*ctx))) == NULL) {
ctx                80 ext/zip/lib/zip_source_pkware.c     zip_error_init(&ctx->error);
ctx                82 ext/zip/lib/zip_source_pkware.c     ctx->key[0] = KEY0;
ctx                83 ext/zip/lib/zip_source_pkware.c     ctx->key[1] = KEY1;
ctx                84 ext/zip/lib/zip_source_pkware.c     ctx->key[2] = KEY2;
ctx                85 ext/zip/lib/zip_source_pkware.c     decrypt(ctx, NULL, (const zip_uint8_t *)password, strlen(password), 1);
ctx                87 ext/zip/lib/zip_source_pkware.c     if ((s2=zip_source_layered(za, src, pkware_decrypt, ctx)) == NULL) {
ctx                88 ext/zip/lib/zip_source_pkware.c 	pkware_free(ctx);
ctx                97 ext/zip/lib/zip_source_pkware.c decrypt(struct trad_pkware *ctx, zip_uint8_t *out, const zip_uint8_t *in,
ctx               109 ext/zip/lib/zip_source_pkware.c 	    tmp = (zip_uint16_t)(ctx->key[2] | 2);
ctx               119 ext/zip/lib/zip_source_pkware.c 	ctx->key[0] = (zip_uint32_t)crc32(ctx->key[0] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL;
ctx               120 ext/zip/lib/zip_source_pkware.c 	ctx->key[1] = (ctx->key[1] + (ctx->key[0] & 0xff)) * 134775813 + 1;
ctx               121 ext/zip/lib/zip_source_pkware.c 	b = (Bytef)(ctx->key[1] >> 24);
ctx               122 ext/zip/lib/zip_source_pkware.c 	ctx->key[2] = (zip_uint32_t)crc32(ctx->key[2] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL;
ctx               128 ext/zip/lib/zip_source_pkware.c decrypt_header(zip_source_t *src, struct trad_pkware *ctx)
ctx               136 ext/zip/lib/zip_source_pkware.c         _zip_error_set_from_source(&ctx->error, src);
ctx               141 ext/zip/lib/zip_source_pkware.c         zip_error_set(&ctx->error, ZIP_ER_EOF, 0);
ctx               145 ext/zip/lib/zip_source_pkware.c     decrypt(ctx, header, header, HEADERLEN, 0);
ctx               155 ext/zip/lib/zip_source_pkware.c         zip_error_set(&ctx->error, ZIP_ER_WRONGPASSWD, 0);
ctx               167 ext/zip/lib/zip_source_pkware.c     struct trad_pkware *ctx;
ctx               170 ext/zip/lib/zip_source_pkware.c     ctx = (struct trad_pkware *)ud;
ctx               174 ext/zip/lib/zip_source_pkware.c             if (decrypt_header(src, ctx) < 0)
ctx               180 ext/zip/lib/zip_source_pkware.c                 _zip_error_set_from_source(&ctx->error, src);
ctx               209 ext/zip/lib/zip_source_pkware.c             return zip_error_to_data(&ctx->error, data, len);
ctx               212 ext/zip/lib/zip_source_pkware.c             pkware_free(ctx);
ctx               216 ext/zip/lib/zip_source_pkware.c             zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               223 ext/zip/lib/zip_source_pkware.c pkware_free(struct trad_pkware *ctx)
ctx               225 ext/zip/lib/zip_source_pkware.c     free(ctx);
ctx                41 ext/zip/lib/zip_source_win32a.c static HANDLE _win32_open_a(_zip_source_win32_read_file_t *ctx);
ctx                42 ext/zip/lib/zip_source_win32a.c static HANDLE _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
ctx                43 ext/zip/lib/zip_source_win32a.c static int _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx);
ctx                84 ext/zip/lib/zip_source_win32a.c _win32_open_a(_zip_source_win32_read_file_t *ctx)
ctx                86 ext/zip/lib/zip_source_win32a.c     return CreateFileA(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
ctx                91 ext/zip/lib/zip_source_win32a.c _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa)
ctx                95 ext/zip/lib/zip_source_win32a.c     len = strlen((const char *)ctx->fname) + 10;
ctx                98 ext/zip/lib/zip_source_win32a.c 	    zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
ctx               102 ext/zip/lib/zip_source_win32a.c     if (sprintf((char *)*temp, "%s.%08x", (const char *)ctx->fname, value) != len - 1) {
ctx               111 ext/zip/lib/zip_source_win32a.c _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx)
ctx               113 ext/zip/lib/zip_source_win32a.c     if (!MoveFileExA(ctx->tmpname, ctx->fname, MOVEFILE_REPLACE_EXISTING))
ctx                43 ext/zip/lib/zip_source_win32handle.c static int _win32_create_temp_file(_zip_source_win32_read_file_t *ctx);
ctx                48 ext/zip/lib/zip_source_win32handle.c static int _zip_stat_win32(void *h, zip_stat_t *st, _zip_source_win32_read_file_t *ctx);
ctx                75 ext/zip/lib/zip_source_win32handle.c     _zip_source_win32_read_file_t *ctx;
ctx                83 ext/zip/lib/zip_source_win32handle.c     if ((ctx = (_zip_source_win32_read_file_t *)malloc(sizeof(_zip_source_win32_read_file_t))) == NULL) {
ctx                88 ext/zip/lib/zip_source_win32handle.c     ctx->fname = NULL;
ctx                90 ext/zip/lib/zip_source_win32handle.c 	if ((ctx->fname = ops->op_strdup(fname)) == NULL) {
ctx                92 ext/zip/lib/zip_source_win32handle.c 	    free(ctx);
ctx                97 ext/zip/lib/zip_source_win32handle.c     ctx->ops = ops;
ctx                98 ext/zip/lib/zip_source_win32handle.c     ctx->h = h;
ctx                99 ext/zip/lib/zip_source_win32handle.c     ctx->start = start;
ctx               100 ext/zip/lib/zip_source_win32handle.c     ctx->end = (len < 0 ? 0 : start + (zip_uint64_t)len);
ctx               101 ext/zip/lib/zip_source_win32handle.c     ctx->closep = ctx->fname ? 1 : closep;
ctx               103 ext/zip/lib/zip_source_win32handle.c 	memcpy(&ctx->st, st, sizeof(ctx->st));
ctx               104 ext/zip/lib/zip_source_win32handle.c 	ctx->st.name = NULL;
ctx               105 ext/zip/lib/zip_source_win32handle.c 	ctx->st.valid &= ~ZIP_STAT_NAME;
ctx               108 ext/zip/lib/zip_source_win32handle.c 	zip_stat_init(&ctx->st);
ctx               111 ext/zip/lib/zip_source_win32handle.c     ctx->tmpname = NULL;
ctx               112 ext/zip/lib/zip_source_win32handle.c     ctx->hout = INVALID_HANDLE_VALUE;
ctx               114 ext/zip/lib/zip_source_win32handle.c     zip_error_init(&ctx->error);
ctx               116 ext/zip/lib/zip_source_win32handle.c     ctx->supports = ZIP_SOURCE_SUPPORTS_READABLE | zip_source_make_command_bitmap(ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_TELL, -1);
ctx               117 ext/zip/lib/zip_source_win32handle.c     if (ctx->fname) {
ctx               120 ext/zip/lib/zip_source_win32handle.c 	th = ops->op_open(ctx);
ctx               122 ext/zip/lib/zip_source_win32handle.c 	    ctx->supports = ZIP_SOURCE_SUPPORTS_WRITABLE;
ctx               128 ext/zip/lib/zip_source_win32handle.c     else if (GetFileType(ctx->h) == FILE_TYPE_DISK) {
ctx               129 ext/zip/lib/zip_source_win32handle.c 	ctx->supports = ZIP_SOURCE_SUPPORTS_SEEKABLE;
ctx               132 ext/zip/lib/zip_source_win32handle.c     if ((zs = zip_source_function_create(_win32_read_file, ctx, error)) == NULL) {
ctx               133 ext/zip/lib/zip_source_win32handle.c 	free(ctx->fname);
ctx               134 ext/zip/lib/zip_source_win32handle.c 	free(ctx);
ctx               145 ext/zip/lib/zip_source_win32handle.c     _zip_source_win32_read_file_t *ctx;
ctx               150 ext/zip/lib/zip_source_win32handle.c     ctx = (_zip_source_win32_read_file_t *)state;
ctx               155 ext/zip/lib/zip_source_win32handle.c 	if (ctx->fname == NULL) {
ctx               156 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx               159 ext/zip/lib/zip_source_win32handle.c 	return _win32_create_temp_file(ctx);
ctx               162 ext/zip/lib/zip_source_win32handle.c 	if (!CloseHandle(ctx->hout)) {
ctx               163 ext/zip/lib/zip_source_win32handle.c 	    ctx->hout = INVALID_HANDLE_VALUE;
ctx               164 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_WRITE, _zip_win32_error_to_errno(GetLastError()));
ctx               166 ext/zip/lib/zip_source_win32handle.c 	ctx->hout = INVALID_HANDLE_VALUE;
ctx               167 ext/zip/lib/zip_source_win32handle.c 	if (ctx->ops->op_rename_temp(ctx) < 0) {
ctx               168 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_RENAME, _zip_win32_error_to_errno(GetLastError()));
ctx               171 ext/zip/lib/zip_source_win32handle.c 	free(ctx->tmpname);
ctx               172 ext/zip/lib/zip_source_win32handle.c 	ctx->tmpname = NULL;
ctx               177 ext/zip/lib/zip_source_win32handle.c 	if (ctx->fname) {
ctx               178 ext/zip/lib/zip_source_win32handle.c 	    CloseHandle(ctx->h);
ctx               179 ext/zip/lib/zip_source_win32handle.c 	    ctx->h = INVALID_HANDLE_VALUE;
ctx               184 ext/zip/lib/zip_source_win32handle.c 	return zip_error_to_data(&ctx->error, data, len);
ctx               187 ext/zip/lib/zip_source_win32handle.c 	free(ctx->fname);
ctx               188 ext/zip/lib/zip_source_win32handle.c 	free(ctx->tmpname);
ctx               189 ext/zip/lib/zip_source_win32handle.c 	if (ctx->closep && ctx->h != INVALID_HANDLE_VALUE)
ctx               190 ext/zip/lib/zip_source_win32handle.c 	    CloseHandle(ctx->h);
ctx               191 ext/zip/lib/zip_source_win32handle.c 	free(ctx);
ctx               195 ext/zip/lib/zip_source_win32handle.c 	if (ctx->fname) {
ctx               196 ext/zip/lib/zip_source_win32handle.c 	    if ((ctx->h = ctx->ops->op_open(ctx)) == INVALID_HANDLE_VALUE) {
ctx               197 ext/zip/lib/zip_source_win32handle.c 		zip_error_set(&ctx->error, ZIP_ER_OPEN, _zip_win32_error_to_errno(GetLastError()));
ctx               202 ext/zip/lib/zip_source_win32handle.c 	if (ctx->closep && ctx->start > 0) {
ctx               203 ext/zip/lib/zip_source_win32handle.c 	    if (_zip_seek_win32_u(ctx->h, ctx->start, SEEK_SET, &ctx->error) < 0) {
ctx               207 ext/zip/lib/zip_source_win32handle.c 	ctx->current = ctx->start;
ctx               211 ext/zip/lib/zip_source_win32handle.c 	if (ctx->end > 0) {
ctx               212 ext/zip/lib/zip_source_win32handle.c 	    n = ctx->end - ctx->current;
ctx               224 ext/zip/lib/zip_source_win32handle.c 	if (!ctx->closep) {
ctx               225 ext/zip/lib/zip_source_win32handle.c 	    if (_zip_seek_win32_u(ctx->h, ctx->current, SEEK_SET, &ctx->error) < 0) {
ctx               230 ext/zip/lib/zip_source_win32handle.c 	if (!ReadFile(ctx->h, buf, (DWORD)n, &i, NULL)) {
ctx               231 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_READ, _zip_win32_error_to_errno(GetLastError()));
ctx               234 ext/zip/lib/zip_source_win32handle.c 	ctx->current += i;
ctx               239 ext/zip/lib/zip_source_win32handle.c 	if (ctx->ops->op_remove(ctx->fname) < 0) {
ctx               240 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_REMOVE, _zip_win32_error_to_errno(GetLastError()));
ctx               246 ext/zip/lib/zip_source_win32handle.c 	if (ctx->hout) {
ctx               247 ext/zip/lib/zip_source_win32handle.c 	    CloseHandle(ctx->hout);
ctx               248 ext/zip/lib/zip_source_win32handle.c 	    ctx->hout = INVALID_HANDLE_VALUE;
ctx               250 ext/zip/lib/zip_source_win32handle.c 	ctx->ops->op_remove(ctx->tmpname);
ctx               251 ext/zip/lib/zip_source_win32handle.c 	free(ctx->tmpname);
ctx               252 ext/zip/lib/zip_source_win32handle.c 	ctx->tmpname = NULL;
ctx               258 ext/zip/lib/zip_source_win32handle.c 	zip_source_args_seek_t *args = ZIP_SOURCE_GET_ARGS(zip_source_args_seek_t, data, len, &ctx->error);
ctx               263 ext/zip/lib/zip_source_win32handle.c 	need_seek = ctx->closep;
ctx               271 ext/zip/lib/zip_source_win32handle.c 	    if (ctx->end == 0) {
ctx               275 ext/zip/lib/zip_source_win32handle.c 		if (_zip_seek_win32(ctx->h, args->offset, SEEK_END, &ctx->error) < 0) {
ctx               279 ext/zip/lib/zip_source_win32handle.c 		if (!SetFilePointerEx(ctx->h, zero, &new_offset, FILE_CURRENT)) {
ctx               280 ext/zip/lib/zip_source_win32handle.c 		    zip_error_set(&ctx->error, ZIP_ER_SEEK, _zip_win32_error_to_errno(GetLastError()));
ctx               287 ext/zip/lib/zip_source_win32handle.c 		new_current = (zip_int64_t)ctx->end + args->offset;
ctx               291 ext/zip/lib/zip_source_win32handle.c 	    new_current = (zip_int64_t)ctx->current + args->offset;
ctx               295 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               299 ext/zip/lib/zip_source_win32handle.c 	if (new_current < 0 || (zip_uint64_t)new_current < ctx->start || (ctx->end != 0 && (zip_uint64_t)new_current > ctx->end)) {
ctx               300 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_INVAL, 0);
ctx               304 ext/zip/lib/zip_source_win32handle.c 	ctx->current = (zip_uint64_t)new_current;
ctx               307 ext/zip/lib/zip_source_win32handle.c 	    if (_zip_seek_win32_u(ctx->h, ctx->current, SEEK_SET, &ctx->error) < 0) {
ctx               317 ext/zip/lib/zip_source_win32handle.c 	args = ZIP_SOURCE_GET_ARGS(zip_source_args_seek_t, data, len, &ctx->error);
ctx               322 ext/zip/lib/zip_source_win32handle.c 	if (_zip_seek_win32(ctx->hout, args->offset, args->whence, &ctx->error) < 0) {
ctx               329 ext/zip/lib/zip_source_win32handle.c 	if (len < sizeof(ctx->st))
ctx               332 ext/zip/lib/zip_source_win32handle.c 	if (ctx->st.valid != 0)
ctx               333 ext/zip/lib/zip_source_win32handle.c 	    memcpy(data, &ctx->st, sizeof(ctx->st));
ctx               342 ext/zip/lib/zip_source_win32handle.c 	    if (ctx->h != INVALID_HANDLE_VALUE) {
ctx               343 ext/zip/lib/zip_source_win32handle.c 		h = ctx->h;
ctx               346 ext/zip/lib/zip_source_win32handle.c 		h = ctx->ops->op_open(ctx);
ctx               348 ext/zip/lib/zip_source_win32handle.c 		    zip_error_set(&ctx->error, ZIP_ER_READ, ENOENT);
ctx               353 ext/zip/lib/zip_source_win32handle.c 	    success = _zip_stat_win32(h, st, ctx);
ctx               357 ext/zip/lib/zip_source_win32handle.c 	    if (h != ctx->h) {
ctx               363 ext/zip/lib/zip_source_win32handle.c 		zip_error_set(&ctx->error, ZIP_ER_READ, _zip_win32_error_to_errno(win32err));
ctx               367 ext/zip/lib/zip_source_win32handle.c 	return sizeof(ctx->st);
ctx               371 ext/zip/lib/zip_source_win32handle.c 	return ctx->supports;
ctx               374 ext/zip/lib/zip_source_win32handle.c 	return (zip_int64_t)ctx->current;
ctx               382 ext/zip/lib/zip_source_win32handle.c 	if (!SetFilePointerEx(ctx->hout, zero, &offset, FILE_CURRENT)) {
ctx               383 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_TELL, _zip_win32_error_to_errno(GetLastError()));
ctx               393 ext/zip/lib/zip_source_win32handle.c 	if (!WriteFile(ctx->hout, data, (DWORD)len, &ret, NULL) || ret != len) {
ctx               394 ext/zip/lib/zip_source_win32handle.c 	    zip_error_set(&ctx->error, ZIP_ER_WRITE, _zip_win32_error_to_errno(GetLastError()));
ctx               402 ext/zip/lib/zip_source_win32handle.c 	zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx               409 ext/zip/lib/zip_source_win32handle.c _win32_create_temp_file(_zip_source_win32_read_file_t *ctx)
ctx               432 ext/zip/lib/zip_source_win32handle.c     if (ctx->h != INVALID_HANDLE_VALUE && GetFileType(ctx->h) == FILE_TYPE_DISK) {
ctx               435 ext/zip/lib/zip_source_win32handle.c 	success = GetUserObjectSecurity(ctx->h, &si, NULL, len, &len);
ctx               438 ext/zip/lib/zip_source_win32handle.c 		zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
ctx               441 ext/zip/lib/zip_source_win32handle.c 	    success = GetUserObjectSecurity(ctx->h, &si, psd, len, &len);
ctx               453 ext/zip/lib/zip_source_win32handle.c 	th = ctx->ops->op_create_temp(ctx, &temp, value + i, psa);
ctx               461 ext/zip/lib/zip_source_win32handle.c 	zip_error_set(&ctx->error, ZIP_ER_TMPOPEN, _zip_win32_error_to_errno(GetLastError()));
ctx               466 ext/zip/lib/zip_source_win32handle.c     ctx->hout = th;
ctx               467 ext/zip/lib/zip_source_win32handle.c     ctx->tmpname = temp;
ctx               543 ext/zip/lib/zip_source_win32handle.c _zip_stat_win32(HANDLE h, zip_stat_t *st, _zip_source_win32_read_file_t *ctx)
ctx               551 ext/zip/lib/zip_source_win32handle.c 	zip_error_set(&ctx->error, ZIP_ER_READ, _zip_win32_error_to_errno(GetLastError()));
ctx               555 ext/zip/lib/zip_source_win32handle.c 	zip_error_set(&ctx->error, ZIP_ER_READ, ERANGE);
ctx               565 ext/zip/lib/zip_source_win32handle.c 	zip_error_set(&ctx->error, ZIP_ER_READ, _zip_win32_error_to_errno(GetLastError()));
ctx               572 ext/zip/lib/zip_source_win32handle.c     if (ctx->end != 0) {
ctx               573 ext/zip/lib/zip_source_win32handle.c 	st->size = ctx->end - ctx->start;
ctx                41 ext/zip/lib/zip_source_win32w.c static HANDLE _win32_open_w(_zip_source_win32_read_file_t *ctx);
ctx                42 ext/zip/lib/zip_source_win32w.c static HANDLE _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
ctx                43 ext/zip/lib/zip_source_win32w.c static int _win32_rename_temp_w(_zip_source_win32_read_file_t *ctx);
ctx                84 ext/zip/lib/zip_source_win32w.c _win32_open_w(_zip_source_win32_read_file_t *ctx)
ctx                86 ext/zip/lib/zip_source_win32w.c     return CreateFileW(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
ctx                91 ext/zip/lib/zip_source_win32w.c _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa)
ctx                95 ext/zip/lib/zip_source_win32w.c     len = wcslen((const wchar_t *)ctx->fname) + 10;
ctx                98 ext/zip/lib/zip_source_win32w.c 	    zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
ctx               102 ext/zip/lib/zip_source_win32w.c     if (_snwprintf((wchar_t *)*temp, len, L"%s.%08x", (const wchar_t *)ctx->fname, value) != len - 1) {
ctx               111 ext/zip/lib/zip_source_win32w.c _win32_rename_temp_w(_zip_source_win32_read_file_t *ctx)
ctx               113 ext/zip/lib/zip_source_win32w.c     if (!MoveFileExW(ctx->tmpname, ctx->fname, MOVEFILE_REPLACE_EXISTING))
ctx                63 ext/zip/lib/zip_source_window.c     struct window *ctx;
ctx                70 ext/zip/lib/zip_source_window.c     if ((ctx=(struct window *)malloc(sizeof(*ctx))) == NULL) {
ctx                75 ext/zip/lib/zip_source_window.c     ctx->start = start;
ctx                76 ext/zip/lib/zip_source_window.c     ctx->end = start + length;
ctx                77 ext/zip/lib/zip_source_window.c     zip_stat_init(&ctx->stat);
ctx                78 ext/zip/lib/zip_source_window.c     zip_error_init(&ctx->error);
ctx                79 ext/zip/lib/zip_source_window.c     ctx->supports = (zip_source_supports(src) & ZIP_SOURCE_SUPPORTS_SEEKABLE) | (zip_source_make_command_bitmap(ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_TELL, -1));
ctx                80 ext/zip/lib/zip_source_window.c     ctx->needs_seek = (ctx->supports & ZIP_SOURCE_MAKE_COMMAND_BITMASK(ZIP_SOURCE_SEEK)) ? true : false;
ctx                83 ext/zip/lib/zip_source_window.c         if (_zip_stat_merge(&ctx->stat, st, error) < 0) {
ctx                84 ext/zip/lib/zip_source_window.c             free(ctx);
ctx                89 ext/zip/lib/zip_source_window.c     return zip_source_layered_create(src, window_read, ctx, error);
ctx               116 ext/zip/lib/zip_source_window.c     struct window *ctx;
ctx               121 ext/zip/lib/zip_source_window.c     ctx = (struct window *)_ctx;
ctx               128 ext/zip/lib/zip_source_window.c             return zip_error_to_data(&ctx->error, data, len);
ctx               131 ext/zip/lib/zip_source_window.c             free(ctx);
ctx               135 ext/zip/lib/zip_source_window.c             if (!ctx->needs_seek) {
ctx               136 ext/zip/lib/zip_source_window.c                 for (n=0; n<ctx->start; n+=(zip_uint64_t)ret) {
ctx               137 ext/zip/lib/zip_source_window.c                     i = (ctx->start-n > sizeof(b) ? sizeof(b) : ctx->start-n);
ctx               139 ext/zip/lib/zip_source_window.c                         _zip_error_set_from_source(&ctx->error, src);
ctx               143 ext/zip/lib/zip_source_window.c                         zip_error_set(&ctx->error, ZIP_ER_EOF, 0);
ctx               149 ext/zip/lib/zip_source_window.c 	    ctx->offset = ctx->start;
ctx               153 ext/zip/lib/zip_source_window.c             if (len > ctx->end - ctx->offset)
ctx               154 ext/zip/lib/zip_source_window.c                 len = ctx->end - ctx->offset;
ctx               159 ext/zip/lib/zip_source_window.c             if (ctx->needs_seek) {
ctx               160 ext/zip/lib/zip_source_window.c                 if (zip_source_seek(src, (zip_int64_t)ctx->offset, SEEK_SET) < 0) {
ctx               161 ext/zip/lib/zip_source_window.c                     _zip_error_set_from_source(&ctx->error, src);
ctx               167 ext/zip/lib/zip_source_window.c                 zip_error_set(&ctx->error, ZIP_ER_EOF, 0);
ctx               171 ext/zip/lib/zip_source_window.c             ctx->offset += (zip_uint64_t)ret;
ctx               174 ext/zip/lib/zip_source_window.c                 if (ctx->offset < ctx->end) {
ctx               175 ext/zip/lib/zip_source_window.c                     zip_error_set(&ctx->error, ZIP_ER_EOF, 0);
ctx               183 ext/zip/lib/zip_source_window.c             zip_int64_t new_offset = zip_source_seek_compute_offset(ctx->offset - ctx->start, ctx->end - ctx->start, data, len, &ctx->error);
ctx               189 ext/zip/lib/zip_source_window.c             ctx->offset = (zip_uint64_t)new_offset + ctx->start;
ctx               199 ext/zip/lib/zip_source_window.c             if (_zip_stat_merge(st, &ctx->stat, &ctx->error) < 0) {
ctx               206 ext/zip/lib/zip_source_window.c             return ctx->supports;
ctx               209 ext/zip/lib/zip_source_window.c             return (zip_int64_t)(ctx->offset - ctx->start);
ctx               212 ext/zip/lib/zip_source_window.c             zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0);
ctx                71 ext/zlib/zlib.c 	z_stream *ctx = zend_fetch_resource(res, NULL, le_deflate);
ctx                72 ext/zlib/zlib.c 	deflateEnd(ctx);
ctx                73 ext/zlib/zlib.c 	efree(ctx);
ctx                78 ext/zlib/zlib.c 	z_stream *ctx = zend_fetch_resource(res, NULL, le_inflate);
ctx                79 ext/zlib/zlib.c 	if (((php_zlib_context *) ctx)->inflateDict) {
ctx                80 ext/zlib/zlib.c 		efree(((php_zlib_context *) ctx)->inflateDict);
ctx                82 ext/zlib/zlib.c 	inflateEnd(ctx);
ctx                83 ext/zlib/zlib.c 	efree(ctx);
ctx               124 ext/zlib/zlib.c static int php_zlib_output_handler_ex(php_zlib_context *ctx, php_output_context *output_context)
ctx               130 ext/zlib/zlib.c 		if (Z_OK != deflateInit2(&ctx->Z, ZLIBG(output_compression_level), Z_DEFLATED, ZLIBG(compression_coding), MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY)) {
ctx               137 ext/zlib/zlib.c 		deflateEnd(&ctx->Z);
ctx               144 ext/zlib/zlib.c 			if (Z_OK != deflateInit2(&ctx->Z, ZLIBG(output_compression_level), Z_DEFLATED, ZLIBG(compression_coding), MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY)) {
ctx               147 ext/zlib/zlib.c 			ctx->buffer.used = 0;
ctx               152 ext/zlib/zlib.c 			if (ctx->buffer.free < output_context->in.used) {
ctx               153 ext/zlib/zlib.c 				if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.free + output_context->in.used))) {
ctx               154 ext/zlib/zlib.c 					deflateEnd(&ctx->Z);
ctx               157 ext/zlib/zlib.c 				ctx->buffer.data = ctx->buffer.aptr;
ctx               158 ext/zlib/zlib.c 				ctx->buffer.free += output_context->in.used;
ctx               160 ext/zlib/zlib.c 			memcpy(ctx->buffer.data + ctx->buffer.used, output_context->in.data, output_context->in.used);
ctx               161 ext/zlib/zlib.c 			ctx->buffer.free -= output_context->in.used;
ctx               162 ext/zlib/zlib.c 			ctx->buffer.used += output_context->in.used;
ctx               169 ext/zlib/zlib.c 		ctx->Z.avail_in = ctx->buffer.used;
ctx               170 ext/zlib/zlib.c 		ctx->Z.next_in = (Bytef *) ctx->buffer.data;
ctx               171 ext/zlib/zlib.c 		ctx->Z.avail_out = output_context->out.size;
ctx               172 ext/zlib/zlib.c 		ctx->Z.next_out = (Bytef *) output_context->out.data;
ctx               180 ext/zlib/zlib.c 		switch (deflate(&ctx->Z, flags)) {
ctx               183 ext/zlib/zlib.c 					deflateEnd(&ctx->Z);
ctx               187 ext/zlib/zlib.c 				if (ctx->Z.avail_in) {
ctx               188 ext/zlib/zlib.c 					memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in);
ctx               190 ext/zlib/zlib.c 				ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in;
ctx               191 ext/zlib/zlib.c 				ctx->buffer.used = ctx->Z.avail_in;
ctx               192 ext/zlib/zlib.c 				output_context->out.used = output_context->out.size - ctx->Z.avail_out;
ctx               195 ext/zlib/zlib.c 				deflateEnd(&ctx->Z);
ctx               200 ext/zlib/zlib.c 			deflateEnd(&ctx->Z);
ctx               211 ext/zlib/zlib.c 	php_zlib_context *ctx = *(php_zlib_context **) handler_context;
ctx               232 ext/zlib/zlib.c 	if (SUCCESS != php_zlib_output_handler_ex(ctx, output_context)) {
ctx               243 ext/zlib/zlib.c 					deflateEnd(&ctx->Z);
ctx               254 ext/zlib/zlib.c 						deflateEnd(&ctx->Z);
ctx               270 ext/zlib/zlib.c 	php_zlib_context *ctx = (php_zlib_context *) ecalloc(1, sizeof(php_zlib_context));
ctx               271 ext/zlib/zlib.c 	ctx->Z.zalloc = php_zlib_alloc;
ctx               272 ext/zlib/zlib.c 	ctx->Z.zfree = php_zlib_free;
ctx               273 ext/zlib/zlib.c 	return ctx;
ctx               280 ext/zlib/zlib.c 	php_zlib_context *ctx = (php_zlib_context *) opaq;
ctx               282 ext/zlib/zlib.c 	if (ctx) {
ctx               283 ext/zlib/zlib.c 		if (ctx->buffer.data) {
ctx               284 ext/zlib/zlib.c 			efree(ctx->buffer.data);
ctx               286 ext/zlib/zlib.c 		efree(ctx);
ctx               483 ext/zlib/zlib.c 	php_output_context ctx = {0};
ctx               518 ext/zlib/zlib.c 	ctx.op = flags;
ctx               519 ext/zlib/zlib.c 	ctx.in.data = in_str;
ctx               520 ext/zlib/zlib.c 	ctx.in.used = in_len;
ctx               522 ext/zlib/zlib.c 	rv = php_zlib_output_handler_ex(ZLIBG(ob_gzhandler), &ctx);
ctx               525 ext/zlib/zlib.c 		if (ctx.out.data && ctx.out.free) {
ctx               526 ext/zlib/zlib.c 			efree(ctx.out.data);
ctx               532 ext/zlib/zlib.c 	if (ctx.out.data) {
ctx               533 ext/zlib/zlib.c 		RETVAL_STRINGL(ctx.out.data, ctx.out.used);
ctx               534 ext/zlib/zlib.c 		if (ctx.out.free) {
ctx               535 ext/zlib/zlib.c 			efree(ctx.out.data);
ctx               851 ext/zlib/zlib.c 	z_stream *ctx;
ctx               884 ext/zlib/zlib.c 	ctx = ecalloc(1, sizeof(php_zlib_context));
ctx               885 ext/zlib/zlib.c 	ctx->zalloc = php_zlib_alloc;
ctx               886 ext/zlib/zlib.c 	ctx->zfree = php_zlib_free;
ctx               887 ext/zlib/zlib.c 	((php_zlib_context *) ctx)->inflateDict = dict;
ctx               888 ext/zlib/zlib.c 	((php_zlib_context *) ctx)->inflateDictlen = dictlen;
ctx               896 ext/zlib/zlib.c 	if (Z_OK == inflateInit2(ctx, encoding)) {
ctx               897 ext/zlib/zlib.c 		RETURN_RES(zend_register_resource(ctx, le_inflate));
ctx               899 ext/zlib/zlib.c 		efree(ctx);
ctx               914 ext/zlib/zlib.c 	z_stream *ctx;
ctx               922 ext/zlib/zlib.c 	if (!(ctx = zend_fetch_resource_ex(res, NULL, le_inflate))) {
ctx               947 ext/zlib/zlib.c 	ctx->next_in = (Bytef *) in_buf;
ctx               948 ext/zlib/zlib.c 	ctx->next_out = (Bytef *) ZSTR_VAL(out);
ctx               949 ext/zlib/zlib.c 	ctx->avail_in = in_len;
ctx               950 ext/zlib/zlib.c 	ctx->avail_out = ZSTR_LEN(out);
ctx               953 ext/zlib/zlib.c 		status = inflate(ctx, flush_type);
ctx               954 ext/zlib/zlib.c 		buffer_used = ZSTR_LEN(out) - ctx->avail_out;
ctx               958 ext/zlib/zlib.c 				if (ctx->avail_out == 0) {
ctx               961 ext/zlib/zlib.c 					ctx->avail_out = CHUNK_SIZE;
ctx               962 ext/zlib/zlib.c 					ctx->next_out = (Bytef *) ZSTR_VAL(out) + buffer_used;
ctx               968 ext/zlib/zlib.c 				inflateReset(ctx);
ctx               971 ext/zlib/zlib.c 				if (flush_type == Z_FINISH && ctx->avail_out == 0) {
ctx               974 ext/zlib/zlib.c 					ctx->avail_out = CHUNK_SIZE;
ctx               975 ext/zlib/zlib.c 					ctx->next_out = (Bytef *) ZSTR_VAL(out) + buffer_used;
ctx               982 ext/zlib/zlib.c 				if (((php_zlib_context *) ctx)->inflateDict) {
ctx               983 ext/zlib/zlib.c 					php_zlib_context *php_ctx = (php_zlib_context *) ctx;
ctx               984 ext/zlib/zlib.c 					switch (inflateSetDictionary(ctx, (Bytef *) php_ctx->inflateDict, php_ctx->inflateDictlen)) {
ctx              1021 ext/zlib/zlib.c 	z_stream *ctx;
ctx              1086 ext/zlib/zlib.c 	ctx = ecalloc(1, sizeof(php_zlib_context));
ctx              1087 ext/zlib/zlib.c 	ctx->zalloc = php_zlib_alloc;
ctx              1088 ext/zlib/zlib.c 	ctx->zfree = php_zlib_free;
ctx              1096 ext/zlib/zlib.c 	if (Z_OK == deflateInit2(ctx, level, Z_DEFLATED, encoding, memory, strategy)) {
ctx              1098 ext/zlib/zlib.c 			int success = deflateSetDictionary(ctx, (Bytef *) dict, dictlen);
ctx              1103 ext/zlib/zlib.c 		RETURN_RES(zend_register_resource(ctx, le_deflate));
ctx              1105 ext/zlib/zlib.c 		efree(ctx);
ctx              1120 ext/zlib/zlib.c 	z_stream *ctx;
ctx              1128 ext/zlib/zlib.c 	if (!(ctx = zend_fetch_resource_ex(res, NULL, le_deflate))) {
ctx              1157 ext/zlib/zlib.c 	out_size = PHP_ZLIB_BUFFER_SIZE_GUESS(ctx->total_in + in_len);
ctx              1158 ext/zlib/zlib.c 	out_size = (ctx->total_out >= out_size) ? 16 : (out_size - ctx->total_out);
ctx              1162 ext/zlib/zlib.c 	ctx->next_in = (Bytef *) in_buf;
ctx              1163 ext/zlib/zlib.c 	ctx->next_out = (Bytef *) ZSTR_VAL(out);
ctx              1164 ext/zlib/zlib.c 	ctx->avail_in = in_len;
ctx              1165 ext/zlib/zlib.c 	ctx->avail_out = ZSTR_LEN(out);
ctx              1167 ext/zlib/zlib.c 	status = deflate(ctx, flush_type);
ctx              1170 ext/zlib/zlib.c 			ZSTR_LEN(out) = (char *) ctx->next_out - ZSTR_VAL(out);
ctx              1175 ext/zlib/zlib.c 			ZSTR_LEN(out) = (char *) ctx->next_out - ZSTR_VAL(out);
ctx              1177 ext/zlib/zlib.c 			deflateReset(ctx);
ctx               212 main/php_streams.h 	zend_resource *ctx;
ctx               236 main/php_streams.h 	((php_stream_context*) ((stream)->ctx ? ((stream)->ctx->ptr) : NULL))
ctx               315 main/reentrancy.c do_rand(unsigned long *ctx)
ctx               317 main/reentrancy.c 	return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)PHP_RAND_MAX + 1));
ctx               322 main/reentrancy.c php_rand_r(unsigned int *ctx)
ctx               324 main/reentrancy.c 	u_long val = (u_long) *ctx;
ctx               325 main/reentrancy.c 	*ctx = do_rand(&val);
ctx               326 main/reentrancy.c 	return (int) *ctx;
ctx                85 main/streams/streams.c 	if (stream->ctx) {
ctx                86 main/streams/streams.c 		zend_list_delete(stream->ctx);
ctx                87 main/streams/streams.c 		stream->ctx = NULL;
ctx               318 main/streams/streams.c 	ret->ctx              = NULL;
ctx              2165 main/streams/streams.c 		stream->ctx = context->res;
ctx              2168 main/streams/streams.c 		stream->ctx = NULL;
ctx               812 main/streams/xp_socket.c 				xparam->outputs.client->ctx = stream->ctx;
ctx               813 main/streams/xp_socket.c 				if (stream->ctx) {
ctx               814 main/streams/xp_socket.c 					GC_REFCOUNT(stream->ctx)++;
ctx                61 sapi/apache2handler/php_functions.c 	php_struct *ctx = SG(server_context);
ctx                63 sapi/apache2handler/php_functions.c 	if (!filename || !ctx || !ctx->r) {
ctx                67 sapi/apache2handler/php_functions.c 	return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters);
ctx               175 sapi/apache2handler/php_functions.c 	php_struct *ctx;
ctx               185 sapi/apache2handler/php_functions.c 	ctx = SG(server_context);
ctx               186 sapi/apache2handler/php_functions.c 	arr = apr_table_elts(ctx->r->headers_in);
ctx               199 sapi/apache2handler/php_functions.c 	php_struct *ctx;
ctx               209 sapi/apache2handler/php_functions.c 	ctx = SG(server_context);
ctx               210 sapi/apache2handler/php_functions.c 	arr = apr_table_elts(ctx->r->headers_out);
ctx               223 sapi/apache2handler/php_functions.c 	php_struct *ctx;
ctx               232 sapi/apache2handler/php_functions.c 	ctx = SG(server_context);
ctx               234 sapi/apache2handler/php_functions.c 	old_note_val = (char *) apr_table_get(ctx->r->notes, note_name);
ctx               237 sapi/apache2handler/php_functions.c 		apr_table_set(ctx->r->notes, note_name, note_val);
ctx               255 sapi/apache2handler/php_functions.c 	php_struct *ctx;
ctx               266 sapi/apache2handler/php_functions.c 	ctx = SG(server_context);
ctx               268 sapi/apache2handler/php_functions.c 	r = ctx->r;
ctx               290 sapi/apache2handler/php_functions.c 	php_struct *ctx;
ctx               302 sapi/apache2handler/php_functions.c 	ctx = SG(server_context);
ctx               304 sapi/apache2handler/php_functions.c 	r = ctx->r;
ctx                76 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx;
ctx                78 sapi/apache2handler/sapi_apache2.c 	ctx = SG(server_context);
ctx                79 sapi/apache2handler/sapi_apache2.c 	r = ctx->r;
ctx                91 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx;
ctx                94 sapi/apache2handler/sapi_apache2.c 	ctx = SG(server_context);
ctx                98 sapi/apache2handler/sapi_apache2.c 			apr_table_unset(ctx->r->headers_out, sapi_header->header);
ctx               102 sapi/apache2handler/sapi_apache2.c 			apr_table_clear(ctx->r->headers_out);
ctx               121 sapi/apache2handler/sapi_apache2.c 				if (ctx->content_type) {
ctx               122 sapi/apache2handler/sapi_apache2.c 					efree(ctx->content_type);
ctx               124 sapi/apache2handler/sapi_apache2.c 				ctx->content_type = estrdup(val);
ctx               134 sapi/apache2handler/sapi_apache2.c 				ap_set_content_length(ctx->r, clen);
ctx               136 sapi/apache2handler/sapi_apache2.c 				apr_table_set(ctx->r->headers_out, sapi_header->header, val);
ctx               138 sapi/apache2handler/sapi_apache2.c 				apr_table_add(ctx->r->headers_out, sapi_header->header, val);
ctx               153 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx = SG(server_context);
ctx               156 sapi/apache2handler/sapi_apache2.c 	ctx->r->status = SG(sapi_headers).http_response_code;
ctx               161 sapi/apache2handler/sapi_apache2.c 		ctx->r->status_line = apr_pstrdup(ctx->r->pool, sline + 9);
ctx               162 sapi/apache2handler/sapi_apache2.c 		ctx->r->proto_num = 1000 + (sline[7]-'0');
ctx               164 sapi/apache2handler/sapi_apache2.c 			apr_table_set(ctx->r->subprocess_env, "force-response-1.0", "true");
ctx               170 sapi/apache2handler/sapi_apache2.c 	if (!ctx->content_type) {
ctx               171 sapi/apache2handler/sapi_apache2.c 		ctx->content_type = sapi_get_default_content_type();
ctx               173 sapi/apache2handler/sapi_apache2.c 	ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type));
ctx               174 sapi/apache2handler/sapi_apache2.c 	efree(ctx->content_type);
ctx               175 sapi/apache2handler/sapi_apache2.c 	ctx->content_type = NULL;
ctx               184 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx = SG(server_context);
ctx               188 sapi/apache2handler/sapi_apache2.c 	r = ctx->r;
ctx               189 sapi/apache2handler/sapi_apache2.c 	brigade = ctx->brigade;
ctx               215 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx = SG(server_context);
ctx               218 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_uid = 0;
ctx               219 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_gid = 0;
ctx               221 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_uid = ctx->r->finfo.user;
ctx               222 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_gid = ctx->r->finfo.group;
ctx               224 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_dev = ctx->r->finfo.device;
ctx               225 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_ino = ctx->r->finfo.inode;
ctx               227 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_atime.tv_sec = apr_time_sec(ctx->r->finfo.atime);
ctx               228 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_mtime.tv_sec = apr_time_sec(ctx->r->finfo.mtime);
ctx               229 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_ctime.tv_sec = apr_time_sec(ctx->r->finfo.ctime);
ctx               231 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_atime = apr_time_sec(ctx->r->finfo.atime);
ctx               232 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_mtime = apr_time_sec(ctx->r->finfo.mtime);
ctx               233 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_ctime = apr_time_sec(ctx->r->finfo.ctime);
ctx               236 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_size = ctx->r->finfo.size;
ctx               237 sapi/apache2handler/sapi_apache2.c 	ctx->finfo.st_nlink = ctx->r->finfo.nlink;
ctx               239 sapi/apache2handler/sapi_apache2.c 	return &ctx->finfo;
ctx               245 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx = SG(server_context);
ctx               248 sapi/apache2handler/sapi_apache2.c 	http_cookie = apr_table_get(ctx->r->headers_in, "cookie");
ctx               257 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx = SG(server_context);
ctx               260 sapi/apache2handler/sapi_apache2.c 	if (ctx == NULL) {
ctx               264 sapi/apache2handler/sapi_apache2.c 	env_var = apr_table_get(ctx->r->subprocess_env, name);
ctx               272 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx = SG(server_context);
ctx               273 sapi/apache2handler/sapi_apache2.c 	const apr_array_header_t *arr = apr_table_elts(ctx->r->subprocess_env);
ctx               286 sapi/apache2handler/sapi_apache2.c 	if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val_len)) {
ctx               287 sapi/apache2handler/sapi_apache2.c 		php_register_variable_safe("PHP_SELF", ctx->r->uri, new_val_len, track_vars_array);
ctx               294 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx;
ctx               297 sapi/apache2handler/sapi_apache2.c 	ctx = server_context;
ctx               305 sapi/apache2handler/sapi_apache2.c 	r = ctx->r;
ctx               319 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx;
ctx               321 sapi/apache2handler/sapi_apache2.c 	ctx = SG(server_context);
ctx               323 sapi/apache2handler/sapi_apache2.c 	if (ctx == NULL) { /* we haven't initialized our ctx yet, oh well */
ctx               326 sapi/apache2handler/sapi_apache2.c 		ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, ctx->r, "%s", msg);
ctx               341 sapi/apache2handler/sapi_apache2.c 	php_struct *ctx = SG(server_context);
ctx               342 sapi/apache2handler/sapi_apache2.c 	return ((double) apr_time_as_msec(ctx->r->request_time)) / 1000.0;
ctx               478 sapi/apache2handler/sapi_apache2.c static int php_apache_request_ctor(request_rec *r, php_struct *ctx)
ctx               511 sapi/apache2handler/sapi_apache2.c 	ctx->r->user = apr_pstrdup(ctx->r->pool, SG(request_info).auth_user);
ctx               545 sapi/apache2handler/sapi_apache2.c 	php_struct * volatile ctx;
ctx               562 sapi/apache2handler/sapi_apache2.c 	ctx = SG(server_context);
ctx               563 sapi/apache2handler/sapi_apache2.c 	if (ctx == NULL || (ctx && ctx->request_processed && !strcmp(r->protocol, "INCLUDED"))) {
ctx               565 sapi/apache2handler/sapi_apache2.c 		ctx = SG(server_context) = apr_pcalloc(r->pool, sizeof(*ctx));
ctx               571 sapi/apache2handler/sapi_apache2.c 		ctx->r = r;
ctx               572 sapi/apache2handler/sapi_apache2.c 		ctx = NULL; /* May look weird to null it here, but it is to catch the right case in the first_try later on */
ctx               574 sapi/apache2handler/sapi_apache2.c 		parent_req = ctx->r;
ctx               575 sapi/apache2handler/sapi_apache2.c 		ctx->r = r;
ctx               624 sapi/apache2handler/sapi_apache2.c 	if (ctx == NULL) {
ctx               626 sapi/apache2handler/sapi_apache2.c 		ctx = SG(server_context);
ctx               627 sapi/apache2handler/sapi_apache2.c 		ctx->brigade = brigade;
ctx               629 sapi/apache2handler/sapi_apache2.c 		if (php_apache_request_ctor(r, ctx)!=SUCCESS) {
ctx               634 sapi/apache2handler/sapi_apache2.c 			parent_req = ctx->r;
ctx               640 sapi/apache2handler/sapi_apache2.c 			if (php_apache_request_ctor(r, ctx)!=SUCCESS) {
ctx               655 sapi/apache2handler/sapi_apache2.c 		ctx->r = r;
ctx               656 sapi/apache2handler/sapi_apache2.c 		brigade = ctx->brigade;
ctx               684 sapi/apache2handler/sapi_apache2.c 			apr_psprintf(ctx->r->pool, "%" APR_SIZE_T_FMT, zend_memory_peak_usage(1)));
ctx               691 sapi/apache2handler/sapi_apache2.c 		ctx->request_processed = 1;
ctx               704 sapi/apache2handler/sapi_apache2.c 		ctx->r = parent_req;
ctx              3362 sapi/litespeed/lsapilib.c void lsapi_MD5Init(struct lsapi_MD5Context *ctx)
ctx              3364 sapi/litespeed/lsapilib.c     ctx->buf[0] = 0x67452301;
ctx              3365 sapi/litespeed/lsapilib.c     ctx->buf[1] = 0xefcdab89;
ctx              3366 sapi/litespeed/lsapilib.c     ctx->buf[2] = 0x98badcfe;
ctx              3367 sapi/litespeed/lsapilib.c     ctx->buf[3] = 0x10325476;
ctx              3369 sapi/litespeed/lsapilib.c     ctx->bits[0] = 0;
ctx              3370 sapi/litespeed/lsapilib.c     ctx->bits[1] = 0;
ctx              3377 sapi/litespeed/lsapilib.c void lsapi_MD5Update(struct lsapi_MD5Context *ctx, unsigned char const *buf, unsigned len)
ctx              3383 sapi/litespeed/lsapilib.c     t = ctx->bits[0];
ctx              3384 sapi/litespeed/lsapilib.c     if ((ctx->bits[0] = t + ((uint32) len << 3)) < t)
ctx              3385 sapi/litespeed/lsapilib.c         ctx->bits[1]++;                /* Carry from low to high */
ctx              3386 sapi/litespeed/lsapilib.c     ctx->bits[1] += len >> 29;
ctx              3393 sapi/litespeed/lsapilib.c         unsigned char *p = (unsigned char *) ctx->in + t;
ctx              3401 sapi/litespeed/lsapilib.c         byteReverse(ctx->in, 16);
ctx              3402 sapi/litespeed/lsapilib.c         lsapi_MD5Transform(ctx->buf, (uint32 *) ctx->in);
ctx              3409 sapi/litespeed/lsapilib.c         memmove(ctx->in, buf, 64);
ctx              3410 sapi/litespeed/lsapilib.c         byteReverse(ctx->in, 16);
ctx              3411 sapi/litespeed/lsapilib.c         lsapi_MD5Transform(ctx->buf, (uint32 *) ctx->in);
ctx              3418 sapi/litespeed/lsapilib.c     memmove(ctx->in, buf, len);
ctx              3425 sapi/litespeed/lsapilib.c void lsapi_MD5Final(unsigned char digest[16], struct lsapi_MD5Context *ctx)
ctx              3431 sapi/litespeed/lsapilib.c     count = (ctx->bits[0] >> 3) & 0x3F;
ctx              3435 sapi/litespeed/lsapilib.c     p = ctx->in + count;
ctx              3445 sapi/litespeed/lsapilib.c         byteReverse(ctx->in, 16);
ctx              3446 sapi/litespeed/lsapilib.c         lsapi_MD5Transform(ctx->buf, (uint32 *) ctx->in);
ctx              3449 sapi/litespeed/lsapilib.c         memset(ctx->in, 0, 56);
ctx              3454 sapi/litespeed/lsapilib.c     byteReverse(ctx->in, 14);
ctx              3457 sapi/litespeed/lsapilib.c     ((uint32 *) ctx->in)[14] = ctx->bits[0];
ctx              3458 sapi/litespeed/lsapilib.c     ((uint32 *) ctx->in)[15] = ctx->bits[1];
ctx              3460 sapi/litespeed/lsapilib.c     lsapi_MD5Transform(ctx->buf, (uint32 *) ctx->in);
ctx              3461 sapi/litespeed/lsapilib.c     byteReverse((unsigned char *) ctx->buf, 4);
ctx              3462 sapi/litespeed/lsapilib.c     memmove(digest, ctx->buf, 16);
ctx              3463 sapi/litespeed/lsapilib.c     memset(ctx, 0, sizeof(*ctx));        /* In case it's sensitive */