diff options
| author | Xinchen Hui <laruence@gmail.com> | 2014-04-11 18:07:25 +0800 | 
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2014-04-11 18:07:25 +0800 | 
| commit | 180de35bce168ff0fd6521b3fd377b56701c5dc6 (patch) | |
| tree | 8c76c194cb01e10585a6ad5d9d1f5c22480db97f /ext/libxml/php_libxml.h | |
| parent | 0d341e5b0ea3251b0ebb05d2020b1f78e9985502 (diff) | |
| download | php-git-180de35bce168ff0fd6521b3fd377b56701c5dc6.tar.gz | |
Refactor libxml (incompleted)
Diffstat (limited to 'ext/libxml/php_libxml.h')
| -rw-r--r-- | ext/libxml/php_libxml.h | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h index 901e321aac..64c6bd7874 100644 --- a/ext/libxml/php_libxml.h +++ b/ext/libxml/php_libxml.h @@ -40,10 +40,11 @@ extern zend_module_entry libxml_module_entry;  #define LIBXML_SAVE_NOEMPTYTAG 1<<2  ZEND_BEGIN_MODULE_GLOBALS(libxml) -	zval *stream_context; +	zval stream_context;  	smart_str error_buffer;  	zend_llist *error_list;  	struct _php_libxml_entity_resolver { +		zval                    object;  		zend_fcall_info			fci;  		zend_fcall_info_cache	fcc;  	} entity_loader; @@ -87,7 +88,7 @@ PHP_LIBXML_API int php_libxml_decrement_node_ptr(php_libxml_node_object *object  PHP_LIBXML_API int php_libxml_increment_doc_ref(php_libxml_node_object *object, xmlDocPtr docp TSRMLS_DC);  PHP_LIBXML_API int php_libxml_decrement_doc_ref(php_libxml_node_object *object TSRMLS_DC);  PHP_LIBXML_API xmlNodePtr php_libxml_import_node(zval *object TSRMLS_DC); -PHP_LIBXML_API int php_libxml_register_export(zend_class_entry *ce, php_libxml_export_node export_function); +PHP_LIBXML_API zval *php_libxml_register_export(zend_class_entry *ce, php_libxml_export_node export_function);  /* When an explicit freeing of node and children is required */  PHP_LIBXML_API void php_libxml_node_free_resource(xmlNodePtr node TSRMLS_DC);  /* When object dtor is called as node may still be referenced */ @@ -96,7 +97,7 @@ PHP_LIBXML_API void php_libxml_error_handler(void *ctx, const char *msg, ...);  PHP_LIBXML_API void php_libxml_ctx_warning(void *ctx, const char *msg, ...);  PHP_LIBXML_API void php_libxml_ctx_error(void *ctx, const char *msg, ...);  PHP_LIBXML_API int php_libxml_xmlCheckUTF8(const unsigned char *s); -PHP_LIBXML_API zval *php_libxml_switch_context(zval *context TSRMLS_DC); +PHP_LIBXML_API void php_libxml_switch_context(zval *context, zval *oldcontext TSRMLS_DC);  PHP_LIBXML_API void php_libxml_issue_error(int level, const char *msg TSRMLS_DC);  PHP_LIBXML_API zend_bool php_libxml_disable_entity_loader(zend_bool disable TSRMLS_DC); | 
