summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php5.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2005-08-11 23:36:07 +0000
committerAndrei Zmievski <andrei@php.net>2005-08-11 23:36:07 +0000
commit264cec8be641d1c2ea0c95d915d506c4fdbc751a (patch)
treee9f980e16f707842248125cf22efabec782cfece /sapi/apache/mod_php5.c
parentb80cb7bd2f721dad13a97a1300c6dc56934daaf7 (diff)
downloadphp-git-264cec8be641d1c2ea0c95d915d506c4fdbc751a.tar.gz
Unicode support.
Diffstat (limited to 'sapi/apache/mod_php5.c')
-rw-r--r--sapi/apache/mod_php5.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/sapi/apache/mod_php5.c b/sapi/apache/mod_php5.c
index 7d1078a20d..450b79021a 100644
--- a/sapi/apache/mod_php5.c
+++ b/sapi/apache/mod_php5.c
@@ -537,16 +537,12 @@ static char *php_apache_get_default_mimetype(request_rec *r TSRMLS_DC)
{
char *mimetype;
- if (SG(default_mimetype) || SG(default_charset)) {
- /* Assume output will be of the default MIME type. Individual
- scripts may change this later. */
- char *tmpmimetype;
- tmpmimetype = sapi_get_default_content_type(TSRMLS_C);
- mimetype = pstrdup(r->pool, tmpmimetype);
- efree(tmpmimetype);
- } else {
- mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET;
- }
+ /* Assume output will be of the default MIME type. Individual
+ scripts may change this later. */
+ char *tmpmimetype;
+ tmpmimetype = sapi_get_default_content_type(TSRMLS_C);
+ mimetype = pstrdup(r->pool, tmpmimetype);
+ efree(tmpmimetype);
return mimetype;
}
/* }}} */
@@ -711,7 +707,7 @@ static zend_bool should_overwrite_per_dir_entry(HashTable *target_ht, php_per_di
{
php_per_dir_entry *orig_per_dir_entry;
- if (zend_hash_find(target_ht, hash_key->arKey, hash_key->nKeyLength, (void **) &orig_per_dir_entry)==FAILURE) {
+ if (zend_u_hash_find(target_ht, hash_key->type, hash_key->u.string, hash_key->nKeyLength, (void **) &orig_per_dir_entry)==FAILURE) {
return 1; /* does not exist in dest, copy from source */
}