Permalink
Browse files

Generalize SAPI a bit

  • Loading branch information...
1 parent f52ffb8 commit 13e67642fa1410fcc3840d2ea283c8bf4730133d @zsuraski zsuraski committed Sep 16, 1999
Showing with 16 additions and 2 deletions.
  1. +1 −1 Makefile.in
  2. +1 −1 ext/standard/info.c
  3. +14 −0 main/php_content_types.c
View
@@ -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@
View
@@ -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 {
View
@@ -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;
+}

0 comments on commit 13e6764

Please sign in to comment.