]> granicus.if.org Git - php/commitdiff
Fixed compilation warning
authorDmitry Stogov <dmitry@zend.com>
Tue, 5 May 2015 13:28:54 +0000 (16:28 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 5 May 2015 13:28:54 +0000 (16:28 +0300)
ext/simplexml/simplexml.c

index d6fbe9aadf837176f1c1547b9c0bf24d2aa88051..6909b7745318c9c9491d405ad02370ca50e845e4 100644 (file)
@@ -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);