]> granicus.if.org Git - php/commitdiff
Fix warnings
authorMarcus Boerger <helly@php.net>
Tue, 1 Jul 2003 00:49:25 +0000 (00:49 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 1 Jul 2003 00:49:25 +0000 (00:49 +0000)
ext/simplexml/simplexml.c

index 6d00ab9f953eef8b3f58046297ceb16639d1b429..bc9c616369d06d127794bec35686f334728454cd 100644 (file)
@@ -88,7 +88,7 @@ match_ns(php_sxe_object *sxe, xmlNodePtr node, xmlChar *name)
        
        prefix = xmlHashLookup(sxe->nsmap, node->ns->href);
        if (prefix == NULL) {
-               prefix = node->ns->prefix;
+               prefix = (xmlChar*)node->ns->prefix;
        }
 
        if (prefix == NULL) {
@@ -801,7 +801,7 @@ sxe_object_get(zval *property TSRMLS_DC)
 }
 
 
-static zend_object_handlers sxe_object_handlers[] = {
+static zend_object_handlers sxe_object_handlers = {
        ZEND_OBJECTS_STORE_HANDLERS,
        sxe_property_read,
        sxe_property_write,