summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2014-02-13 11:54:52 +0900
committerYasuo Ohgaki <yohgaki@php.net>2014-02-13 11:54:52 +0900
commitcbd108abf19d9fb9ae1d4ccd153215f56a2763e8 (patch)
tree8a0631208c010d7b4baab089d1a7e56d1f6e6d0e /main/SAPI.h
parent06bbfe1e2a46d6c2eaf74b7c576b09114ee2e670 (diff)
downloadphp-git-cbd108abf19d9fb9ae1d4ccd153215f56a2763e8.tar.gz
Implement RFC https://wiki.php.net/rfc/default_encoding
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index a2158a9590..990ca6990c 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -21,6 +21,7 @@
#ifndef SAPI_H
#define SAPI_H
+#include "php.h"
#include "zend.h"
#include "zend_API.h"
#include "zend_llist.h"
@@ -291,7 +292,7 @@ struct _sapi_post_entry {
#define SAPI_HEADER_SEND_FAILED 3
#define SAPI_DEFAULT_MIMETYPE "text/html"
-#define SAPI_DEFAULT_CHARSET ""
+#define SAPI_DEFAULT_CHARSET PHP_DEFAULT_CHARSET
#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION
#define SAPI_POST_READER_FUNC(post_reader) void post_reader(TSRMLS_D)