Browse Source

Generalize SAPI a bit

experimetnal/RETURN_REF_PATCH
Zeev Suraski 27 years ago
parent
commit
13e67642fa
  1. 2
      Makefile.in
  2. 2
      ext/standard/info.c
  3. 14
      main/php_content_types.c

2
Makefile.in

@ -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@

2
ext/standard/info.c

@ -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
main/php_content_types.c

@ -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;
}
Loading…
Cancel
Save