1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00

Generalize SAPI a bit

This commit is contained in:
Zeev Suraski
1999-09-16 22:15:43 +00:00
parent f52ffb8943
commit 13e67642fa
3 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ LIBOBJS=@LIBOBJS@
SOURCE = main.c internal_functions.c snprintf.c php3_sprintf.c \
configuration-parser.c configuration-scanner.c request_info.c \
safe_mode.c fopen-wrappers.c php3_realpath.c alloca.c output.c \
php_ini.c SAPI.c cgi_main.c rfc1867.c dlist.c
php_ini.c SAPI.c cgi_main.c rfc1867.c dlist.c rfc1867.c
OBJS = $(SOURCE:.c=.o) $(LIBOBJS)
PHPLIBS = -Llibzend -lzend -Lext -lphpext
LIBS = $(PHPLIBS) $(EXTRA_LIBS) @LIBS@
+1 -1
View File
@@ -213,7 +213,7 @@ PHPAPI void php_print_info(int flag)
}
PUTS("\"]</b></td><td bgcolor=\"" PHP_CONTENTS_COLOR "\">");
if ((*tmp)->type == IS_ARRAY) {
PUTS("<br><pre>");
PUTS("<pre>");
zend_print_zval_r(*tmp, 0);
PUTS("</pre>");
} else {
+14
View File
@@ -0,0 +1,14 @@
#include "php.h"
#include "SAPI.h"
#include "rfc1867.h"
static sapi_post_content_type_reader php_post_content_types[] = {
{ MULTIPART_CONTENT_TYPE, sizeof(MULTIPART_CONTENT_TYPE)-1, rfc1867_post_reader },
{ NULL, 0, NULL }
}
int php_startup_SAPI_content_types()
{
sapi_register_post_readers(php_post_content_types);
return SUCCESS;
}