- Add OO interface

- some {{{ fixes
This commit is contained in:
Pierre Joye 2005-06-23 11:28:25 +00:00
parent cfe01e1b06
commit 8c1c4865ac
4 changed files with 790 additions and 161 deletions

View File

@ -1,4 +1,5 @@
- Fix up config file for PHP 5 to use libxml extension configuration
- Add OOP support
- Add tests for Namespace functions/methods
- Sync with xmlwriter (new dtd func?)
- Write documentations in docbook

View File

@ -23,6 +23,17 @@
<email>pierre.dev@gmail.com</email>
<role>developer</role>
</maintainer>
<release>
<version>1.1.0</version>
<date>2005-05-24</date>
<state>beta</state>
<notes>
Add OO interface (php5 only)
Add test cases
</notes>
</release>
<changelog>
<release>
<version>1.0</version>
<date>2005-05-02</date>
@ -34,8 +45,6 @@
Add support for xmlTextWriterStart/EndComment
</notes>
</release>
<changelog>
<release>
<version>0.1</version>
<date>2004-07-20</date>
@ -58,6 +67,16 @@
<file role="src" name="config.w32"/>
<file role="src" name="php_xmlwriter.c"/>
<file role="src" name="php_xmlwriter.h"/>
<dir name="tests" role="test">
<file name="001.phpt"/>
<file name="002.phpt"/>
<file name="003.phpt"/>
<file name="004.phpt"/>
<file name="OO_001.phpt"/>
<file name="OO_002.phpt"/>
<file name="OO_003.phpt"/>
<file name="OO_004.phpt"/>
</dir>
</filelist>
<deps>
<dep type="php" rel="ge" version="4.3.0" />

File diff suppressed because it is too large Load Diff

View File

@ -38,6 +38,7 @@ extern zend_module_entry xmlwriter_module_entry;
#include <libxml/xmlwriter.h>
#include <libxml/uri.h>
/* Resource struct, not the object :) */
typedef struct _xmlwriter_object {
xmlTextWriterPtr ptr;
xmlBufferPtr output;
@ -46,6 +47,18 @@ typedef struct _xmlwriter_object {
#endif
} xmlwriter_object;
/* Extends zend object */
typedef struct _ze_xmlwriter_object {
zend_object zo;
xmlwriter_object *xmlwriter_ptr;
} ze_xmlwriter_object;
static void xmlwriter_free_resource_ptr(xmlwriter_object *intern TSRMLS_DC);
static void xmlwriter_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC);
zend_class_entry *xmlwriter_class_entry_ce;
#if LIBXML_VERSION >= 20605
PHP_FUNCTION(xmlwriter_set_indent);
PHP_FUNCTION(xmlwriter_set_indent_string);