summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-05-05 16:28:54 +0300
committerDmitry Stogov <dmitry@zend.com>2015-05-05 16:28:54 +0300
commit81dd375b5f9cce4133f8577cb4d78e6ac9a1098d (patch)
tree2d42f8db5a5c345ee67bb597fa4ff893745d14f7 /ext/simplexml/simplexml.c
parentb1d486c7d70afd345e6d3921fa3d1d816d371f18 (diff)
downloadphp-git-81dd375b5f9cce4133f8577cb4d78e6ac9a1098d.tar.gz
Fixed compilation warning
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index d6fbe9aadf..6909b77453 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -2225,7 +2225,7 @@ PHP_FUNCTION(simplexml_load_file)
fptr_count = php_sxe_find_fptr_count(ce);
}
sxe = php_sxe_object_new(ce, fptr_count);
- sxe->iter.nsprefix = ns_len ? (xmlChar)estrdup(ns) : NULL;
+ sxe->iter.nsprefix = ns_len ? (xmlChar*)estrdup(ns) : NULL;
sxe->iter.isprefix = isprefix;
php_libxml_increment_doc_ref((php_libxml_node_object *)sxe, docp);
php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL);