Home
last modified time | relevance | path

Searched refs:sapi_headers (Results 1 – 25 of 32) sorted by path

12

/PHP-5.5/
H A DNEWS7006 - Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype). (Dmitry)
/PHP-5.5/ext/iconv/
H A Diconv.c344 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
345 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
346 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
348 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
349 mimetype_len = s - SG(sapi_headers).mimetype; in php_iconv_output_handler()
351 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler()
365 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
/PHP-5.5/ext/mbstring/
H A Dmbstring.c2120 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2123 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2124 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2125 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2126 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2128 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2131 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
2136 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION()
2141 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/PHP-5.5/ext/session/
H A Dsession.c1301 zend_llist *l = &SG(sapi_headers).headers;
/PHP-5.5/ext/soap/
H A Dsoap.c2136 _old_http_response_code = SG(sapi_headers).http_response_code;
2137 _old_http_status_line = SG(sapi_headers).http_status_line;
2197 SG(sapi_headers).http_status_line = NULL;
2204 if (SG(sapi_headers).http_status_line) {
2205 efree(SG(sapi_headers).http_status_line);
2207 SG(sapi_headers).http_status_line = _old_http_status_line;
2281 SG(sapi_headers).http_status_line = NULL;
2288 if (SG(sapi_headers).http_status_line) {
2289 efree(SG(sapi_headers).http_status_line);
2291 SG(sapi_headers).http_status_line = _old_http_status_line;
[all …]
/PHP-5.5/ext/standard/
H A Dhead.c281 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION()
299 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION()
300 SG(sapi_headers).http_response_code = response_code; in PHP_FUNCTION()
309 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION()
313 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
/PHP-5.5/main/
H A DSAPI.c394 SG(sapi_headers).http_status_line = NULL; in sapi_activate_headers_only()
395 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
437 SG(sapi_headers).http_status_line = NULL; in sapi_activate()
438 SG(sapi_headers).mimetype = NULL; in sapi_activate()
495 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free()
541 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
542 efree(SG(sapi_headers).mimetype); in sapi_deactivate()
543 SG(sapi_headers).mimetype = NULL; in sapi_deactivate()
590 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code()
770 if (SG(sapi_headers).http_status_line) { in sapi_header_op()
[all …]
H A DSAPI.h121 sapi_headers_struct sapi_headers; member
234 …i_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC);
235 int (*send_headers)(sapi_headers_struct *sapi_headers TSRMLS_DC);
H A Dmain.c1156 SG(sapi_headers).http_response_code == 200 && in php_error_cb()
/PHP-5.5/sapi/aolserver/
H A Daolserver.c114 php_ns_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRML… in php_ns_sapi_header_handler()
148 php_ns_sapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in php_ns_sapi_send_headers()
150 if(SG(sapi_headers).send_default_content_type) { in php_ns_sapi_send_headers()
154 Ns_ConnFlushHeaders(NSG(conn), SG(sapi_headers).http_response_code); in php_ns_sapi_send_headers()
459 SG(sapi_headers).http_response_code = 200; in php_ns_request_ctor()
/PHP-5.5/sapi/apache/
H A Dmod_php5.c38 …i_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC);
39 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC);
166 …pi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_apache_header_handler()
221 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_apache_send_headers()
224 const char *sline = SG(sapi_headers).http_status_line; in sapi_apache_send_headers()
231 r->status = SG(sapi_headers).http_response_code; in sapi_apache_send_headers()
533 SG(sapi_headers).http_response_code = r->status; in init_request_info()
/PHP-5.5/sapi/apache2filter/
H A Dsapi_apache2.c94 …pi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) in php_apache_sapi_header_handler()
146 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in php_apache_sapi_send_headers()
150 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers()
266 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush()
404 SG(sapi_headers).http_response_code = !f->r->status ? HTTP_OK : f->r->status; in php_apache_request_ctor()
/PHP-5.5/sapi/apache2handler/
H A Dsapi_apache2.c92 …pi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) in php_apache_sapi_header_handler()
154 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in php_apache_sapi_send_headers()
157 const char *sline = SG(sapi_headers).http_status_line; in php_apache_sapi_send_headers()
159 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers()
308 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush()
476 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/PHP-5.5/sapi/apache_hooks/
H A Dmod_php5.c37 …i_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC);
38 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC);
311 …pi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_apache_header_handler()
364 static int sapi_apache_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_apache_send_headers()
370 ((request_rec *) SG(server_context))->status = SG(sapi_headers).http_response_code; in sapi_apache_send_headers()
586 SG(sapi_headers).http_response_code = r->status; in init_request_info()
/PHP-5.5/sapi/caudium/
H A Dcaudium.c338 sapi_headers_struct *sapi_headers TSRMLS_DC) in php_caudium_sapi_header_handler()
360 php_caudium_low_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in php_caudium_low_send_headers()
374 push_int(SG(sapi_headers).http_response_code); in php_caudium_low_send_headers()
386 php_caudium_sapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in php_caudium_sapi_send_headers()
389 THREAD_SAFE_RUN(res = php_caudium_low_send_headers(sapi_headers TSRMLS_CC), "send headers"); in php_caudium_sapi_send_headers()
622 SG(sapi_headers).http_response_code = 200; in php_caudium_module_main()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c406 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
412 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
431 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
433 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
453 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
1159 SG(sapi_headers).http_response_code = 200;
1358 SG(sapi_headers).http_response_code = 404;
1700 if (!&SG(sapi_headers).headers) {
1937 SG(sapi_headers).http_response_code = 400;
2352 SG(sapi_headers).http_response_code = 403;
[all …]
/PHP-5.5/sapi/cli/
H A Dphp_cli.c402 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) /* {{{ */ in sapi_cli_send_headers()
H A Dphp_cli_server.c541 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
642 static int sapi_cli_server_discard_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) /* {{{ */{ in sapi_cli_server_discard_headers()
647 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) /* {{{ */ in sapi_cli_server_send_headers()
658 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
659 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
667 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
673 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2032 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL TSRMLS_CC); in php_cli_server_dispatch_script()
2100 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2197 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
[all …]
/PHP-5.5/sapi/continuity/
H A Dcapi.c146 …capi_header_handler(sapi_header_struct * sapi_header, sapi_headers_struct * sapi_headers TSRMLS_DC) in sapi_capi_header_handler()
177 static int sapi_capi_send_headers(sapi_headers_struct * sapi_headers TSRMLS_DC) in sapi_capi_send_headers()
187 if (SG(sapi_headers).send_default_content_type) { in sapi_capi_send_headers()
191 httpFset_status(rc->t, SG(sapi_headers).http_response_code, NULL); in sapi_capi_send_headers()
427 SG(sapi_headers).http_response_code = 200; in capi_request_ctor()
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_log.c300 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write() local
303 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write()
307 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
311 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
317 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
322 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
379 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
H A Dfpm_main.c397 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
403 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
422 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
424 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
1074 SG(sapi_headers).http_response_code = 200;
1327 SG(sapi_headers).http_response_code = 404;
1822 SG(sapi_headers).http_response_code = 400;
1912 SG(sapi_headers).http_response_code = 404;
1920 SG(sapi_headers).http_response_code = 403;
1936 SG(sapi_headers).http_response_code = 403;
[all …]
H A Dfpm_status.c69 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
87 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
97 SG(sapi_headers).http_response_code = 503; in fpm_status_handle_request()
110 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
121 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
/PHP-5.5/sapi/isapi/
H A Dphp5isapi.c218 …pi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_isapi_header_handler()
242 static int sapi_isapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_isapi_send_headers()
252 if (SG(sapi_headers).send_default_content_type) { in sapi_isapi_send_headers()
261 if (SG(sapi_headers).send_default_content_type) { in sapi_isapi_send_headers()
270 switch (SG(sapi_headers).http_response_code) { in sapi_isapi_send_headers()
281 const char *sline = SG(sapi_headers).http_status_line; in sapi_isapi_send_headers()
294 snprintf(status_buf, MAX_STATUS_LENGTH, "%d Undescribed", SG(sapi_headers).http_response_code); in sapi_isapi_send_headers()
304 lpECB->dwHttpStatusCode = SG(sapi_headers).http_response_code; in sapi_isapi_send_headers()
748 …SG(sapi_headers).http_response_code = 200; /* I think dwHttpStatusCode is invalid at this stage -… in init_request_info()
775 SG(sapi_headers).http_response_code = 404; in init_request_info()
[all …]
/PHP-5.5/sapi/litespeed/
H A Dlsapi_main.c396 static int sapi_lsapi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_lsapi_send_headers()
401 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers()
403 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
408 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
410 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers()
505 SG(sapi_headers).http_response_code = 200; in init_request_info()
1239 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
1244 h = zend_llist_get_first_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION()
1265 h = zend_llist_get_next_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION()
/PHP-5.5/sapi/milter/
H A Dphp_milter.c886 static int sapi_milter_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) in sapi_milter_send_headers()

Completed in 167 milliseconds

12