version 1.1, 2012/02/21 23:47:54
|
version 1.1.1.3, 2013/07/22 01:31:40
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 126 Since:
|
Line 126 Since:
|
*/ |
*/ |
PHP_FUNCTION(dom_namednodemap_get_named_item) |
PHP_FUNCTION(dom_namednodemap_get_named_item) |
{ |
{ |
zval *id, *rv = NULL; | zval *id; |
int ret, namedlen=0; |
int ret, namedlen=0; |
dom_object *intern; |
dom_object *intern; |
xmlNodePtr itemnode = NULL; |
xmlNodePtr itemnode = NULL; |
Line 166 PHP_FUNCTION(dom_namednodemap_get_named_item)
|
Line 166 PHP_FUNCTION(dom_namednodemap_get_named_item)
|
} |
} |
|
|
if (itemnode) { |
if (itemnode) { |
DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj); | DOM_RET_OBJ(itemnode, &ret, objmap->baseobj); |
return; |
return; |
} else { |
} else { |
RETVAL_NULL(); |
RETVAL_NULL(); |
Line 200 Since:
|
Line 200 Since:
|
*/ |
*/ |
PHP_FUNCTION(dom_namednodemap_item) |
PHP_FUNCTION(dom_namednodemap_item) |
{ |
{ |
zval *id, *rv = NULL; | zval *id; |
long index; |
long index; |
int ret; |
int ret; |
dom_object *intern; |
dom_object *intern; |
Line 243 PHP_FUNCTION(dom_namednodemap_item)
|
Line 243 PHP_FUNCTION(dom_namednodemap_item)
|
} |
} |
|
|
if (itemnode) { |
if (itemnode) { |
DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj); | DOM_RET_OBJ(itemnode, &ret, objmap->baseobj); |
return; |
return; |
} |
} |
} |
} |
Line 258 Since: DOM Level 2
|
Line 258 Since: DOM Level 2
|
*/ |
*/ |
PHP_FUNCTION(dom_namednodemap_get_named_item_ns) |
PHP_FUNCTION(dom_namednodemap_get_named_item_ns) |
{ |
{ |
zval *id, *rv = NULL; | zval *id; |
int ret, namedlen=0, urilen=0; |
int ret, namedlen=0, urilen=0; |
dom_object *intern; |
dom_object *intern; |
xmlNodePtr itemnode = NULL; |
xmlNodePtr itemnode = NULL; |
Line 298 PHP_FUNCTION(dom_namednodemap_get_named_item_ns)
|
Line 298 PHP_FUNCTION(dom_namednodemap_get_named_item_ns)
|
} |
} |
|
|
if (itemnode) { |
if (itemnode) { |
DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj); | DOM_RET_OBJ(itemnode, &ret, objmap->baseobj); |
return; |
return; |
} else { |
} else { |
RETVAL_NULL(); |
RETVAL_NULL(); |