diff options
| author | Andi Gutmans <andi@php.net> | 1999-05-05 18:25:20 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-05-05 18:25:20 +0000 |
| commit | 537cc54acd4844624e60ed9f128155b35374b4a6 (patch) | |
| tree | 4c5f894a3f2cc247ce3aa2b2e28daf379c5dc612 /main/main.c | |
| parent | 9e67cded5e5927bbde212fdc37a72ce29aa32b2e (diff) | |
| download | php-git-537cc54acd4844624e60ed9f128155b35374b4a6.tar.gz | |
Added initial headers support in SAPI
*untested*
It definitely broke the thread-safe CGI, it may have broken other stuff as well.
Diffstat (limited to 'main/main.c')
| -rw-r--r-- | main/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/main.c b/main/main.c index a745601c47..cfc39a5a0d 100644 --- a/main/main.c +++ b/main/main.c @@ -1124,16 +1124,16 @@ PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_ if (SG(request_info).query_string && SG(request_info).query_string[0]=='=') { if (!strcmp(SG(request_info).query_string+1, "PHPE9568F34-D428-11d2-A769-00AA001ACF42")) { - char *header_line = estrndup("Content-type: image/gif", sizeof("Content-type: image/gif")-1); + char *header_line = estrndup(CONTEXT_TYPE_IMAGE_GIF, sizeof(CONTEXT_TYPE_IMAGE_GIF)); - php4i_add_header_information(header_line); + php4i_add_header_information(header_line, sizeof(CONTEXT_TYPE_IMAGE_GIF)); PHPWRITE(php4_logo, sizeof(php4_logo)); efree(header_line); return; } else if (!strcmp(SG(request_info).query_string+1, "PHPE9568F35-D428-11d2-A769-00AA001ACF42")) { - char *header_line = estrndup("Content-type: image/gif", sizeof("Content-type: image/gif")-1); + char *header_line = estrndup(CONTEXT_TYPE_IMAGE_GIF, sizeof(CONTEXT_TYPE_IMAGE_GIF)); - php4i_add_header_information(header_line); + php4i_add_header_information(header_line, sizeof(CONTEXT_TYPE_IMAGE_GIF)); PHPWRITE(zendtech_logo, sizeof(zendtech_logo)); efree(header_line); return; |
