Fix compiler warnings

Update tests
This commit is contained in:
Rob Richards 2004-02-11 12:19:26 +00:00
parent a3dd0efee2
commit 6e4a4e8a9a
6 changed files with 12 additions and 19 deletions

View File

@ -1077,15 +1077,6 @@ sxe_object_clone(void *object, void **clone_ptr TSRMLS_DC)
}
/* }}} */
/* {{{ _free_ns_entry()
*/
static void
_free_ns_entry(void *p, xmlChar *data)
{
xmlFree(p);
}
/* }}} */
/* {{{ sxe_object_free_storage()
*/
static void sxe_object_free_storage(void *object TSRMLS_DC)
@ -1150,7 +1141,7 @@ php_sxe_register_object(php_sxe_object *intern TSRMLS_DC)
{
zend_object_value rv;
rv.handle = zend_objects_store_put(intern, NULL, sxe_object_free_storage, sxe_object_clone TSRMLS_CC);
rv.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t)sxe_object_free_storage, sxe_object_clone TSRMLS_CC);
rv.handlers = (zend_object_handlers *) &sxe_object_handlers;
return rv;

View File

@ -53,5 +53,7 @@ object(simplexml_element)#%d (1) {
[0]=>
string(2) "30"
}
Fatal error: Unsupported operand types in %s014.php on line %d
object(simplexml_element)#%d (1) {
[0]=>
string(2) "35"
}

View File

@ -48,9 +48,9 @@ object(simplexml_element)#%d (1) {
NULL
bool(false)
---Unsupported---
NULL
object(simplexml_element)#%d (1) {
[0]=>
string(2) "30"
string(1) "5"
}
Fatal error: Unsupported operand types in %s014.php on line %d
===DONE===

View File

@ -50,7 +50,6 @@ bool(false)
---Unsupported---
object(simplexml_element)#%d (1) {
[0]=>
string(2) "30"
string(1) "5"
}
Fatal error: Unsupported operand types in %s014.php on line %d
===DONE===

View File

@ -54,4 +54,4 @@ object(simplexml_element)#%d (1) {
[0]=>
string(9) "JoeFooBar"
}
===Done===
===DONE===

View File

@ -21,6 +21,7 @@ foreach ($sxe as $element_name => $element) {
foreach ($sxe->children('http://www.example.com/hot') as $element_name => $element) {
print "$element_name is $element->name\n";
}
?>
===DONE===
--EXPECT--