summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2013-07-30 12:49:36 +0200
committerAndrey Hristov <andrey@php.net>2013-07-30 12:49:36 +0200
commit92d27ccb0574f901a107409a7fec92888fa2b82f (patch)
treeffc98232c24bc4d6306bd7cb98d06e0320287910 /ext/libxml/libxml.c
parent5e1ac558c3354f98a9a5aecb5b518c46cd55357a (diff)
downloadphp-git-92d27ccb0574f901a107409a7fec92888fa2b82f.tar.gz
Constify streams API and a few other calls down the rabbit hole.
(`char *` to `const char *` for parameters and few return values) In a few places int len moved to size_t len.
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index b1cb45db76..9ee4de25b7 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -292,7 +292,8 @@ static void *php_libxml_streams_IO_open_wrapper(const char *filename, const char
php_stream_statbuf ssbuf;
php_stream_context *context = NULL;
php_stream_wrapper *wrapper = NULL;
- char *resolved_path, *path_to_open = NULL;
+ char *resolved_path;
+ const char *path_to_open = NULL;
void *ret_val = NULL;
int isescaped=0;
xmlURI *uri;