summaryrefslogtreecommitdiff
path: root/main/streams
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-07-11 15:17:59 +0000
committerDmitry Stogov <dmitry@php.net>2007-07-11 15:17:59 +0000
commiteb5dab85c9a23a5bd7f7be3093ebc31c320aa6be (patch)
tree5da04826385469934fb4c7c338e7dc1647871bac /main/streams
parent90ad13cca1557ee4dc807a9832c6b244b31906b7 (diff)
downloadphp-git-eb5dab85c9a23a5bd7f7be3093ebc31c320aa6be.tar.gz
Unicode support
Diffstat (limited to 'main/streams')
-rw-r--r--main/streams/memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/streams/memory.c b/main/streams/memory.c
index 4d58f1cb9a..40eb078467 100644
--- a/main/streams/memory.c
+++ b/main/streams/memory.c
@@ -640,11 +640,11 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, cha
MAKE_STD_ZVAL(meta);
array_init(meta);
if (!semi) { /* there is only a mime type */
- add_ascii_assoc_stringl(meta, "mediatype", path, mlen, 1);
+ add_ascii_assoc_ascii_stringl(meta, "mediatype", path, mlen, 1);
mlen = 0;
} else if (sep && sep < semi) { /* there is a mime type */
plen = semi - path;
- add_ascii_assoc_stringl(meta, "mediatype", path, plen, 1);
+ add_ascii_assoc_ascii_stringl(meta, "mediatype", path, plen, 1);
mlen -= plen;
path += plen;
} else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64")-1)) { /* must be error since parameters are only allowed after mediatype */
@@ -674,7 +674,7 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, cha
plen = sep - path;
vlen = (semi ? semi - sep : mlen - plen) - 1 /* '=' */;
key = estrndup(path, plen);
- add_rt_assoc_stringl_ex(meta, key, plen + 1, sep + 1, vlen, 1);
+ add_rt_assoc_rt_stringl_ex(meta, key, plen + 1, sep + 1, vlen, 1);
efree(key);
plen += vlen + 1;
mlen -= plen;