From: Dmitry Stogov Date: Tue, 5 May 2015 13:28:54 +0000 (+0300) Subject: Fixed compilation warning X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~93^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81dd375b5f9cce4133f8577cb4d78e6ac9a1098d;p=php Fixed compilation warning --- 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);