mirror of
https://github.com/php/php-src.git
synced 2025-01-24 04:33:39 +08:00
Fix compiler warnings
Update tests
This commit is contained in:
parent
a3dd0efee2
commit
6e4a4e8a9a
@ -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()
|
/* {{{ sxe_object_free_storage()
|
||||||
*/
|
*/
|
||||||
static void sxe_object_free_storage(void *object TSRMLS_DC)
|
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;
|
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;
|
rv.handlers = (zend_object_handlers *) &sxe_object_handlers;
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
@ -53,5 +53,7 @@ object(simplexml_element)#%d (1) {
|
|||||||
[0]=>
|
[0]=>
|
||||||
string(2) "30"
|
string(2) "30"
|
||||||
}
|
}
|
||||||
|
object(simplexml_element)#%d (1) {
|
||||||
Fatal error: Unsupported operand types in %s014.php on line %d
|
[0]=>
|
||||||
|
string(2) "35"
|
||||||
|
}
|
||||||
|
@ -48,9 +48,9 @@ object(simplexml_element)#%d (1) {
|
|||||||
NULL
|
NULL
|
||||||
bool(false)
|
bool(false)
|
||||||
---Unsupported---
|
---Unsupported---
|
||||||
|
NULL
|
||||||
object(simplexml_element)#%d (1) {
|
object(simplexml_element)#%d (1) {
|
||||||
[0]=>
|
[0]=>
|
||||||
string(2) "30"
|
string(1) "5"
|
||||||
}
|
}
|
||||||
|
===DONE===
|
||||||
Fatal error: Unsupported operand types in %s014.php on line %d
|
|
@ -50,7 +50,6 @@ bool(false)
|
|||||||
---Unsupported---
|
---Unsupported---
|
||||||
object(simplexml_element)#%d (1) {
|
object(simplexml_element)#%d (1) {
|
||||||
[0]=>
|
[0]=>
|
||||||
string(2) "30"
|
string(1) "5"
|
||||||
}
|
}
|
||||||
|
===DONE===
|
||||||
Fatal error: Unsupported operand types in %s014.php on line %d
|
|
@ -54,4 +54,4 @@ object(simplexml_element)#%d (1) {
|
|||||||
[0]=>
|
[0]=>
|
||||||
string(9) "JoeFooBar"
|
string(9) "JoeFooBar"
|
||||||
}
|
}
|
||||||
===Done===
|
===DONE===
|
||||||
|
@ -21,6 +21,7 @@ foreach ($sxe as $element_name => $element) {
|
|||||||
foreach ($sxe->children('http://www.example.com/hot') as $element_name => $element) {
|
foreach ($sxe->children('http://www.example.com/hot') as $element_name => $element) {
|
||||||
print "$element_name is $element->name\n";
|
print "$element_name is $element->name\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
===DONE===
|
===DONE===
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
|
Loading…
Reference in New Issue
Block a user