com php-src: Fixed compilation warning: ext/simplexml/simplexml.c
| From: | Dmitry Stogov | Date: | Tue, 05 May 2015 13:28:54 +0000 |
| Subject: | com php-src: Fixed compilation warning: ext/simplexml/simplexml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86601@lists.php.net to get a copy of this message | ||
Commit: 81dd375b5f9cce4133f8577cb4d78e6ac9a1098d
Author: Dmitry Stogov <dmitry@zend.com> Tue, 5 May 2015 16:28:54 +0300
Parents: b1d486c7d70afd345e6d3921fa3d1d816d371f18
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=81dd375b5f9cce4133f8577cb4d78e6ac9a1098d
Log:
Fixed compilation warning
Changed paths:
M ext/simplexml/simplexml.c
Diff:
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index d6fbe9a..6909b77 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);